.rsk-frontend-wrapper {
	max-width: 960px;
	margin: 0 auto 1.5rem;
}

.rsk-frontend-panel,
.rsk-frontend-login {
	background: #fff;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.rsk-frontend-panel h2,
.rsk-frontend-login h2 {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
}

.rsk-frontend-hinweis {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	background: #eef6fb;
	border-left: 4px solid #4a90a4;
	border-radius: 4px;
	color: #2c4a55;
	font-size: 0.9rem;
}

.rsk-lesson-cancellation-section {
	display: none;
	margin: 1.25rem 0;
	padding: 1rem 1.1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
}

.rsk-lesson-cancellation-section.is-visible {
	display: block;
}

.rsk-lesson-cancellation-title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	color: #991b1b;
}

.rsk-notice {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin-bottom: 1rem;
}

.rsk-notice-success {
	background: #edf7ed;
	border: 1px solid #b7dfb9;
	color: #1e4620;
}

.rsk-notice-error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #611a15;
}

.rsk-notice-warning {
	background: #fff8e5;
	border: 1px solid #f0d58c;
	color: #5c4a12;
}

.rsk-import-errors {
	margin: 0.65rem 0 0;
	padding-left: 1.25rem;
}

.rsk-import-errors li {
	margin: 0.35rem 0;
}

.rsk-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.rsk-form-field-wide {
	grid-column: 1 / -1;
}

.rsk-form-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: #333;
}

.rsk-form-field input,
.rsk-form-field select {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.rsk-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.rsk-btn {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	background: #f0f0f1;
	color: #1d2327;
}

.rsk-btn-primary {
	background: #4a90a4;
	border-color: #3d7a8c;
	color: #fff;
}

.rsk-btn-primary:hover {
	background: #3d7a8c;
	color: #fff;
}

.rsk-btn-secondary {
	background: #fff;
	border-color: #ccd0d4;
	color: #1d2327;
}

.rsk-btn-danger {
	background: #fff;
	border-color: #d63638;
	color: #b32d2e;
}

.rsk-btn-danger:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rsk-btn-primary:disabled {
	opacity: 0.7;
	cursor: wait;
}

#rsk-notice-area:empty {
	display: none;
}

#rsk-notice-area:not(:empty) {
	margin-bottom: 0;
}

.rsk-btn-small {
	padding: 0.35rem 0.65rem;
	font-size: 0.85rem;
}

.rsk-table-wrap {
	overflow-x: auto;
}

.rsk-member-list-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
}

.rsk-member-list-search {
	flex: 1 1 220px;
	max-width: 420px;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 0.95rem;
}

.rsk-member-count {
	font-size: 0.9rem;
	color: #5f6368;
}

.rsk-frontend-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.rsk-frontend-table th,
.rsk-frontend-table td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid #e2e6ea;
	text-align: left;
	vertical-align: middle;
}

.rsk-frontend-table th {
	background: #f8f9fa;
	font-weight: 600;
}

.rsk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.rsk-inline-form {
	display: inline;
	margin: 0;
}

.rsk-list-empty {
	color: #666;
	font-style: italic;
}

.rsk-frontend-footer {
	text-align: right;
	font-size: 0.9rem;
	color: #555;
}

.rsk-frontend-footer a {
	color: #4a90a4;
}

.rsk-frontend-login #loginform,
.rsk-frontend-login #rsk-loginform {
	margin-top: 1rem;
}

.rsk-frontend-login #loginform p,
.rsk-frontend-login #rsk-loginform p {
	margin-bottom: 0.75rem;
}

.rsk-frontend-login #loginform label,
.rsk-frontend-login #rsk-loginform label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.rsk-frontend-login #loginform input[type="text"],
.rsk-frontend-login #loginform input[type="password"],
.rsk-frontend-login #rsk-loginform input[type="text"],
.rsk-frontend-login #rsk-loginform input[type="password"] {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}

.rsk-frontend-login #loginform input[type="submit"],
.rsk-frontend-login #rsk-loginform button[type="submit"],
.rsk-frontend-login #rsk-loginform input[type="submit"] {
	padding: 0.55rem 1.25rem;
	min-height: 44px;
	background: #4a90a4;
	border: none;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}

.rsk-frontend-login .rsk-login-remember label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 500;
}

.rsk-frontend-login .rsk-login-submit {
	margin-bottom: 0;
}

