/* styles */
/* called by your view template */

:root {
  --oc-red-color: rgb(232, 30, 20);
  --dark-text-color: rgb(221, 204, 187);
  --dark-text-hover: rgb(225, 207, 191);
  --oc-group-purple-color: rgb(116, 59, 230);
  --oc-group-blue-color: rgb(52, 109, 218);
  --oc-group-teal-color: rgb(30, 138, 128);
  --oc-group-green-color: rgb(61, 136, 41);
}

* { box-sizing: border-box; }

@media (prefers-color-scheme: light) {
  #attendance tr:nth-child(even) {
    background-color: rgb(242, 242, 242);
  }

  #attendance tr:hover {
    background-color: rgb(221, 221, 221);
  }

  button {
    background: rgb( 255, 255, 255);
    border: 1px solid rgb(30, 30,30);
  }

  #completed-items-header {
		background-color: rgb(240,240,240);
  }

  .hover_bkgr_fricc>div {
    background-color: rgb(255, 255, 255);
    box-shadow: 10px 10px 60px #555;
  }

  span.hilite {
    background-color: #FFFF00;
  }

  .popupCloseButton {
    background-color: #fff;
    border: 1px solid #999;
  }

  .not-a-link {
    color: #000;
  }

  .attendance-pending {
    background-color: yellow;
  }

  .attendance-success {
    background-color: rgb(211, 255, 195);
  }

  .attendance-error {
    background-color: pink;
  }
}

@media (prefers-color-scheme: dark) {

  body {
    background: rgb(51, 51, 51);
    color: var(--dark-text-color);
  }

  :visited {
    color: rgb(179, 44, 47);
  }
  :link{
    color: darkcyan;
  }
  nav {
    background-color: rgb(40, 40, 40);
  }

  #attendance th {
/*    border: 1px solid #FFFF0A;*/
    background-color: #444444;
    color: var(--dark-text-color);
  }

  #attendance tr:nth-child(even):hover {
    background-color: rgb(60, 60, 60);
    color: var(--dark-text-hover);
  }

  #attendance tr:hover {
    background-color: rgb(60, 60, 60);
    color: var(--dark-text-hover);
  }

  #attendance tr:nth-child(even) {
    background-color: rgb(37, 37, 37);
    color: var(--dark-text-color);
  }

  #attendance tr.attendance-month,
	#attendance tr.attendance-month:hover  {
    background-color: var(--oc-red-color);
    color: var(--dark-text-color);
  }

  button {
    background: rgb( 80, 80, 80);
    border: 1px solid rgb(30, 30, 30);
    color: var(--dark-text-color);
  }

  #completed-items-header {
    background: rgb(128, 128, 128);
  }

  .hover_bkgr_fricc>div {
    background-color: rgb(51, 51, 51);
    box-shadow: 10px 10px 60px rgb(5, 5, 5);
  }

  span.hilite {
    background-color: rgb(5, 5, 5);
    color:#FFFF00;;
    padding: 2px;
    border: 1px solid;
  }

  .popupCloseButton {
    background-color: rgb(153, 153, 153);
    border: 1px solid rgb(5, 5, 5);
  }

  .not-a-link {
    color: var(--dark-text-color);
  }

  .attendance-pending {
    background-color: rgb(133, 116, 0);
    color: var(--dark-text-color);
  }

  .attendance-success {
    background-color: rgb(40, 92, 40);
    color: var(--dark-text-color);
  }

  .attendance-error {
    background-color: rgb(122, 42, 48);
    color: var(--dark-text-color);
  }
}


.pin-input {
  font-size: 1.25rem;
  width: 8.75rem;
  letter-spacing: 0.25em;
  text-align: center;
}

body
{
	font-family: helvetica, arial, sans-serif;
	/*   margin: 0px;
  overflow: hidden; */
}

h1
{
	font-weight: bold;
	font-size: 36px;
	color: LightGray;
	margin: 5px;
}

