#header_bevor {
	background-color: #fff;
    border-color: #e6e9ed;
	border-radius: 8px;
    margin: 0 auto;
    max-width: 1152px;
    padding: 0 15px;
}
@media only screen and (max-width: 1220px), only screen and (max-device-width: 1220px) {
	#header_bevor{
		margin: 0 12px;
	}
}
#index_calendar .forumbg, #calendar .forumbg {
	color: #FFFFFF;
	overflow: hidden; 
	padding:3px;
}
.weeknr {
	font-size: 16px;
	height: 20px;
	width:25px;
	line-height: 16px;
	margin: 20px -4px 0 -14px;
	text-align: center;
	transform:rotate(-90deg); 
	color: #cadceb;
	font-weight: bold;
}
.icon-cal {background-image: url("./images/icon_cal.gif");}
.cal_month_title {
	font-size:12px;
	font-weight:bold;
	height:20px;
	text-align:center;
	margin:3px;
}
.cal_month_title a {
    background-color: #ecf3f7;
    color: #536482;
	border: none;
	font-weight: bold;
	border: 2px solid #cadceb;
    border-radius: 7px;
	padding: 0 2px 4px;
}
#calendar select {
    background-color: #ecf3f7;
    color: #536482;
	border: none;
	font-weight: bold;
	border: 2px solid #cadceb;
    border-radius: 7px;
}
#calendar option:checked {
	-webkit-box-shadow: 0 0 10px 100px #cadceb inset;
	-moz-box-shadow: 0 0 10px 100px #cadceb inset;
	box-shadow: 0 0 10px 100px #cadceb inset;
}
.cal_post {
	font-size:1em;
	padding-left:10px;
	border-radius:7px;
}
.participants table.table1 thead th, .participants table.table1 tbody tr {
    color: #105289;
	border:none;
}
.participants table.table1 td {
	padding: 0 5px;
}
.participants {
    color: #105289;
	border: 2px solid #FFFFFF;
	margin-top:15px;
	padding:5px;
	border-radius:7px;
}
.participants p{
	margin:2px 0 5px;
	font-weight:bold;
}
.registration {
	width:400px;
	max-width:100%;
	text-align:center;
	font-size:1em;
	margin-top:10px;
}
.participants select, .participants input, .participants textarea {
	border:none;
	margin:3px; 
	font-size:1.2em;
}
.participants fieldset, .participants dl{
	margin:0px;
}
.participants textarea{
	height:20px;
	width:400px;
	max-width:100%;
}
.week {
	display:flex;
	margin-bottom:3px;
}
.cal-day {
	text-align:left;
	padding:0 0 3px;
	font-weight:bold;
	background-color: #cadceb;
	overflow: hidden;
	white-space:nowrap;
}
.day {
	color:#105289;
	background-color: #cadceb;
	padding:0 0 3px;
	font-weight:bold;
	width:100%;
	overflow: hidden;
	white-space:nowrap;
}
.mon, .tue, .wed, .thu, .fri {
	background-color:#ecf3f7;	
} 
.sat {
	background-color:#ddeaf4;
}	
.sun {
	background-color:#D3E3F3;
}
.today {
	border: 3px solid #105289 !important;
	font-weight:bold;
}
.noday {
	opacity:0.4;
}
.nday {
    box-sizing: border-box;
	color:#105289;	
	font-weight:bold;
	margin:0.2%;
	width: 13.9%;
	text-align:center;
}
.wday {
    border-radius: 7px;
	border: 2px solid #cadceb;
    box-sizing: border-box;
	margin:0.2%;
	width: 13.8%;
	min-height: 60px;
	overflow:hidden;
	white-space:nowrap;
}
.sday {
	display:inline;
}
.eventbg {
	border-radius:13px;
	padding:0 3px;
}
.event {
 	display:flex;
	margin-bottom:3px;
}
.event-box {
    border-radius: 7px;
	border: 2px solid #cadceb;
    box-sizing: border-box;
	margin:0.2%;
	width: 13.9%;
	overflow:hidden;
	white-space:nowrap;
	text-align:center;
}
.event-box .cal-day {
	text-align:center;
}
.hday {
	margin-left:5px;
}
.event-box .hday, .event-box .eventbg{
	margin-left:0px;
	padding-left:0px;
}
.shday {
	display:none;
}
.kday {
	display:none;
}
.event-legend {
	width:100%;
	height:1.2em;
	margin:10px 0;
	text-align: center;
	padding: 0 0 3px;
	font-weight: bold;
	//background-color: #cadceb;
	overflow: hidden;
	white-space: nowrap;
}
.event-legend:hover{
	height:100%;
}
@media only screen and (max-width: 800px), only screen and (max-device-width: 800px) {
	#index-calendar,
	#calendar {
		margin-left: -2px;
		margin-right: -2px;
		font-size: 11px;
	}

	.cal_month_title {
		height: auto;
		margin: 8px 0 10px;
		font-size: 13px;
	}

	.cal_month_title a,
	#calendar select {
		font-size: 13px;
		padding: 4px 6px;
	}

	.week {
		display: flex;
		align-items: stretch;
		gap: 0;
		margin-bottom: 2px;
	}

	.weeknr {
		display: none;
	}

	.nday {
		display: block;
		width: 14.285%;
		margin: 0;
		padding: 5px 1px;
		font-size: 10px;
		line-height: 1.1;
		background: #d3e3f3;
		border: 1px solid #fff;
	}

	.event-box,
	.wday {
		width: 14.285%;
		float: none;
		text-align: left;
		border-radius: 3px;
		border-width: 1px;
		margin: 0;
		min-height: 56px;
		white-space: normal;
		overflow: hidden;
	}

	.noday {
		display: block;
		visibility: hidden;
	}

	.day {
		display: block;
		font-size: 10px;
		line-height: 1.15;
		padding: 2px 1px;
		white-space: normal;
		text-align: center;
	}

	.cal-day {
		display: block;
		font-size: 9px;
		line-height: 1.1;
		padding: 1px;
		white-space: normal;
	}

	.sday {
		display: block;
		font-size: 9px;
		line-height: 1.15;
		margin: 1px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.kday {
		display: none;
	}

	.eventbg {
		display: block;
		border-radius: 4px;
		padding: 1px 2px;
		white-space: normal;
	}

	.today {
		border-width: 2px !important;
	}

	.event-legend {
		height: 100%;
		white-space: normal;
		font-size: 11px;
	}
}