.rsk-login-links {
	margin-top: 0.75rem;
	font-size: 0.9rem;
}

@media (max-width: 700px) {
	.rsk-form-grid {
		grid-template-columns: 1fr;
	}

	.rsk-frontend-table thead {
		display: none;
	}

	.rsk-frontend-table tr {
		display: block;
		margin-bottom: 1rem;
		border: 1px solid #e2e6ea;
		border-radius: 6px;
		padding: 0.5rem 0.75rem;
	}

	.rsk-frontend-table td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		border-bottom: none;
		padding: 0.4rem 0;
	}

	.rsk-frontend-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #555;
		flex-shrink: 0;
	}

	.rsk-actions {
		justify-content: flex-end;
	}
}

.rsk-field-hint {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: #6b7280;
}

.rsk-member-picker {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.rsk-member-search {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 0.95rem;
	color: #111827;
	background-color: #fff;
}

.rsk-member-search-results {
	display: flex;
	flex-direction: column;
	margin-top: 0.35rem;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	background: #fff;
	max-height: 220px;
	overflow: auto;
}

.rsk-member-picker button.rsk-member-search-item,
.rsk-member-picker .rsk-member-search-item {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 0;
	border-bottom: 1px solid #eef0f2;
	background-color: #fff !important;
	color: #111827 !important;
	text-align: left;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
	box-shadow: none;
}

.rsk-member-picker button.rsk-member-search-item:hover,
.rsk-member-picker .rsk-member-search-item:hover {
	background-color: #eef2ff !important;
	color: #1e3a8a !important;
}

.rsk-member-search-empty {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 0;
	border-bottom: 1px solid #eef0f2;
	background-color: #fff;
	color: #6b7280;
	text-align: left;
	font-size: 0.9rem;
	cursor: default;
}

.rsk-member-selected-wrap {
	margin-top: 0.75rem;
}

.rsk-member-selected-table {
	margin: 0;
}

.rsk-member-selected-table th:last-child,
.rsk-member-selected-table td.rsk-actions-col {
	width: 3rem;
	text-align: center;
}

.rsk-member-number-cell {
	width: 7rem;
	white-space: nowrap;
}

.rsk-member-privat-cell,
.rsk-member-school-cell {
	width: 8.5rem;
}

.rsk-member-privat-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.75rem;
	margin: 0;
}

.rsk-member-privat {
	width: 1rem;
	height: 1rem;
	margin: 0;
}

.rsk-member-school-horse {
	width: 100%;
	min-width: 7rem;
	padding: 0.35rem 0.45rem;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	font-size: 0.85rem;
}

.rsk-member-school-horse:disabled {
	background: #f3f4f6;
	color: #9ca3af;
}

.rsk-member-valid-from-cell,
.rsk-member-valid-to-cell {
	width: 9.5rem;
}

.rsk-member-valid-from,
.rsk-member-valid-to {
	width: 100%;
	min-width: 8.5rem;
	padding: 0.35rem 0.45rem;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	font-size: 0.85rem;
}

.rsk-member-row-inactive {
	opacity: 0.72;
}

.rsk-member-row-inactive .rsk-member-valid-from,
.rsk-member-row-inactive .rsk-member-valid-to {
	background: #f9fafb;
}

.rsk-member-selected-empty {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	color: #6b7280;
	font-style: italic;
}

.rsk-school-stat-card {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
}

.rsk-school-stat-card:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.rsk-school-stat-summary p {
	margin: 0.35rem 0;
}

.rsk-school-stats-table {
	margin: 0.75rem 0 1rem;
}

.rsk-school-horse-form,
.rsk-school-care-form {
	margin-bottom: 0;
}

.rsk-care-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 1rem 0;
}

.rsk-care-filter label {
	font-weight: 600;
	color: #374151;
}

.rsk-care-filter select {
	min-width: 220px;
}

.rsk-chart-panel {
	margin-bottom: 1.5rem;
	padding: 1.25rem;
	border: 1px solid #dbeafe;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
	box-shadow: 0 8px 24px rgba(29, 78, 216, 0.08);
}

.rsk-chart-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
}

.rsk-chart-header h3 {
	margin: 0;
	font-size: 1.05rem;
	color: #0f172a;
}

.rsk-chart-toggle {
	display: inline-flex;
	padding: 0.2rem;
	border-radius: 999px;
	background: #e2e8f0;
}