h3
{
	/*   font-weight: bold;
  font-size: 36px;
  color: Indigo; */
	margin: 3px;
}

header > h3 { color: var(--oc-red-color); }

.header-stuff { margin: 3px; }

footer
{
	margin-top: 50px;
	padding-top: 25px;
	border-top: 1px solid lightgrey;
}

footer > a { color: #BBBBBB; }

nav
{
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 160px;
	padding: 12px 0;
	border-right: 1px solid hsl(0, 0%, 80%);
	overflow-y: auto;
	overflow-x: hidden;
}

nav > ul {
	padding-inline-start:24px;
	margin-top: 0px;
}

main
{
	display: flex;
	flex-wrap: wrap;
}

h1.sitelink { cursor: pointer; }


@media (max-width: 550px)
{
	body { margin: 0px; }
	
	header
	{
		/*     height: 180px; */
		padding: 8px;
		background: black;
	}
	
	nav
	{
		/*       top:201px;
	      width:100%;     */
		display: none;
	}
	
	.content
	{
		/*     position: absolute; */
		/*     margin-top: 100px; */
		padding: 8px;
		left: 0px;
	}
	
	#data-container > div {
		margin-right: 0px;
	}

	/*     .content-scroll {
	    overflow: scroll;
	    height: 100%;
	  } */
	
	img.detail { width: 100%; }
	
	.hover_bkgr_fricc > div {
		width: 98%;
		height: 90%;

		max-width: 551px;
	}
	
	button {	
		font-size: 13px;
	}
	
	.section-accessory {
		display: none !important;
	}

}

@media (min-width: 550px)
{
	#hamburger {
		display: none;
	}
	
	body
	{
		margin: 0px;
		overflow: hidden;
	}
	
	header
	{
		padding-left: 25px;
		margin-bottom: 2em;
		position: absolute;
		height: 110px;
		top: 0;
		left: 0;
		right: 0;
		border-bottom: 1px solid hsl(0, 0%, 80%);
		z-index: 4;
		background: black;
	}
	
	.body
	{
		position: absolute;
		top: 110px;
		bottom: 0;
		left: 0;
		right: 0;
	}
	
	.content
	{
		position: absolute;
		left: 180px;
		top: 0;
		bottom: 0;
		right: 0;
		padding: 10px;
	}
	
	#data-container > div {
		margin-right: 40px;
	}
	
	.content-scroll
	{
		overflow-y: scroll;
		overflow-x: hidden;
		height: 100%;
	}
	
	img.detail { height: 300px; }

	.hover_bkgr_fricc > div {
		width: 60%;
		max-width: 551px;
	}
	
	button {	
		font-size: 15px;
	}

	.section-accessory-narrow {
		display: none !important;
	}
}

.gallery-card
{
	min-height: 160px;
	width: 200px;
	border: 1px solid #777;
	border-radius: 5px;
	box-shadow: 2px 2px 0 2px rgba(0, 0, 0, 0.2);
	padding: 0.5em;
	margin-left: 1em;
	margin-bottom: 1em;
	cursor: pointer;
}

.gallery-card a
{
	font-weight: bold;
	text-decoration: none;
	color: #000;
}

/* 
img {
	filter:hue-rotate(90deg);
}
 */

.gallery-card .image-wrapper
{
	width: 182px;
	height: 150px;
	/*     box-align: center; */
}

.gallery-card .huge-plus
{
	display: block;
	/*   content:'\00d7'; */
	width: 182px;
	height: 150px;
	font-size: 200px;
	font-weight: bold;
	text-align: center;
	color: #ffdddd;
	/*     box-align: center; */
}

.gallery-card .huge-plus img { display: none; }

.gallery-card img
{
	display: block;
	border-radius: 5px;
	margin-bottom: 0.5em;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	vertical-align: middle;
	margin-left: auto;
	margin-right: auto;
}