/* US-CAR-FORUM calendar refresh */
#calendar .calendar-panel {
	box-sizing: border-box;
	max-width: 1180px;
	margin: 18px auto;
	padding: 20px;
	border: 1px solid #d8e2eb;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(25, 55, 80, .08);
}
#calendar .cal_month_title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: auto;
	margin: 0 0 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid #e7edf2;
	text-align: left;
}
#calendar .calendar-heading {
	color: #173b58;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.3px;
}
#calendar .calendar-heading .icon {
	margin-right: 8px;
	color: #c64b2d;
}
#calendar .cal_month_title form {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
}
#calendar .cal_month_title a {
	display: inline-flex;
	min-width: 36px;
	min-height: 36px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 0 10px 3px;
	border: 1px solid #d7e1e9;
	border-radius: 9px;
	background: #f4f7fa;
	color: #234661;
	font-size: 20px;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease;
}
#calendar .cal_month_title a:hover {
	border-color: #c64b2d;
	background: #fff3ef;
	color: #a33822;
}
#calendar .cal_month_title select {
	min-height: 36px;
	padding: 5px 10px;
	border: 1px solid #d7e1e9;
	border-radius: 9px;
	background: #fff;
	color: #234661;
	font-size: 14px;
}
#calendar .calendar-weekdays,
#calendar .calendar-days {
	display: grid !important;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 7px;
	margin: 0 0 7px;
}
#calendar .calendar-weekdays .nday {
	box-sizing: border-box;
	width: auto;
	margin: 0;
	padding: 8px 4px;
	border-radius: 7px;
	background: #eff3f6;
	color: #536b7e;
	font-size: 12px;
	letter-spacing: .35px;
	text-transform: uppercase;
}
#calendar .calendar-days .weeknr {
	display: none;
}
#calendar .calendar-days .wday {
	position: relative;
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	min-height: 104px;
	margin: 0;
	padding: 8px;
	border: 1px solid #e1e8ee;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(25, 55, 80, .035);
	white-space: normal;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