.rsk-chart-toggle-btn {
	border: 0;
	background: transparent;
	color: #475569;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rsk-chart-toggle-btn.is-active {
	background: #ffffff;
	color: #1d4ed8;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.rsk-chart-layout {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: stretch;
}

.rsk-chart-y-axis {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 240px;
	padding: 0.2rem 0 1.8rem;
	color: #64748b;
	font-size: 0.72rem;
	text-align: right;
}

.rsk-bar-chart-area {
	position: relative;
	min-height: 240px;
	padding: 0.2rem 0 1.8rem;
}

.rsk-bar-chart-gridlines {
	position: absolute;
	inset: 0.2rem 0 1.8rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	pointer-events: none;
}

.rsk-bar-chart-gridlines span {
	display: block;
	border-top: 1px dashed #dbeafe;
}

.rsk-bar-chart-columns {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	gap: 0.75rem;
	height: 240px;
}

.rsk-bar-chart-column {
	flex: 1 1 0;
	max-width: 5.5rem;
	min-width: 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
}

.rsk-bar-chart-bar {
	width: 100%;
	min-height: 4px;
	border-radius: 10px 10px 4px 4px;
	background: var(--rsk-bar-color, linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%));
	box-shadow: 0 10px 20px rgba(29, 78, 216, 0.18);
	transition: height 0.35s ease, transform 0.2s ease;
	position: relative;
}

.rsk-bar-chart-bar:hover {
	transform: translateY(-2px);
}

.rsk-bar-chart-value {
	position: absolute;
	left: 50%;
	top: -1.55rem;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 0.72rem;
	font-weight: 700;
	color: #0f172a;
}

.rsk-bar-chart-meta {
	margin-top: 0.45rem;
	text-align: center;
	font-size: 0.72rem;
	color: #64748b;
}

.rsk-bar-chart-label {
	margin-top: 0.55rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #0f172a;
	text-align: center;
	line-height: 1.2;
	word-break: break-word;
}

.rsk-weekday-chart {
	margin: 1rem 0;
	padding: 0.85rem;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.rsk-weekday-chart h4 {
	margin: 0 0 0.75rem;
	font-size: 0.92rem;
	color: #334155;
}

.rsk-weekday-chart-columns {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.45rem;
	align-items: end;
	min-height: 120px;
}

.rsk-weekday-chart-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 120px;
}

.rsk-weekday-chart-bar {
	width: 100%;
	min-height: 3px;
	border-radius: 6px 6px 2px 2px;
	background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
	opacity: 0.95;
}

.rsk-weekday-chart-bar.is-empty {
	background: #e2e8f0;
	box-shadow: none;
	opacity: 1;
}

.rsk-weekday-chart-day {
	margin-top: 0.35rem;
	font-size: 0.68rem;
	font-weight: 600;
	color: #475569;
	text-align: center;
}

.rsk-weekday-chart-value {
	margin-top: 0.2rem;
	font-size: 0.62rem;
	color: #64748b;
	text-align: center;
	line-height: 1.2;
}

@media (max-width: 700px) {
	.rsk-chart-layout {
		grid-template-columns: 1fr;
	}

	.rsk-chart-y-axis {
		display: none;
	}

	.rsk-bar-chart-columns {
		gap: 0.45rem;
	}

	.rsk-weekday-chart-columns {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		row-gap: 0.75rem;
	}
}

.rsk-member-chip span {
	color: #111827;
}

.rsk-member-picker button.rsk-member-remove {
	border: 0;
	background: transparent !important;
	color: #991b1b !important;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.rsk-admin-member-fields {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e2e6ea;
}

.rsk-member-row-missing-number {
	background: #fff7ed;
}

.rsk-member-row-missing-number td:first-child {
	box-shadow: inset 4px 0 0 #f97316;
}

.rsk-mnr-missing {
	color: #c2410c;
	font-style: italic;
	font-weight: 600;
}

.rsk-member-number-legend {
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
}

.rsk-admin-member-number-notice ul {
	margin: 0.5rem 0 0.25rem 1.25rem;
	list-style: disc;
}

.rsk-cancellation-lessons {
	margin: 0;
	padding-left: 1.1rem;
	list-style: disc;
	font-size: 0.88rem;
}

.rsk-cancellation-lessons li {
	margin: 0.15rem 0;
}