/*.home-content-container
.gallery-card {
}
 */

.priceTag
{
	border: 1px solid;
	background: #eee;
	padding: 1px;
	margin: 2px;
}

img.detail
{
	display: block;
	border-radius: 5px;
	margin-bottom: 0.5em;
	/*   height: 300px; */
}

.emoji {
	display: inline-flex;
	position: relative;
	width: 24px;
	/* height: 24px; */
}

.emoji > img {
	width:24px;
	height:24px;
	margin-top:-18px;
	overflow: hidden;
	position: absolute;
/* 	top: 65%; */
	object-fit: contain;
}

#completed-items-header {
border: 1px solid rgb(128,128,128);
border-radius: 10px;
padding:8px;
/*background-color: rgb(240,240,240);*/
}

.section-block {
display: flex;
flex-direction: row-reverse;
width: 100%;
font-size: 15px;
line-height: 1.46668;
font-weight: 400;
margin: 8px 0px 12px 0px;
padding:8px;
right: 10%;
border: 1px solid rgb(128,128,128);
border-radius: 10px;
}

.section-accessory {
float:right;
margin: 0 0 4px 8px;
position: relative;
}

.section-accessory-narrow {
/* display:block; */
float:right;
margin: 0 0 4px 8px;
position: relative;
}

.section-expand-button {
display: block;
margin: 4px 8px 4px 8px;
position: relative;
}

.section-list-item {
display: block;
margin: 4px 8px 4px 8px;
position: relative;
}

.section-text {
flex: 1;
display:block;
}

.section-text > .div {
	display: inline-block;
}


.section-text-numbering {
	width:24px;
	font-weight: bold;
}
.section-text-title {
	font-weight: bold;
	text-indent: -24px;
    padding-left: 24px;
}


/* .section-accessory > */
button {
	transition: all 80ms linear;
/*	background: rgba(var(--sk_primary_background,255,255,255),1);*/
	border: 1px solid rgb(29,28,29);
	background-clip: padding-box;
	font-weight: 700;
	text-decoration: none;
	/* 
-webkit-text-size-adjust
	text-size-adjust: auto;
 */
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	outline: none;
	cursor: pointer;
/* 	border: none; */
	border-radius: 4px;
	align-items: center;
	position: relative;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
	-webkit-appearance: none;
	/* font-size: 15px; */
	height: 36px;
	min-width: 80px;
}

.mejs__button > button {
		min-width: 1px;
}

 .section-accessory > button {
 	display: inline-flex;

 }



code {
	--saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13);
	font-family: Monaco,Menlo,Consolas,Courier New,monospace!important;
	font-size: 12px;
	line-height: 1.50001;
	font-variant-ligatures: none;
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
	word-break: normal;
	-webkit-tab-size: 4;
	-moz-tab-size: 4;
	tab-size: 4;
	padding: 2px 3px 1px;
	border: 1px solid var(--saf-0);
	border-radius: 3px;
	background-color: rgba(var(--sk_foreground_min,29,28,29),.04);
	color: #e01e5a;
}

pre {
	margin-bottom: 16px;
	padding: 8px;
	border: 1px solid var(--saf-0);
	border-radius: 4px;
	background: rgba(var(--sk_foreground_min,29,28,29),.04);
	--saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13);
	font-family: Monaco,Menlo,Consolas,Courier New,monospace!important;
	font-size: 12px;
	line-height: 1.50001;
	font-variant-ligatures: none;
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
	word-break: normal;
	-webkit-tab-size: 4;
	-moz-tab-size: 4;
	tab-size: 4;

}

.dialog-scroll {
	flex-shrink: 1;
	overflow-y: auto;
/* 	height:500px; */
}

label { display: block; }
#home-content { display: block; }
#dynamic-content { display: none; }

