/*******************************Calendar Top Navigation*********************************/
div#calendar{
  margin:0px auto;
  padding:0px;
  width: 100%;
  font-family:Helvetica, "Times New Roman", Times, serif;
}
 
div#calendar div.box{
	position:relative;
	top:0px;
	left:0px;
	width:100%;
	height:40px;
	background-color: var(--primary-dk);
}
 
div#calendar div.header{
	line-height:40px;  
	vertical-align:middle;
	position:absolute;
	left:2.5%;
	top:0px;
	width:95%;
	height:40px;   
	text-align:center;
}
 
div#calendar div.header a.prev,div#calendar div.header a.next{ 
	position:absolute;
	top:0px;   
	height: 40px;
	display:block;
	cursor:pointer;
	text-decoration:none;
	color:#FFF;
}
 
div#calendar div.header span.title{
	color:#FFF;
	font-size:18px;
}
 
 
div#calendar div.header a.prev{
	left:0px;
}
 
div#calendar div.header a.next{
	right:0px;
}
 
 
 
 
/*******************************Calendar Content Cells*********************************/
div#calendar div.box-content{
	border:1px solid #787878 ;
	border-top:none;
	display:table;
	border-collapse: separate;
  	border-spacing: 5px;
  	width:100%;
	background-color:#071925;
 }
 
 
 
div#calendar ul.label{
	margin: 0px;
	padding: 0px;
	margin-top:5px;
	margin-left: 5px;
	display: table-row;
}
 
div#calendar ul.label li{
	margin:0px;
	padding:0px;
	margin-right:5px;  
	list-style-type:none;
	display: table-cell;
	height:40px;
	line-height:40px;
	vertical-align:middle;
	text-align:center;
	color:#eee;
	font-size: 18px;
	background-color: transparent;
}
 
 
div#calendar ul.week{
	margin: 0px;
	padding: 0px;
	margin-left: 5px;
	margin-bottom: 5px;
	display: table-row;
}
 
/** overall width = width+padding-right**/
div#calendar ul.week li{
	margin:0px;
	padding:5px;
	margin-right:0.1%;
	margin-top: 0.1%;
	list-style-type:none;
	height:80px;
	background-color: #DDD;
	color:#000;
	display: table-cell;
	width:13%;

	background: linear-gradient(145deg, #EEE 0%,#CCC 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	
}

div#calendar ul.week li span.cellday{
	display:block;
	margin:0;
	font-size:25px;
}

.iframecontainer div#calendar ul.week li span.cellday{
	font-size:22px;
}


div#calendar ul.week li.mask {
	background: transparent;
}
div#calendar ul.week li.mask span{
		visibility: hidden;
}

div#calendar ul.week li a{
		color:blue;
}

 
:focus{
	outline:none;
}
 
div.clear{
	clear:both;
}   

div#calendar.evtfilteron ul.week li div{
	opacity: 0.4;
}

div#calendar.evtfilteron ul.week li div.evtfilter{
	opacity: 1;
}

div#calendar ul.week li div.oldevent{
	opacity: 0.6;
}


div#calendar ul.week li.today{
	background: #fff3dd;
	border: 2px solid #ff9800;
	box-shadow: 0 0 0 2px rgba(255,152,0,0.15) inset;
	position: relative;
}

span.today-badge {
	position: absolute;
	top: 3px;
	right: 3px;
	background: #e8623a;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	padding: 1px 5px;
	border-radius: 3px;
	line-height: 1.6;
	pointer-events: none;
	z-index: 1;
}

/*  Event details page styles */

.evt-hero {
	background: var(--primary-dk);
	color: #fff;
	padding: 18px 20px;
	margin-top: 12px;
	margin-bottom: 0;
	border-radius: 4px 4px 0 0;
}

.evt-hero + .eventdet.introtext {
	border-top: none;
	border-radius: 0 0 6px 6px;
	margin-top: 0;
}
.evt-hero-title {
	font-size: 22px;
	font-weight: bold;
	line-height: 1.3;
	margin-bottom: 6px;
}
.evt-hero-datetime {
	font-size: 15px;
	opacity: 0.85;
}

.evtdet-row {
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
	align-items: flex-start;
}
.evtdet-icon {
	color: #1d5f8a;
	font-size: 17px;
	margin-top: 16px;
	flex-shrink: 0;
	width: 18px;
	text-align: center;
}
.evtdet-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #888;
	margin-bottom: 3px;
}
.evtdet-value {
	color: #222;
	line-height: 1.5;
}
.evtdet-desc {
	border-left: 3px solid #d0dde8;
	margin: 0;
	padding: 6px 12px;
	color: #444;
	font-style: italic;
	font-size: 14px;
	line-height: 1.6;
}

div.evtimg img {
	max-width:100%;
	padding:5px;
	background:#ddd;
}

