/* TVV Vereinsportal – Modul Spesenabrechnung. Nutzt die Variablen aus tvv-portal.css. */

.tvv-app .tvv-spesen__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}
.tvv-app .tvv-spesen__main {
	flex: 999 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.tvv-app .tvv-spesen__aside {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 20px;
}
@media (max-width: 899px) {
	.tvv-app .tvv-spesen__aside {
		position: static;
	}
}
.tvv-app .tvv-field--full {
	flex-basis: 100%;
}
.tvv-app .tvv-row > .tvv-field--art {
	flex: 1 1 200px;
}
.tvv-app .tvv-row > .tvv-field--zweck {
	flex: 2 1 280px;
}

/* Fahrten */
.tvv-app .tvv-trips {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.tvv-app .tvv-trips__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.tvv-app .tvv-trips__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.tvv-app .tvv-trip {
	gap: 16px;
}
.tvv-app .tvv-trip__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.tvv-app .tvv-trip__head .tvv-h3:focus {
	outline: none;
}
.tvv-app .tvv-trip__tools {
	display: flex;
	align-items: center;
	gap: 8px;
}
.tvv-app .tvv-trip__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.tvv-app .tvv-trip__calc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tvv-app .tvv-result {
	background: var(--tvv-tint);
	border-radius: var(--tvv-radius-input);
	padding: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.tvv-app .tvv-result__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.tvv-app .tvv-result__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font: 700 13px/1.3 var(--tvv-font-head);
	color: var(--tvv-green-dark);
	text-transform: uppercase;
}
.tvv-app .tvv-result__found {
	font: 400 13px/1.4 var(--tvv-font-body);
	color: var(--tvv-muted);
	overflow-wrap: anywhere;
}
.tvv-app .tvv-result__amount {
	font: 700 22px/1.2 var(--tvv-font-head);
	color: var(--tvv-green-dark);
	white-space: nowrap;
}

/* Upload */
.tvv-app .tvv-drop {
	position: relative;
	border: 2px dashed var(--tvv-dash);
	background: var(--tvv-tint-soft);
	border-radius: var(--tvv-radius-input);
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: var(--tvv-green-dark);
	text-align: center;
	margin: 0;
}
.tvv-app .tvv-drop:hover {
	background: var(--tvv-tint);
}
.tvv-app .tvv-drop:focus-within {
	outline: 3px solid var(--tvv-green);
	outline-offset: 2px;
}
.tvv-app .tvv-drop__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.tvv-app .tvv-drop__title {
	font: 700 14px/1.3 var(--tvv-font-head);
	color: var(--tvv-text);
}
.tvv-app .is-invalid .tvv-drop {
	border-color: var(--tvv-error);
}
.tvv-app .tvv-filebox {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--tvv-border-soft);
	border-radius: var(--tvv-radius-input);
	padding: 10px 12px;
}
.tvv-app .tvv-filebox__icon {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: var(--tvv-radius-input);
	background: var(--tvv-tint);
	color: var(--tvv-green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tvv-app .tvv-filebox__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.tvv-app .tvv-filebox__name {
	font: 600 14px/1.4 var(--tvv-font-body);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tvv-app .tvv-addtrip,
.tvv-app .tvv-addtrip:hover,
.tvv-app .tvv-addtrip:focus {
	-webkit-appearance: none;
	appearance: none;
	min-height: 52px;
	width: 100%;
	margin: 0;
	padding: 0 16px;
	border: 2px dashed var(--tvv-dash);
	background: transparent;
	border-radius: var(--tvv-radius-card);
	font: 700 14px/1.2 var(--tvv-font-head);
	text-transform: uppercase;
	color: var(--tvv-green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: none;
}
.tvv-app .tvv-addtrip:hover {
	background: var(--tvv-tint-soft);
	border-color: var(--tvv-green);
}

/* Zusammenfassung */
.tvv-app .tvv-summary {
	background: var(--tvv-green-dark);
	color: #ffffff;
	border-radius: var(--tvv-radius-card);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tvv-app .tvv-summary__title {
	margin: 0 0 4px;
	font: 700 18px/1.25 var(--tvv-font-head);
	text-transform: uppercase;
	color: #ffffff;
}
.tvv-app .tvv-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font: 400 15px/1.4 var(--tvv-font-body);
}
.tvv-app .tvv-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	padding-top: 14px;
	margin-top: 4px;
	font: 700 15px var(--tvv-font-head);
}
.tvv-app .tvv-summary__total span:last-child {
	font: 700 30px/1.1 var(--tvv-font-head);
	white-space: nowrap;
}
.tvv-app .tvv-summary__confirm {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font: 400 14px/1.45 var(--tvv-font-body);
	cursor: pointer;
	margin: 6px 0 0;
	color: #ffffff;
}
.tvv-app .tvv-summary__confirm input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--tvv-green);
}
.tvv-app .tvv-summary .tvv-alert--error {
	background: #ffffff;
}
.tvv-app .tvv-summary .tvv-btn--light:focus-visible {
	outline-color: #ffffff;
}

.tvv-app .tvv-know {
	gap: 12px;
}
.tvv-app .tvv-know__title {
	font-size: 16px;
}
.tvv-app .tvv-know ul {
	margin: 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font: 400 14px/1.5 var(--tvv-font-body);
}
.tvv-app .tvv-know li {
	margin: 0;
}

/* Danke */
.tvv-app .tvv-done {
	max-width: 760px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.tvv-app .tvv-done:focus {
	outline: none;
}
.tvv-app .tvv-done__hero {
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 32px 24px;
}
.tvv-app .tvv-done__hero .tvv-text {
	max-width: 520px;
	font-size: 16px;
}
.tvv-app .tvv-done__check {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--tvv-green-dark);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tvv-app .tvv-done__title {
	font: 700 28px/1.2 var(--tvv-font-head);
	color: var(--tvv-green-dark);
}
.tvv-app .tvv-done__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.tvv-app .tvv-timeline {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.tvv-app .tvv-timeline li {
	flex: 1 1 180px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
}
.tvv-app .tvv-timeline li > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font: 400 14px/1.4 var(--tvv-font-body);
	color: var(--tvv-muted);
}
.tvv-app .tvv-timeline strong {
	font: 700 14px var(--tvv-font-head);
	color: var(--tvv-text);
}
.tvv-app .tvv-timeline__dot {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 3px solid #c5cdd6;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tvv-app .tvv-timeline .is-done .tvv-timeline__dot {
	background: var(--tvv-green-dark);
	border-color: var(--tvv-green-dark);
	color: #ffffff;
}
.tvv-app .tvv-timeline .is-next .tvv-timeline__dot {
	border-color: var(--tvv-green);
	background: var(--tvv-tint);
}

/* Bestätigungsseite (Mail-Links) */
.tvv-app .tvv-action {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.tvv-app .tvv-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px 20px;
	background: var(--tvv-bg);
	border-radius: var(--tvv-radius-card);
	padding: 18px;
	margin: 0;
}
.tvv-app .tvv-facts div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.tvv-app .tvv-facts dt {
	font: 500 12px var(--tvv-font-body);
	color: var(--tvv-muted);
}
.tvv-app .tvv-facts dd {
	margin: 0;
	font: 600 14px/1.4 var(--tvv-font-body);
	color: var(--tvv-green-dark);
	overflow-wrap: anywhere;
}
.tvv-app .tvv-tablewrap {
	overflow-x: auto;
}
.tvv-app .tvv-table {
	width: 100%;
	border-collapse: collapse;
	font: 400 14px/1.45 var(--tvv-font-body);
	margin: 0;
	border: 0;
}
.tvv-app .tvv-table th,
.tvv-app .tvv-table td {
	padding: 10px 8px 10px 0;
	border: 0;
	border-top: 1px solid #dce2ec;
	text-align: left;
	vertical-align: top;
	background: transparent;
}
.tvv-app .tvv-table thead th {
	border-top: 0;
	font: 500 12px var(--tvv-font-body);
	color: var(--tvv-muted);
}
.tvv-app .tvv-table tfoot th,
.tvv-app .tvv-table tfoot td {
	border-top: 2px solid var(--tvv-green-dark);
	font-weight: 700;
}
.tvv-app .tvv-table .tvv-r {
	text-align: right;
	white-space: nowrap;
	padding-right: 0;
}
.tvv-app .tvv-table__total {
	font: 700 18px var(--tvv-font-head) !important;
	color: var(--tvv-green-dark);
}
.tvv-app .tvv-action__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

@media (max-width: 600px) {
	.tvv-app .tvv-trip__head {
		align-items: stretch;
	}
	.tvv-app .tvv-trip__tools {
		width: 100%;
	}
	.tvv-app .tvv-trip__tools .tvv-seg {
		flex: 1;
	}
	.tvv-app .tvv-seg span {
		padding: 0 8px;
	}
	.tvv-app .tvv-summary {
		padding: 20px 16px;
	}
	.tvv-app .tvv-done__actions .tvv-btn {
		flex: 1 1 100%;
	}
	.tvv-app .tvv-action__buttons .tvv-btn {
		width: 100%;
	}
}