.interest
{
	background: rgba(0, 220, 0, 1);
	color: #fff;
	border: 1px solid #999;
	border-radius: 4px;
	cursor: pointer;
	display: inline-block;
	padding: 5px;
	margin: 5px;
	/*     font-family: arial;
    font-weight: bold;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 25px;
    line-height: 30px;
    width: 30px;
    height: 30px; */
	text-align: center;
}

#nope table {
	border: 1px solid #777;
}

#nope tr {
	border: 1px solid #700;
}

#nope th {
	color: #fff;
	background-color: #ddcccc;
}

#nope td {
	border: 1px solid #070;
}

#attendance {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

#attendance td, #attendance th {
  border: 1px solid #ddd;
  padding: 8px;
}

#attendance tr.attendance-past{
}

#attendance tr.attendance-farfuture {
}

#attendance tr.attendance-month,
#attendance tr.attendance-month:hover  {
	background-color: var(--oc-red-color);
	color:white;
}

/*#attendance tr:hover {background-color: #ddd;}*/

#attendance th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #444444;
  color: white;
}

#attendance td.eventCell {
  cursor: pointer;
}

/* Ride group colors, shown in the /event participants popup */
.participants-Groups h3.group-red {
  color: var(--oc-red-color);
}
.participants-Groups h3.group-purple {
  color: var(--oc-group-purple-color);
}
.participants-Groups h3.group-blue {
  color: var(--oc-group-blue-color);
}
.participants-Groups h3.group-teal {
  color: var(--oc-group-teal-color);
}
.participants-Groups h3.group-green {
  color: var(--oc-group-green-color);
}
.participants-Groups h3.group-na {
  color: #616161;
}

span.hilite {
	padding:2px;
	border: 1px solid;
}

/* Popup box BEGIN */
.hover_fore_fricc { text-align: left; }

.hover_bkgr_fricc
{
	background: rgba(0, 0, 0, 0.4);
	cursor: pointer;
	display: none;
	height: 100%;
	position: fixed;
	text-align: center;
	top: 0;
	width: 100%;
	z-index: 10000;
}

.hover_bkgr_fricc .helper
{
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

.hover_bkgr_fricc > div
{
/*	background-color: #fff;
	box-shadow: 10px 10px 60px #555;*/
	display: inline-block;
	height: auto;
	min-height: 100px;
	max-height: 90%;
	overflow-x: hidden;
	overflow-y: scroll;
	vertical-align: middle;
	position: relative;
	border-radius: 8px;
	padding: 15px;
}

.not-a-link
{
	text-decoration: none;
/*	color: #000;*/
}




.popupCloseButton
{
	background-color: #fff;
	border: 1px solid #999;
	border-radius: 50px;
	cursor: pointer;
	display: inline-block;
	font-family: arial;
	font-weight: bold;
	position: sticky;
	margin-right: -15px !important; 
	margin-top: -10px !important;
	right: auto !important;
	top: -10px !important;
	float:right;
	font-size: 25px;
	line-height: 30px;
	width: 30px;
	height: 30px;
	text-align: center;
	z-index: 9999;
}

/*.popupCloseButton:hover { background-color: #ccc; }*/

.trigger_popup_fricc
{
	cursor: pointer;
	/*font-size: 20px;*/
	//margin: 20px;
	display: inline-block;
	font-weight: bold;
}

/* Popup box BEGIN */

/* .swiper-container {
      width: 100%;
      height: 300px;
      margin-left: auto;
      margin-right: auto;
      background: #000000;
    }
    .swiper-slide {
      background-size: cover;
      background-position: center;
    }
    .gallery-top {
      height: 300px;
      width: 100%;
    }
    .gallery-thumbs {
/*       height: 20%; */

	  height: 75px;
      box-sizing: border-box;
      padding: 10px 0;
    }
    .gallery-thumbs .swiper-slide
{
	height: 100%;
	opacity: 0.4;
}

.gallery-thumbs .swiper-slide-thumb-active { opacity: 1; }
*/