span.evtredbutton, span.evtgreenbutton, span.evtorangebutton {
	font-weight:normal;
	display:inline-block;
  text-shadow: 1px 1px 3px #666666;
	border:1px solid #606060;
	background-color:#DD1818;
	color:#eeeeee;
	border-radius:5px;
	padding: 1px 8px;
	margin:1px;
	box-shadow: 1px 1px 1px 1px #999;
}  
  
span.evtredbutton {
	background: #f71111;
  background-image: -webkit-linear-gradient(top, #f71111, #b00707);
  background-image: -moz-linear-gradient(top, #f71111, #b00707);
  background-image: -ms-linear-gradient(top, #f71111, #b00707);
  background-image: -o-linear-gradient(top, #f71111, #b00707);
  background-image: linear-gradient(to bottom, #f71111, #b00707);
}

span.evtgreenbutton {
  background: #14ba3e;
  background-image: -webkit-linear-gradient(top, #14ba3e, #178511);
  background-image: -moz-linear-gradient(top, #14ba3e, #178511);
  background-image: -ms-linear-gradient(top, #14ba3e, #178511);
  background-image: -o-linear-gradient(top, #14ba3e, #178511);
  background-image: linear-gradient(to bottom, #14ba3e, #178511);
}

span.evtorangebutton {
  background: #ff9900;
  background-image: -webkit-linear-gradient(top, #ff9900, #c76904);
  background-image: -moz-linear-gradient(top, #ff9900, #c76904);
  background-image: -ms-linear-gradient(top, #ff9900, #c76904);
  background-image: -o-linear-gradient(top, #ff9900, #c76904);
  background-image: linear-gradient(to bottom, #ff9900, #c76904);
}
  
div.eventcaldet {
	margin-bottom:10px;
}

div.eventcaldet a {
	font-weight:bold;
}

div.eventcaldet a span.evt-time,
div.eventcaldet a span.evtloc {
	color: #333;
	font-weight: normal;
}

div.icslinkwrap{
	border-top:1px solid #888;
	padding:5px 0;
	margin-top:30px;
}

.add-to-cal-btns .btn {
	margin-bottom: 8px;
}

#moreeventslink,
#lesseventslink {
	color: #6060ff;
	cursor:pointer;
}
#oldevents,
#futureevents {
	display:none;
}

#oldevents {
	color:#888;
}


#additionalattendees input
 {
	width:80%;
}	

#evtlist {
	background: #eef2f7;
	border-radius: 6px;
	padding: 15px 15px 5px;
	margin-top: 10px;
}

#evtlist img {
	max-width: auto;
	max-height: 100%;
}

#evtlist .eventwrap {
	position: relative;
	background: #fff;
	margin-bottom: 15px;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

#evtlist .eventwrap.past-event {
	opacity: 0.65;
}

span.past-badge {
	display: inline-block;
	background: #888;
	color: #fff;
	font-size: 11px;
	font-weight: bold;
	padding: 1px 6px;
	border-radius: 3px;
	vertical-align: middle;
	margin-left: 6px;
	line-height: 1.6;
}

span.recurring-badge {
	display: inline-block;
	background: #3a87c8;
	color: #fff;
	font-size: 11px;
	font-weight: bold;
	padding: 1px 6px;
	border-radius: 3px;
	vertical-align: middle;
	margin-left: 6px;
	line-height: 1.6;
}

#evtlist h3 {
	margin-top:0;
}

a.evtlist-moredates-toggle {
	font-size: 13px;
	color: #3a87c8;
	cursor: pointer;
}

a.evtlist-moredates-toggle:hover {
	color: #2a6096;
}

.evtlist-futuredate {
	padding: 5px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	font-size: 13px;
}

.evtlist-futuredate:last-child {
	border-bottom: none;
}

.evtlist-futuredate .btn {
	margin-left: 8px;
}


#evtlistfilter, #calfilter {
	padding:30px 15px 0 15px;
	background-color:rgba(150,150,150,0.1) !important;
	margin-bottom:15px;
}

@media (max-width: 900px) {
	.iniframe  {
		font-size:12px;
	}
	.compactview .evtloc {
		display:none;
	}
}

@media (max-width: 575px) {
	div#calendar div.box-content {
		border-spacing: 2px;
	}

	div#calendar ul.label li {
		font-size: 11px;
		height: 28px;
		line-height: 28px;
	}

	div#calendar ul.week li {
		height: 46px;
		padding: 2px;
		font-size: 12px;
	}

	div#calendar ul.week li span.cellday {
		font-size: 13px;
	}

	/* Compact event rows: coloured dot + time, fully tappable */
	div#calendar ul.week li div.eventcaldet {
		display: block;
		margin: 1px 0 0 0;
	}

	div#calendar ul.week li div.eventcaldet a {
		display: block;
		font-size: 9px;
		line-height: 1.3;
		color: #3a7fd4;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	div#calendar ul.week li div.eventcaldet span.callabel::before {
		content: attr(data-initial);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 14px;
		height: 14px;
		border-radius: 50%;
		background: var(--evt-color, #3a7fd4);
		color: #fff;
		font-size: 9px;
		font-weight: 700;
		line-height: 1;
		vertical-align: middle;
		margin-right: 2px;
		font-family: monospace;
		text-indent: 0;
		letter-spacing: 0;
		text-align: center;
	}

	div#calendar ul.week li div.eventcaldet span.cal-evtname {
		display: none;
	}

	div#calendar ul.week li div.eventcaldet br,
	div#calendar ul.week li div.eventcaldet .evt-time,
	div#calendar ul.week li div.eventcaldet .evtloc,
	div#calendar ul.week li div.eventcaldet .evtgreenbutton,
	div#calendar ul.week li div.eventcaldet .evtredbutton,
	div#calendar ul.week li div.eventcaldet .evtorangebutton {
		display: none;
	}

	span.today-badge {
		font-size: 8px;
		padding: 1px 2px;
	}
}