#calendar .calendar-days .wday:hover {
	z-index: 1;
	transform: translateY(-1px);
	border-color: #a9bfce;
	box-shadow: 0 5px 14px rgba(25, 55, 80, .10);
}
#calendar .calendar-days .wday.sun,
#calendar .calendar-days .wday.sat {
	background: #f8fafb;
}
#calendar .calendar-days .wday.noday {
	background: #f2f4f6;
	opacity: .55;
}
#calendar .calendar-days .wday.today {
	border: 2px solid #c64b2d !important;
	background: #fff8f5;
	box-shadow: 0 0 0 2px rgba(198, 75, 45, .08);
}
#calendar .calendar-days .cal-day {
	margin: 0 0 7px;
	padding: 0;
	background: transparent;
	color: #183d59;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: normal;
}
#calendar .calendar-days .cal-day .hday {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	margin: 3px 0 0;
	padding: 2px 5px;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: anywhere;
	vertical-align: top;
}
#calendar .calendar-days .wday.today .cal-day {
	color: #b53d24;
}
#calendar .calendar-days .sday {
	display: block;
	margin: 3px 0;
	font-size: 11px;
	line-height: 1.35;
	white-space: normal;
}
#calendar .calendar-days .sday a,
#calendar .calendar-days .sday > span {
	border-radius: 5px;
	padding: 2px 5px;
	text-decoration: none;
}
#calendar .calendar-days .sday a:hover {
	filter: brightness(.94);
	text-decoration: underline;
}
#calendar .event-legend {
	width: auto;
	height: auto;
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid #e5ebf0;
	border-radius: 9px;
	background: #f8fafb;
	text-align: left;
	white-space: normal;
}
#calendar .event-legend .legend {
	margin-bottom: 5px;
	color: #526a7c;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
}
@media (max-width: 700px) {
	#calendar .calendar-panel {
		margin: 8px 0;
		padding: 12px 8px;
		border-radius: 10px;
	}
	#calendar .cal_month_title {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-bottom: 10px;
		padding-bottom: 10px;
	}
	#calendar .calendar-heading {
		font-size: 19px;
		text-align: center;
	}
	#calendar .cal_month_title form {
		gap: 5px;
	}
	#calendar .cal_month_title select {
		min-width: 0;
		max-width: 45%;
		padding: 4px 6px;
		font-size: 13px;
	}
	#calendar .calendar-weekdays,
	#calendar .calendar-days {
		gap: 3px;
		margin-bottom: 3px;
	}
	#calendar .calendar-weekdays .nday {
		padding: 6px 1px;
		font-size: 9px;
		letter-spacing: 0;
	}
	#calendar .calendar-days .wday {
		min-height: 68px;
		padding: 4px 3px;
		border-radius: 6px;
	}
	#calendar .calendar-days .cal-day {
		margin-bottom: 4px;
		font-size: 12px;
	}
	#calendar .calendar-days .cal-day .hday {
		margin-top: 2px;
		padding: 1px 3px;
		font-size: 8px;
	}
	#calendar .calendar-days .sday {
		margin: 2px 0;
		font-size: 9px;
		line-height: 1.25;
	}
	#calendar .calendar-days .sday a,
	#calendar .calendar-days .sday > span {
		padding: 1px 2px;
	}
}