/* The work below, CSSBox, is released under the Creative Commons
   Attribution-ShareAlike 4.0 license and is available on
   https://github.com/TheLastProject/CSSBox. You are not required to add
   additional credit to your website, just leave the above text in this file */
div.cssbox { display: inline-block; }

span.cssbox_full
{
	z-index: 999;
	position: fixed;
	height: 100%;
	width: 100%;
	background-color: rgba(0,0,0,0.8);
	top: 0;
	left: 0;
	opacity: 0;
	pointer-events: none;
	cursor: default;
	transition: opacity 0.5s linear;
}

span.cssbox_full img
{
	position: fixed;
	background-color: white;
	margin: 0;
	padding: 0;
	max-height: 90%;
	max-width: 90%;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 20px black;
}

a.cssbox_close,
a.cssbox_prev,
a.cssbox_next
{
	z-index: 999;
	position: fixed;
	text-decoration: none;
	visibility: hidden;
	color: white;
	font-size: 36px;
}

a.cssbox_close
{
	top: 1%;
	right: 1%;
}

a.cssbox_close::after { content: '\00d7'; }

a.cssbox_prev,
a.cssbox_next
{
	top: 50%;
	transform: translate(0%, -50%);
}

a.cssbox_prev { left: 5%; }
a.cssbox_next { right: 5%; }
a:target ~ a.cssbox_close,
a:target ~ a.cssbox_prev,
a:target ~ a.cssbox_next { visibility: visible; }

a:target > img.cssbox_thumb + span.cssbox_full
{
	visibility: visible;
	opacity: 1;
	pointer-events: initial;
}

/* This is the end of CSSBox */

/* ===== Bulk RSVP (public/bulk.js) ===== */
.bulk-link-row { margin: 6px 0; }

#bulk-rsvp { text-align: left; min-width: 290px; max-width: 560px; color-scheme: light dark; }
#bulk-rsvp h3 { margin: 0 0 4px; }
#bulk-rsvp .bulk-for { margin: 0 0 10px; }

#bulk-rsvp .bulk-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
#bulk-rsvp .bulk-field { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
#bulk-rsvp .bulk-custom { gap: 6px 12px; }
#bulk-rsvp .bulk-days { gap: 4px 12px; }
#bulk-rsvp .bulk-day { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; cursor: pointer; }
#bulk-rsvp .bulk-days-hint { font-size: 13px; opacity: 0.75; }

/* 16px keeps iOS from zooming into the field */
#bulk-rsvp select,
#bulk-rsvp input[type=date] {
	font-size: 16px;
	min-height: 36px;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid rgba(128, 128, 128, 0.7);
	background: rgb(255, 255, 255);
	color: rgb(0, 0, 0);
}
#bulk-rsvp input[type=checkbox],
#bulk-rsvp input[type=radio] { width: 20px; height: 20px; flex: 0 0 auto; }

#bulk-rsvp .bulk-listhead {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
	padding: 6px 4px; font-weight: 700;
	border: 1px solid rgba(128, 128, 128, 0.5); border-bottom: none; border-radius: 6px 6px 0 0;
}
#bulk-rsvp .bulk-listhead label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
#bulk-rsvp .bulk-count { font-weight: 400; opacity: 0.85; }

#bulk-rsvp .bulk-events {
	list-style: none; margin: 0; padding: 0;
	max-height: 40vh; overflow-y: auto;
	border: 1px solid rgba(128, 128, 128, 0.5); border-radius: 0 0 6px 6px;
}
#bulk-rsvp .bulk-events li:nth-child(even) { background: rgba(128, 128, 128, 0.12); }
#bulk-rsvp .bulk-empty { padding: 12px; font-style: italic; }

