/* Urlaubsplaner – Frontend im Materialis-Pro-Stil */
.up-portal,
.up-portal * {
	box-sizing: border-box;
}

.up-portal {
	max-width: 1232px;
	margin: 0 auto;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	color: #333335;
}

.up-portal h2,
.up-portal h3 {
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 300;
	color: #54617A;
	margin: 0 0 .6em;
}

.up-title {
	font-size: 2rem;
	line-height: 1.2;
}

.up-sub {
	color: #6b7280;
	margin: 0 0 1.2em;
}

/* Karten */
.up-card {
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
	padding: 32px;
	margin: 0 0 24px;
}

.up-card--login {
	max-width: 460px;
	margin: 40px auto;
}

/* Formularfelder (Material-Unterstrich) */
.up-field {
	display: block;
	margin: 0 0 22px;
}

.up-field > span {
	display: block;
	font-size: .82rem;
	color: #6b7280;
	margin-bottom: 4px;
}

.up-field input,
.up-field select,
.up-form input[type="text"],
.up-form input[type="date"],
.up-form input[type="email"],
.up-form input[type="password"] {
	width: 100%;
	border: none;
	border-bottom: 1px solid #cfd4dc;
	background: transparent;
	padding: 8px 0;
	font-size: 1rem;
	color: #333335;
	border-radius: 0;
	outline: none;
	transition: border-color .2s;
}

.up-field input:focus,
.up-form input:focus {
	border-bottom-color: #9B111E;
}

.up-form input[type="file"] {
	border: none;
	padding: 6px 0;
}

.up-check {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 18px;
	font-size: .92rem;
	color: #4b5563;
}

.up-check label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.up-hint {
	font-size: .82rem;
	color: #9aa1ab;
	margin: -8px 0 18px;
}

/* Buttons */
.up-btn {
	display: inline-block;
	border: none;
	cursor: pointer;
	font-size: .95rem;
	letter-spacing: .3px;
	padding: 12px 26px;
	border-radius: 2px;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.up-btn--primary {
	background: #9B111E;
	color: #fff;
}

.up-btn--primary:hover {
	background: #7d0d18;
	color: #fff;
}

.up-btn--ghost {
	background: transparent;
	color: #9B111E;
	border: 1px solid #d9b0b4;
	padding: 8px 18px;
}

.up-btn--ghost:hover {
	background: #faf1f2;
}

.up-actions {
	margin-top: 8px;
}

.up-links {
	margin: 18px 0 0;
	font-size: .9rem;
}

.up-links a {
	color: #9B111E;
	text-decoration: none;
}

/* Dashboard */
.up-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.up-head .up-title {
	text-align: left;
	margin: 0;
}

.up-yearselect {
	margin: 0 0 18px;
}

.up-yearselect select {
	padding: 6px 10px;
	border: 1px solid #cfd4dc;
	border-radius: 2px;
}

.up-cards {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin-bottom: 24px;
}

.up-stat {
	flex: 1 1 0;
	min-width: 0;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
	padding: 14px 8px;
	text-align: center;
}

.up-stat--highlight {
	background: #9B111E;
	color: #fff;
}

.up-stat-label {
	display: block;
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #9aa1ab;
	margin-bottom: 4px;
	line-height: 1.15;
}

.up-stat--highlight .up-stat-label {
	color: rgba(255, 255, 255, .8);
}

.up-stat-value {
	font-size: 1.5rem;
	font-weight: 300;
}

.up-panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.up-panel {
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
	padding: 26px;
	margin-bottom: 24px;
}

/* Tabellen */
.up-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
}

.up-table th,
.up-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid #eef0f3;
	vertical-align: middle;
}

.up-table th {
	color: #6b7280;
	font-weight: 500;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .4px;
}

/* Status Badges */
.up-badge {
	display: inline-block;
	font-size: .76rem;
	padding: 3px 10px;
	border-radius: 20px;
	background: #eef0f3;
	color: #4b5563;
}

.up-badge--offen {
	background: #fff4d6;
	color: #8a6100;
}

.up-badge--genehmigt {
	background: #e2f5e6;
	color: #1b7a34;
}

.up-badge--abgelehnt {
	background: #fbe1e3;
	color: #9B111E;
}

.up-badge--zurueckgezogen {
	background: #eceef1;
	color: #6b7280;
}

/* Notices */
.up-notice {
	padding: 12px 18px;
	border-radius: 2px;
	margin: 0 0 20px;
	font-size: .92rem;
}

.up-notice--success {
	background: #e2f5e6;
	color: #1b7a34;
	border-left: 3px solid #1b7a34;
}

.up-notice--error {
	background: #fbe1e3;
	color: #9B111E;
	border-left: 3px solid #9B111E;
}

.up-link-danger {
	color: #9B111E;
	text-decoration: none;
	font-size: .88rem;
}

/* Tabs (Admin-Übersicht) */
.up-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	border-bottom: 2px solid #e5e8ec;
	margin: 0 0 24px;
}

.up-tabs .up-tab-btn {
	margin-left: auto;
	border: 1px solid #d9b0b4;
	color: #9B111E;
	background: transparent;
	padding: 6px 16px;
	border-radius: 2px;
	font-size: .85rem;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.up-tabs .up-tab-btn:hover {
	background: #faf1f2;
	color: #9B111E;
}

.up-tabs a {
	padding: 10px 18px;
	text-decoration: none;
	color: #54617A;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.up-tabs a:hover {
	color: #9B111E;
}

.up-tabs a.active {
	color: #9B111E;
	border-bottom-color: #9B111E;
}

/* Admin-Anpassungen */
.up-portal--admin {
	max-width: none;
	margin: 0;
}

.up-portal--admin .up-title {
	font-size: 1.9rem;
}

.up-table tr.up-highlight {
	background: #fdecec;
}

.up-row-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.up-row-actions .up-btn {
	padding: 8px 14px;
	font-size: .85rem;
}

.up-row-actions .up-inline-form input[type="text"] {
	padding: 6px 8px;
	border: 1px solid #cfd4dc;
	border-radius: 2px;
	max-width: 160px;
}

/* Layout-Breite Mitarbeiterportal (angelehnt an Theme-Container 1232px) */
.up-boxed {
	max-width: 100%;
	margin: 0 auto;
}

/* Tabellen horizontal scrollbar auf kleinen Displays */
.up-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Gemeinsame Formular- und Verwaltungs-Styles (auch Frontend-Verwaltung) */
.up-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.up-grid .up-field {
	margin-bottom: 0;
}

.up-inline-form {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.up-danger {
	color: #9B111E;
	border-color: #9B111E;
}

@media (max-width: 600px) {
	.up-card,
	.up-panel {
		padding: 20px;
	}

	.up-portal input,
	.up-portal select,
	.up-portal textarea {
		font-size: 16px;
	}

	.up-tabs a {
		padding: 10px 12px;
		font-size: .92rem;
	}

	.up-cards {
		flex-wrap: wrap;
	}

	.up-stat {
		flex: 1 1 40%;
	}

	.up-actions .up-btn {
		width: 100%;
		text-align: center;
	}

	.up-actions .up-btn + .up-btn {
		margin-top: 8px;
	}

	.up-row-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.up-row-actions .up-btn {
		width: 100%;
		text-align: center;
	}

	.up-inline-form {
		flex-direction: column;
		align-items: stretch;
	}

	.up-inline-form input[type="text"] {
		max-width: none;
	}

	.up-inline-form .up-btn {
		width: 100%;
	}

	.up-yearselect {
		width: 100%;
	}
}
