#dialog_travelsheet {
	padding: 0;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

#dialog_travelsheet.ui-dialog-content {
	display: flex;
	flex-direction: column;
}

.travelsheet-toolbar {
	padding: 12px 14px 0 14px;
	flex: 0 0 auto;
}

.travelsheet-toolbar-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.travelsheet-field {
	flex: 1 1 240px;
}

.travelsheet-field-actions {
	max-width: 180px;
}

.travelsheet-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: bold;
}

.travelsheet-info {
	margin-top: 10px;
	padding: 10px 12px;
	background: #f5f7fa;
	border: 1px solid #d7dde5;
	border-radius: 4px;
	color: #4f5d6b;
}

#travelsheet_content {
	padding: 14px;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.travelsheet-month-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid #ead7e6;
	border-radius: 8px;
	background: linear-gradient(135deg, #fff5fb 0%, #fffafd 100%);
}

.travelsheet-workspace {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	gap: 14px;
	align-items: stretch;
}

.travelsheet-calendar-panel {
	flex: 0 0 371px;
	max-width: 371px;
	min-width: 321px;
	padding: 12px;
	border: 1px solid #e1e7ee;
	border-radius: 8px;
	background: #fbfcfe;
	overflow-y: auto;
}

.travelsheet-day-panel {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.travelsheet-month-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: #6d4a5f;
	font-size: 12px;
}

.travelsheet-month-chip {
	padding: 5px 8px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid #efd9e8;
}

.travelsheet-month-export-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.travelsheet-month-export-button {
	font-weight: bold !important;
	color: #ffffff !important;
	box-shadow: 0 4px 10px rgba(162, 43, 122, 0.22);
}

.travelsheet-month-export-pdf {
	background: #902e9d !important;
	border: 1px solid #902e9d !important;
}

.travelsheet-month-export-csv {
	background: #c13d84 !important;
	border: 1px solid #c13d84 !important;
}

.travelsheet-month-export-driver {
	background: #ef5fa7 !important;
	border: 1px solid #ef5fa7 !important;
}

.travelsheet-days {
	margin: 0;
}

.travelsheet-weekdays,
.travelsheet-days-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.travelsheet-weekdays {
	margin-bottom: 6px;
}

.travelsheet-weekday {
	text-align: center;
	font-size: 11px;
	font-weight: bold;
	color: #6d4a5f;
	padding: 2px 0;
}

.travelsheet-day-spacer {
	min-height: 1px;
}

.travelsheet-day {
	border: 1px solid #ccd6e0;
	border-radius: 6px;
	padding: 7px 5px;
	cursor: pointer;
	text-align: center;
	background: #edf1f5;
	color: #55616d;
}

.travelsheet-day.active {
	box-shadow: inset 0 0 0 2px #1d70b8;
}

.travelsheet-status-grey {
	background: #e6ebf0;
}

.travelsheet-status-red {
	background: #f9d8d5;
	border-color: #df8b82;
	color: #8d2d23;
}

.travelsheet-status-green {
	background: #dff1df;
	border-color: #82b985;
	color: #256f2c;
}

.travelsheet-day-number {
	display: block;
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 3px;
}

.travelsheet-day-count {
	display: block;
	font-size: 10px;
}

@media (max-width: 900px) {
	.travelsheet-workspace {
		flex-direction: column;
	}

	.travelsheet-calendar-panel {
		flex: 0 0 auto;
		max-width: none;
		min-width: 0;
	}

	.travelsheet-weekdays,
	.travelsheet-days-grid {
		gap: 6px;
	}
}

.travelsheet-day-caption {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: bold;
}

.travelsheet-print-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.travelsheet-print-button {
	flex: 0 0 auto;
	font-weight: bold !important;
	box-shadow: 0 4px 10px rgba(162, 43, 122, 0.22);
}

.travelsheet-print-button-html {
	background: #b13582 !important;
	border: 1px solid #b13582 !important;
	color: #ffffff !important;
}

.travelsheet-print-button-pdf {
	background: #e84aa2 !important;
	border: 1px solid #e84aa2 !important;
	color: #ffffff !important;
}

.travelsheet-trip-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 4px;
	padding-bottom: 12px;
}

.travelsheet-trip {
	border: 1px solid #d8e0e8;
	border-radius: 6px;
	margin-bottom: 12px;
	background: #ffffff;
}

.travelsheet-trip.status-open {
	background: #fff1df;
	border-color: #e5b26a;
}

.travelsheet-trip.locked {
	background: #e7f5e7;
	border-color: #84bc87;
}

.travelsheet-trip-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid #eef2f6;
}

.travelsheet-trip-main,
.travelsheet-trip-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.travelsheet-trip-arrival {
	font-size: 18px;
	font-weight: bold;
}

.travelsheet-trip-arrival-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.travelsheet-route-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.travelsheet-trip-route {
	flex: 1 1 auto;
	color: #4d5c69;
}

.travelsheet-show-route {
	flex: 0 0 auto;
	height: 28px;
	padding: 0 12px;
	font-size: 11px;
	background: #ffffff !important;
	border: 1px solid #b8c4cf !important;
	color: #4c5965 !important;
}

.travelsheet-trip-meta {
	text-align: right;
	color: #6b7784;
	font-size: 12px;
}

.travelsheet-trip-body {
	padding: 12px 14px 14px 14px;
}

.travelsheet-trip-row {
	margin-bottom: 7px;
	color: #4c5965;
}

.travelsheet-suggestion {
	color: #7b2f66;
	font-weight: bold;
}

.travelsheet-comment-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.travelsheet-customer-wrap {
	flex: 0 1 260px;
	min-width: 180px;
}

.travelsheet-comment-label {
	margin-bottom: 4px;
	color: #4c5965;
}

.travelsheet-comment {
	width: 100%;
	height: 34px;
	margin: 0;
}

.travelsheet-trip-entry-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 10px;
	margin-top: 8px;
}

.travelsheet-trip-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}

.travelsheet-private {
	background: #27804a !important;
	border: 1px solid #27804a !important;
	color: #ffffff !important;
}

.travelsheet-business {
	background: #1d70b8 !important;
	border: 1px solid #1d70b8 !important;
	color: #ffffff !important;
}

.travelsheet-unlock {
	background: #d79d21 !important;
	border: 1px solid #d79d21 !important;
	color: #ffffff !important;
}

.travelsheet-suggested-button {
	box-shadow: 0 0 0 3px rgba(177, 53, 130, 0.18) !important;
	transform: translateY(-1px);
}

.travelsheet-dialog-minimized {
	overflow: hidden !important;
}

.travelsheet-dialog-minimized #dialog_travelsheet {
	display: none !important;
}

.travelsheet-dialog-minimized .ui-dialog-titlebar {
	cursor: pointer;
}

.travelsheet-empty {
	padding: 24px 18px;
	border: 1px dashed #c8d2dc;
	border-radius: 6px;
	background: #fafbfd;
	color: #6b7784;
}

@media screen and (max-width: 860px) {
	.travelsheet-trip-head {
		flex-direction: column;
	}

	.travelsheet-trip-meta {
		text-align: left;
	}

	.travelsheet-trip-entry-row {
		flex-wrap: wrap;
		align-items: center;
	}

	.travelsheet-comment-wrap {
		flex: 1 1 100%;
	}

	.travelsheet-customer-wrap {
		flex: 1 1 100%;
	}
}