#bulk-rsvp .bulk-row { display: flex; align-items: center; gap: 10px; padding: 8px; min-height: 44px; cursor: pointer; }
#bulk-rsvp .bulk-row.bulk-disabled { opacity: 0.55; cursor: default; }
#bulk-rsvp .bulk-what { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 2px 10px; }
#bulk-rsvp .bulk-date { font-weight: 700; }
#bulk-rsvp .bulk-time { opacity: 0.8; }

#bulk-rsvp .bulk-current {
	flex: 0 0 auto; padding: 2px 10px; border-radius: 10px; font-size: 13px; white-space: nowrap;
	background: rgba(128, 128, 128, 0.22);
}
#bulk-rsvp .bulk-has-Yes { background: rgba(61, 136, 41, 0.5); }
#bulk-rsvp .bulk-has-No { background: rgba(232, 30, 20, 0.4); }
#bulk-rsvp .bulk-has-Maybe { background: rgba(220, 180, 0, 0.5); }
#bulk-rsvp .bulk-has-Sick { background: rgba(216, 90, 150, 0.5); }

#bulk-rsvp .bulk-setto { margin: 12px 0 0; border: 1px solid rgba(128, 128, 128, 0.5); border-radius: 6px; }
#bulk-rsvp .bulk-statuses { display: flex; flex-wrap: wrap; gap: 4px 18px; }
#bulk-rsvp .bulk-status-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; }

#bulk-rsvp .bulk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
#bulk-rsvp .bulk-actions button { min-width: 130px; }
#bulk-rsvp button:disabled { opacity: 0.5; cursor: not-allowed; }

#bulk-rsvp .bulk-headline { font-size: 1.15em; font-weight: 700; }
#bulk-rsvp .bulk-notes { margin: 6px 0; padding-left: 22px; }
#bulk-rsvp .bulk-message { margin: 10px 0 0; }
#bulk-rsvp .bulk-error { color: var(--oc-red-color); font-weight: 700; }

@media (prefers-color-scheme: dark) {
	#bulk-rsvp select,
	#bulk-rsvp input[type=date] {
		background: rgb(80, 80, 80);
		color: var(--dark-text-color);
		border: 1px solid rgb(30, 30, 30);
	}
	#bulk-rsvp .bulk-error { color: rgb(255, 120, 110); }
}

@media (max-width: 550px) {
	#bulk-rsvp { min-width: 0; width: 100%; }
	#bulk-rsvp .bulk-filters { flex-direction: column; gap: 8px; }
	#bulk-rsvp .bulk-events { max-height: 36vh; }
	#bulk-rsvp .bulk-actions button { flex: 1 1 100%; }
}

/* ===== Coach check-in (public/checkin.js) ===== */
#checkin { text-align: left; min-width: 290px; max-width: 560px; color-scheme: light dark; }
#checkin h3 { margin: 0 0 4px; }
#checkin .ci-sub { margin: 0 0 10px; font-weight: 700; }
#checkin .ci-counts { margin: 6px 0 10px; font-size: 1.1em; }
#checkin .ci-counts-extra { font-size: 0.85em; opacity: 0.85; }

#checkin .ci-events { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
#checkin .ci-event {
	display: flex; flex-wrap: wrap; gap: 2px 10px; width: 100%; min-height: 48px; padding: 8px 10px;
	margin: 0 0 6px; text-align: left; align-items: center; cursor: pointer;
}
#checkin .ci-date { font-weight: 700; }
#checkin .ci-time { opacity: 0.8; }

#checkin .ci-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
#checkin #ci-filter {
	flex: 1 1 140px; font-size: 16px; min-height: 36px; padding: 2px 8px; border-radius: 4px;
	border: 1px solid rgba(128, 128, 128, 0.7); background: rgb(255, 255, 255); color: rgb(0, 0, 0);
}
#checkin #ci-walkup {
	font-size: 16px; min-height: 40px; padding: 2px 6px; border-radius: 4px; width: 100%;
	border: 1px solid rgba(128, 128, 128, 0.7); background: rgb(255, 255, 255); color: rgb(0, 0, 0);
}
#checkin .ci-walk { margin-top: 10px; }
#checkin .ci-showall { display: flex; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 8px; cursor: pointer; }
#checkin .ci-showall input { width: 20px; height: 20px; }