div#calendar ul.week.heightrestrict li>div {
	max-height:300px;
	overflow:hidden;
}

div#calendar ul.week li div.showmorewrap{
	text-align:right;
	margin-top:5px;
}

body.not-in-iframe {
	background: #f0f0f0;
}

body.not-in-iframe .container.iframecontainer {
	margin: 1% auto;
	padding: 15px !important;
}

.eventdet {
	margin-top:5px;
	margin-bottom: 5px;
}

.eventdet h3 {
	margin-top:0;
}

.calcontrol-btns {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

#calfilter .control-label,
#listfilter .control-label {
	font-weight: normal;
}

#calfilter .has-filter-value .form-control,
#listfilter .has-filter-value .form-control {
	border-color: #1d5f8a;
	box-shadow: inset 2px 0 0 #1d5f8a;
}

.calcontrol-btns .filter-active::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #e8623a;
	border-radius: 50%;
	margin-left: 6px;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

/* ===== Expandable event list cards ===== */
.evtcard {
	overflow: hidden;
	cursor: pointer;
}

/* Titlebar — full width */
.evtcard-titlebar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	background: var(--primary-dk);
	padding: 10px 15px;
}
.evtcard-titlebar:focus {
	outline: 2px solid rgba(255,255,255,0.6);
	outline-offset: -2px;
}
.evtcard-name {
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	line-height: 1.3;
}
.evtcard-chevron {
	color: rgba(255,255,255,0.7);
	font-size: 13px;
	margin-top: 2px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.evtcard.evtcard-open .evtcard-chevron {
	transform: rotate(180deg);
}

/* Inner: left column (body + detail) beside right column (image) */
.evtcard-inner {
	display: flex;
	align-items: flex-start;
}
.evtcard-left {
	flex: 1;
	min-width: 0;
}

/* Collapsed body: date + preview */
.evtcard-body {
	padding: 10px 15px 12px;
}
.evtcard-date {
	font-size: 13px;
	color: #555;
	margin-bottom: 3px;
}
.evtcard-preview {
	font-size: 13px;
	color: #777;
	line-height: 1.5;
}

/* Thumbnail (collapsed) */
.evtcard-thumb {
	flex-shrink: 0;
	width: 82px;
	padding: 5px;
}
.evtcard-thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

/* Detail section (hidden until expanded) */
.evtcard-detail {
	display: none;
	padding: 0 15px 15px;
	border-top: 1px solid #d0dde8;
}
.evtcard-desc {
	margin: 12px 0;
}
.evtcard-reg {
	margin: 14px 0 6px;
}
.evtcard-regstatus {
	margin: 0 0 6px;
}
.evtcard-regform {
	margin: 0;
}
.evtcard-addtocal {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e8eef4;
}

/* Mobile expanded: image full-width above body/detail */
.evtcard.evtcard-open .evtcard-inner {
	flex-direction: column;
}
.evtcard.evtcard-open .evtcard-thumb {
	order: -1;
	width: 100%;
	padding: 0;
}
.evtcard.evtcard-open .evtcard-thumb img {
	width: 100%;
	height: 180px;
	border-radius: 0;
}

/* Desktop expanded: image 30% wide on the right, top aligned */
@media (min-width: 768px) {
	.evtcard.evtcard-open .evtcard-inner {
		flex-direction: row;
		align-items: flex-start;
	}
	.evtcard.evtcard-open .evtcard-thumb {
		order: 0;
		width: 30%;
		min-width: unset;
		padding: 0;
		align-self: flex-start;
	}
	.evtcard.evtcard-open .evtcard-thumb img {
		width: 100%;
		height: auto;
		max-height: 100%;
		min-height: unset;
		border-radius: 0;
		object-fit: cover;
	}
}