#checkin .ci-people {
	list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto;
	border: 1px solid rgba(128, 128, 128, 0.5); border-radius: 6px;
}
/* In the Attendance tab the popup already scrolls; a second scrollbar inside it
   overlapped the buttons in Safari, so the list just grows. */
#checkin.ci-embedded .ci-people { max-height: none; overflow: visible; }
#checkin .ci-people li:nth-child(even) { background: rgba(128, 128, 128, 0.1); }
#checkin .ci-group { padding: 4px 8px; font-weight: 700; background: rgba(128, 128, 128, 0.25) !important; }
#checkin .ci-empty { padding: 12px; font-style: italic; }
#checkin .ci-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; min-height: 52px; }
#checkin .ci-person.ci-busy { opacity: 0.55; }
#checkin .ci-name { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
#checkin .ci-role, #checkin .ci-rsvp { font-size: 12px; opacity: 0.8; }
#checkin .ci-rsvp { padding: 1px 8px; border-radius: 10px; background: rgba(128, 128, 128, 0.22); opacity: 1; }
#checkin .ci-rsvp-Yes { background: rgba(61, 136, 41, 0.5); }
#checkin .ci-rsvp-No { background: rgba(232, 30, 20, 0.4); }
#checkin .ci-rsvp-Maybe { background: rgba(220, 180, 0, 0.5); }
#checkin .ci-rsvp-Sick { background: rgba(216, 90, 150, 0.5); }

#checkin .ci-buttons { display: flex; gap: 6px; flex: 0 0 auto; }
#checkin .ci-mark { min-width: 110px; min-height: 44px; font-size: 15px; cursor: pointer; border-radius: 6px; }
#checkin .ci-mark.ci-on.ci-present { background: rgb(61, 136, 41); color: #fff; font-weight: 700; }

#checkin .ci-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
#checkin .ci-actions button { min-width: 130px; }
#checkin button:disabled, #checkin select:disabled { opacity: 0.5; cursor: not-allowed; }
#checkin .ci-message { margin: 10px 0 0; }
#checkin .ci-error { color: var(--oc-red-color); font-weight: 700; }

@media (prefers-color-scheme: dark) {
	#checkin #ci-filter, #checkin #ci-walkup { background: rgb(80, 80, 80); color: var(--dark-text-color); border: 1px solid rgb(30, 30, 30); }
	#checkin .ci-error { color: rgb(255, 120, 110); }
}

@media (max-width: 550px) {
	#checkin { min-width: 0; width: 100%; }
	#checkin .ci-person { flex-wrap: wrap; }
	#checkin .ci-buttons { width: 100%; }
	#checkin .ci-mark { flex: 1 1 0; }
	#checkin .ci-actions button { flex: 1 1 100%; }
}

/* Details | Attendance tabs on the event detail page (coaches). */
.ed-tabs { display: flex; margin: 6px 0 10px; border-bottom: 1px solid rgba(128,128,128,0.6); }
.ed-tab { flex: 1 1 0; background: none; border: none; border-bottom: 3px solid transparent; border-radius: 0; margin-bottom: -1px;
	padding: 10px 2px; font-size: 0.95em; line-height: 1.25; cursor: pointer; color: inherit; opacity: 0.75; }
.ed-tab.ed-tab-on { opacity: 1; font-weight: 700; border-bottom-color: #4BB8DA; }
.ed-tab:focus-visible { outline: 2px solid #4BB8DA; }
#checkin.ci-embedded { min-width: 0; max-width: none; }

#checkin .ci-title, #checkin .ci-sub { text-align: center; }
#checkin .ci-sub { margin: 2px 0 0; font-weight: 700; }
