/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
body {
	font-family: arial, sans-serif;
	background-color: #444444;
}

/* `background-attachment: fixed` on body itself is unreliable on iOS
   Safari (it still scrolls/rubber-bands with the page on touch), so the
   background lives on a separate position:fixed layer behind everything
   instead. That layer can still shift on some browsers/devices, but the
   solid body color underneath is close enough to the tile's own tone that
   any movement isn't noticeable. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: url("/assets/background-grey-33713c8e.png") repeat;
	z-index: -1;
}
.header {
	width: 100%;
	height: 25px;
	//background-color: #373f45;
	top: 0;
	right: 0;
	left: 0;
	position: fixed;
	padding: 9px;
}
/* #app_nav was previously always empty (nothing ever content_for(:app_nav)'d
   into it), so its default block layout never mattered. Now that the Menu
   toggle button renders there, it needs to float left to sit on the same
   line as #user_nav.right (the Log out/Log in button) rather than stacking
   above it as a full-width block. */
#app_nav {
	float: left;
}
.content {
	bottom: 30px;
	right: 0;
	position: absolute;
	//background-color: #373f45;
	top: 35px;
	left: 0;
	margin-right: 0px;
	margin-top: 0;
	margin-left: 0px;
}

.content-inner {
	margin: 20px;
	padding: 5px 10px;
	border: 2px solid #525d65;
	background-color: #eff3f5;
	bottom: 10px;
	position: absolute;
	top: 10px;
	right: 10px;
	left: 10px;
	overflow: scroll;
	border-radius: 15px; 
	-moz-border-radius: 15px; 
	-webkit-border-radius: 15px; 
	-moz-box-shadow: 0 0 20px #000000;
	-webkit-box-shadow: 0 0 20px #000000;
}
.content-inner .about h2, .content-inner .about h3 {
	margin-bottom: 4px;
}
.content-inner .about p {
	margin-top: 4px;
}
/*Flash Notifications*/
.flash {
	left: 50%;
	top: 10px;
	transform: translateX(-50%);
	position: fixed;
	width: 250px;
	height: 39px;
	z-index: 50;
	font-size: .8em;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	overflow: hidden;
}
.flash-message {
	margin-top: 1em;
	margin-left: 0.5em;
}
.flash-notice,
.flash-success {
	color: #009f00;
	border: 1px solid #009f00;
	background-color: #c0e4b7;
}

.flash-alert,
.flash-error {
	color: #e2330e;
	border: 1px solid #e43500;
	background-color: #ecb8a8;
}

.flash-warning {
	color: #664d03;
	border: 1px solid #997404;
	background-color: #ffe69c;
}

.flash-info {
	color: #055160;
	border: 1px solid #087990;
	background-color: #b6effb;
}

.flash-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	width: 100%;
	background-color: currentColor;
}
/*Footer*/
#footer {
	//background-color: #565e65;
	bottom: 0;
	right: 0;
	left: 0;
	position: fixed;
	width: 100%;
	font: 1em "Lucida Grande", Lucida, Verdana, sans-serif;
	color: #f5f5f5;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"nav ver"
		"tabs tabs";
	align-items: center;
	row-gap: 2px;
	padding-top: 4px;
}

/* Enough room for the left text, the version, and the tabs on one line -
   collapse to the two-row layout above this width. */
@media (min-width: 700px) {
	#footer {
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas: "nav tabs ver";
	}
}

#footer .user_nav {
	grid-area: nav;
	margin: 0;
	padding-left: 10px;
}

#footer .version {
	grid-area: ver;
	margin: 0;
	padding-right: 10px;
	justify-self: end;
}

#footer #tabs {
	grid-area: tabs;
	display: flex;
	justify-content: center;
	text-decoration:none;
	text-shadow:1px 1px 0px #aade7c;
	font-family:Comic Sans MS;
	font-size:13px;
	font-weight:bold;
}

#footer #tabs ul {
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

#footer #tabs .button {
	-moz-box-shadow:inset 0px 1px 0px 0px #fce2c1;
	-webkit-box-shadow:inset 0px 1px 0px 0px #fce2c1;
	box-shadow:inset 0px 1px 0px 0px #fce2c1;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ffc477), color-stop(1, #fb9e25) );
	background:-moz-linear-gradient( center top, #ffc477 5%, #fb9e25 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc477', endColorstr='#fb9e25');
	background-color:#ffc477;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	-moz-border-top-left-radius: 10px;
	-moz-border-top-right-radius: 10px;
	-webkit-border-top-left-radius: 10px;
	-webkit-border-top-right-radius: 10px;
	display:inline-block;
	color: #914700;
	font-family:Comic Sans MS;
	font-size: 14px;
	font-weight:bold;
	text-decoration:none;
	text-shadow: #ddd 1px 1px 0;
	border-top: 1px solid #eeb44f;
	border-right: 1px solid #eeb44f;
	border-left: 1px solid #eeb44f;
	margin-top: 0;
	padding: 3px 24px 2px;
}
#footer #tabs .button:hover, #footer #tabs .button a:hover {
	color: #ff4900;
}
#footer #tabs .button:active {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #fb9e25), color-stop(1, #ffc477) );
	background:-moz-linear-gradient( center top, #fb9e25 5%, #ffc477 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fb9e25', endColorstr='#ffc477');
	background-color:#fb9e25;

}
#footer #tabs .button a {
	text-decoration:none;
	color: #914700;
}
#footer #tabs .button.selected {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #fe1a00), color-stop(1, #ce0100) );
	background:-moz-linear-gradient( center top, #fe1a00 5%, #ce0100 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fe1a00', endColorstr='#ce0100');
	background-color:#fe1a00;
	color:#ffffff;
	border:1px solid #d83526;
}
#footer #tabs .button.selected a {
	text-decoration:none;
	color: #ffffff;
	text-shadow: none;
}


#header .button {
	-moz-box-shadow:inset 0px 1px 0px 0px #caefab;
	-webkit-box-shadow:inset 0px 1px 0px 0px #caefab;
	box-shadow:inset 0px 1px 0px 0px #caefab;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #77d42a), color-stop(1, #5cb811) );
	background:-moz-linear-gradient( center top, #77d42a 5%, #5cb811 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77d42a', endColorstr='#5cb811');
	background-color:#77d42a;
	-moz-border-radius:20px;
	-webkit-border-radius:20px;
	border-radius:20px;
	border:1px solid #268a16;
	display:inline-block;
	color:#306108;
	font-family:Comic Sans MS;
	font-size:13px;
	font-weight:bold;
	padding:2px 16px;
	text-decoration:none;
	text-shadow:1px 1px 0px #aade7c;
}
#header .button:hover {
	color: #848333;
}
/* Sits flush against the screen's left edge: the negative margin counters
   .header's 9px padding, and the left corners lose their rounding since a
   corner touching the edge of the screen shouldn't look pill-shaped there. */
#header .menu-toggle {
	margin-left: -9px;
	-moz-border-radius-topleft: 0;
	-moz-border-radius-bottomleft: 0;
	-webkit-border-top-left-radius: 0;
	-webkit-border-bottom-left-radius: 0;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
#header .button:active {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #5cb811), color-stop(1, #77d42a) );
	background:-moz-linear-gradient( center top, #5cb811 5%, #77d42a 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5cb811', endColorstr='#77d42a');
	background-color:#5cb811;
	color: #ba0011;
}

.wolf, .fox {
 display: none;
}

.block {
	clear: left;
	float: none;
	display: block;
}

.menu{
	left: -110px;
	position: absolute;
	top: 125px;
	z-index: 10;
	margin: 0;
	padding: 0;
}
.menu nav, .menu nav ul {
	padding: 0;
}

.menu nav ul li {
	background-color: #047ed4;
	background-image:-webkit-gradient(linear, left top, left bottom,color-stop(0%, rgba(255, 255, 255, 0.8)), color-stop(100%, rgba(255, 255, 255, 0.2)));
	background-image:-moz-linear-gradient(-90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
	filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#80ffffff', EndColorStr='#20ffffff');
	-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorStr='#80ffffff', EndColorStr='#20ffffff')";
	border: 1px solid #034878;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	-moz-border-top-right-radius: 5px;
	-moz-border-bottom-right-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-webkit-border-bottom-right-radius: 5px;
	box-shadow:0px 0px 0px rgb(255, 255, 255);
	-moz-box-shadow:0px 0px 0px rgb(255, 255, 255);
	-webkit-box-shadow:0px 0px 0px rgb(255, 255, 255);
}
.menu nav ul li a {
	display: block;
	padding:10px 30px;
	font-size:12px;
	font-weight:normal;
	color:rgb(255, 255, 255);
	text-decoration: none;
	text-shadow:1px 1px 1px rgb(0, 0, 0);
	margin: 3px 0;
}

.menu nav ul li:hover {
	background-color: #0598ff;
}

.menu nav ul li:hover a {
	color: #023559;
	text-shadow:1px 1px 1px rgb(255, 255, 255);
	cursor: pointer;
}

.menu nav ul li.active {
	background-image:linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
	background-image:-webkit-gradient(linear, left bottom, left top,color-stop(0%, rgba(255, 255, 255, 0.8)), color-stop(100%, rgba(255, 255, 255, 0.2)));
	background-image:-moz-linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
}
.menu nav ul li.active a {
	text-shadow:1px 1px 1px rgb(255, 255, 255);
	color: #023559;
}
.right {
	float: right;
}
/*The Search Form*/
.form-inline {
  flex-direction: row;
  flex-wrap: wrap;
  background-color: #525d65;
  color: white;
  margin: -10px -10px 10px -10px;
  padding: 10px;
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px 16px;
}

/* One label + one field as a single flex item, so the pair wraps together and
   can never end up on separate lines. The 6px gap here is what sits between a
   name and its field; the row's own 16px gap separates one pair from the next,
   which is what makes a label read as belonging to the field beside it. */
.form-inline .search-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* The global `div label` rule (see .field-label) would otherwise colour these
   #1a1a1a and stack them as blocks. This selector carries a class so it wins on
   specificity, keeping the labels white and on the same line as their field.
   align-self overrides the row's align-items: flex-start, so each name sits
   centred against its 36px input rather than riding along the top edge. */
.form-inline label {
  margin: 0;
  font-size: 0.85em;
  display: inline-block;
  color: #ffffff;
  align-self: center;
  white-space: nowrap;
}

/* The old .form-actions / .reset search buttons were removed once every index
   moved to .search-actions with .btn-submit and the outlined Reset button. */

/* Search/Reset use the same controls as the unit form's Save/Cancel. Deliberately
   NOT .form-actions -- that selector is more specific than .form-actions-row and
   would drag the old grey button styling back over .btn-submit.

   No flex-basis, so the pair sits inline with the fields on the .form-inline row
   and wraps with them (the parent is already flex-wrap: wrap). Keeping the two
   in their own flex box means they wrap together rather than splitting apart. */
.form-inline .search-actions {
  flex: 0 0 auto;
}

/* .form-inline's background is #525d65, the same colour as the outlined button's
   border and text, so Cancel's palette would be invisible here. Same geometry,
   inverted for the dark bar. */
.form-inline .action-button {
  border-color: #ffffff;
  color: #ffffff;
}

.form-inline .action-button:hover {
  background-color: #ffffff;
  color: #525d65;
}

/* Search swaps .btn-submit's two navies: the lighter one rests, the darker one
   arrives on hover. Scoped to the search bar so the unit form's Save and the
   public application forms keep the original direction. The :active rule is
   restated because these selectors outrank the base .btn-submit:active. */
.form-inline .search-actions .btn-submit {
  background: #163d7e;
}

.form-inline .search-actions .btn-submit:hover {
  background: #0d2a5c;
}

.form-inline .search-actions .btn-submit:active {
  background: #0a1f44;
}

.pagination {
	text-align: center;
	margin-bottom: 20px;
}
.pagination a, .pagination em {

	font-size: 1.2em;
	padding: 2px 10px;
}
.pagination em, .pagination a:hover {
	background-color: #525d65;
	color: #fff;
}
.pagination a {
	text-decoration: none;
	background-color: rgba(154, 175, 190, 0.4);
	color: #525d65;
}
.index-pages {
	background-color: #525d65;
	margin: 10px -10px 0px -10px;
	padding: 10px;
	color: white;
	position: sticky;
	position: -webkit-sticky;
	text-align: right;
}
.index-pages.last {
	margin: 0px -10px 10px -10px;
	text-align: left;
}
.index-table {
	width: 100%;
	padding: 0;
	border-collapse: collapse;
}
.index-table thead {
	position: -webkit-sticky;
	position: sticky;
	background-color: rgba(154, 175, 190, 0.4);
	color: #525d65;
}
.index-table thead th, 
.index-table tbody td {
	padding-top: 5px;
	padding-bottom: 5px;
	margin:0;
	border:0;
}
.index-table .odd td {
	background-color: #fff;
}
/* Sortable column headers -- look like the header text until hovered. */
.index-table thead th a {
	color: inherit;
	text-decoration: none;
	display: inline-block;
}
.index-table thead th a:hover {
	text-decoration: underline;
}
/* Ransack appends its own ▲/▼ to the link text -- no ::after arrow here. */
.index-table thead th a.asc,
.index-table thead th a.desc {
	font-weight: bold;
}
/* No `a` qualifier: these also style the <button> inside a button_to, so an
   action needing a non-GET verb looks identical to one that is a plain link. */
.index-new-button,
.action-button {
	text-decoration: none;
	vertical-align: top;
	border: 1px solid;
	border-color: #525d65;
	color: #525d65;
	display: inline-block;
	padding: 10px;
	/* Matches .btn-submit, so outlined and solid buttons share a corner. */
	border-radius: 4px;
	/* Strip the UA button chrome so a <button> matches an <a>. */
	background: none;
	font: inherit;
	line-height: normal;
	cursor: pointer;
}
/* button_to wraps its button in a form; keep that wrapper out of the layout. */
.form-actions-row form.button_to {
	display: inline-flex;
	margin: 0;
}
.index-new-button .feather,
.action-button .feather {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.index-new-button:hover,
.action-button:hover {
	background-color: #525d65;
	color: white;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.box:hover {

}
.box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* centers wrapped lines within the block */
  width: 7em;
  height: 5em;
  padding: 1em;
  flex-shrink: 0;
  overflow: hidden;
}
.box.green {
	-moz-box-shadow:inset 0px 1px 0px 0px #caefab;
	-webkit-box-shadow:inset 0px 1px 0px 0px #caefab;
	box-shadow:inset 0px 1px 0px 0px #caefab;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #77d42a), color-stop(1, #5cb811) );
	background:-moz-linear-gradient( center top, #77d42a 5%, #5cb811 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77d42a', endColorstr='#5cb811');
	background-color:#77d42a;
	-moz-border-radius:10px;
	-webkit-border-radius:10px;
	border-radius:10px;
	border:1px solid #268a16;
	color:#306108;
	font-family:Comic Sans MS;
	font-size:14px;
	font-weight:bold;
	text-decoration:none;
	text-shadow:1px 1px 0px #aade7c;
}
.box.green:hover {
	color: #848333;
}
.box.orange {
	-moz-box-shadow:inset 0px 1px 0px 0px #fce2c1;
	-webkit-box-shadow:inset 0px 1px 0px 0px #fce2c1;
	box-shadow:inset 0px 1px 0px 0px #fce2c1;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ffc477), color-stop(1, #fb9e25) );
	background:-moz-linear-gradient( center top, #ffc477 5%, #fb9e25 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc477', endColorstr='#fb9e25');
	background-color:#ffc477;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	color: #914700;
	font-family:Comic Sans MS;
	font-size: 14px;
	font-weight:bold;
	text-decoration:none;
	text-shadow: #ddd 1px 1px 0;
	border: 1px solid #eeb44f;
}
.box.orange:hover {
	color: #ff4900;
}

    /* ── Cards ── */
    /* .logo-card, */
    .form-card {
      background: #ffffff;
      border: 0.5px solid #d0d0d0;
      max-width: 860px;
      margin: 0 auto;
    }
 
    /* .logo-card {
      border-radius: 4px 4px 0 0;
      padding: 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 2px;
    } */
 
    .form-card {
      padding: 28px 32px;
      margin-bottom: 2px;
    }
 
    .form-card:last-child {
      border-radius: 0 0 4px 4px;
      margin-bottom: 0;
    }
 
    /* ── Logo ──
    .logo-box {
      border: 1px solid #d0d0d0;
      border-radius: 4px;
      padding: 12px 32px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
 
    .logo-icon { width: 52px; height: 52px; }
 
    .logo-mrc {
      font-size: 22px;
      font-weight: 700;
      color: #0d2a5c;
      letter-spacing: 1px;
      line-height: 1;
    }
 
    .logo-name {
      font-size: 11px;
      font-weight: 600;
      color: #0d2a5c;
      letter-spacing: 0.5px;
    }
 
    .logo-sub {
      font-size: 9px;
      color: #0d2a5c;
      letter-spacing: 0.3px;
    } */
 
    /* ── Form title ── */
    .form-title {
      font-size: 26px;
      font-weight: 700;
      color: #0d2a5c;
      margin-bottom: 4px;
    }
 
    .form-subtitle {
      font-size: 13px;
      color: #555;
    }
 
    .divider {
      border: none;
      border-top: 0.5px solid #d0d0d0;
      margin: 20px 0;
    }
 
    /* ── Field groups ── */
    .field-group {
	  margin-top: 1em;
      margin-bottom: 1em;
    }
 
    .field-label, div label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: #1a1a1a;
      margin-bottom: 8px;
    }
 
    .req { color: #c0392b; margin-left: 2px; }
 
    .sub-label {
      font-size: 11px;
      color: #888;
      margin-top: 3px;
    }

    /* Advisory, not an error -- the form still saves. */
    .sub-label.warning { color: #b7791f; font-weight: bold; }

    /* ── Read-only values ── */
    /* The show-page counterpart to an input. Same height, padding and type as
       the real control, with a transparent border standing in for the input's
       1px, so a value sits exactly where its field sits on the form. */
    .field-value {
      min-height: 36px;
      display: flex;
      align-items: center;
      padding: 0 10px;
      border: 1px solid transparent;
      font-size: 13px;
      color: #0c2a5c;
    }

    .field-value.empty { color: #888; font-style: italic; }

    .value-list {
      margin: 0;
      padding: 0 0 0 11px;
      list-style: none;
    }

    .value-list li {
      font-size: 13px;
      color: #0c2a5c;
      padding: 4px 0;
    }
 
    /* ── Grid layouts ── */

    .three-col {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1em;
    }
 
    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1em;
    }
 
    @media (max-width: 560px) {
      .three-col, .two-col { grid-template-columns: 1fr; }
    }
 
    /* ── Inputs ── */
    .wf-input,
    .wf-input-date,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
/*      width: 100%;*/
      height: 36px;
      border: 1px solid #cccccc;
      border-radius: 4px;
       padding: 0 10px; 
      font-size: 13px;
      color: #0c2a5c;       /* placeholder color */
      background: #ffffff;
      appearance: none;
      -webkit-appearance: none;
      outline: none;
      transition: border-color 0.15s;
    }
	
 
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="tel"]:focus,
    input[type="date"]:focus,
    input[type="number"]:focus,
    select:focus,
    textarea:focus {
      border-color: #0d2a5c;
      color: #0c2a5c;
    }
 
    /* ── Date input icon ── */
    /* inline-block so the wrapper hugs the input; if it stretched to the grid
       cell the icon would float away from the field's right edge. */
    .input-date-wrap {
      position: relative;
      display: inline-block;
    }

    /* Room for the icon so a typed date never runs underneath it. */
    .input-date-wrap input[type="date"] {
      padding-right: 34px;
    }

    /* Sits inside the input's border, full height, so the whole right end of
       the field reads as the click target. */
    .date-picker-button {
      position: absolute;
      top: 1px;
      right: 1px;
      bottom: 1px;
      width: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: none;
      background: none;
      color: #888;
      cursor: pointer;
    }

    .date-picker-button:hover { color: #0d2a5c; }

    .date-picker-button .feather {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
    }
 
    input[type="date"]::-webkit-calendar-picker-indicator {
      opacity: 0;  /* hide native; svg above replaces it */
      cursor: pointer;
    }
 
    /* Select arrow */
    /* .select-wrap {
      position: relative;
    }
 
    .select-wrap select {
      padding-right: 28px;
    }
 
    .select-wrap svg {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      color: #888;
    } */
 
    /* ── Radio & Checkbox ── */
    /* .radio-group,
    .check-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 4px;
    }
 
    .radio-item,
    .check-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #333;
      cursor: pointer;
    }
 
    .radio-item input[type="radio"],
    .check-item input[type="checkbox"] {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      accent-color: #0d2a5c;
      cursor: pointer;
    } */
	.check-group {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 8px 20px;
	  align-items: center;
	}

	/* Sits on the <label> itself, so it has to beat the blanket `div label`
	   block rule above — hence the explicit margin reset. */
	.check-option {
	  display: inline-flex;
	  align-items: center;
	  gap: 4px;
	  white-space: nowrap;
	  margin-bottom: 0;
	  font-weight: 400;
	}

	.check-option > input[type="checkbox"],
	.check-option > label {
	  margin: 0;
	}

	/* Long consent sentences wrap instead of running off the row. */
	.check-option.check-option-block {
	  display: flex;
	  white-space: normal;
	  align-items: flex-start;
	}

	/* A checkbox is far too small to carry the red border that marks an empty
	   text input, so a required consent row shows the state on the whole row
	   instead. :has() is safe here -- allow_browser versions: :modern already
	   gates on browsers that support it (see ApplicationController). */
	/* inline-flex, not the base rule's flex: the box shrinks to the checkbox and
	   its text instead of stretching the full width of the form. max-width keeps
	   a long consent sentence wrapping inside the box rather than overflowing. */
	/* The border stays in the box model but transparent, so ticking the box
	   makes the highlight disappear without the row shifting by 2px. */
	.check-option-block:has(input.required-field) {
	  display: inline-flex;
	  max-width: 100%;
	  padding: 10px 12px;
	  gap: 8px;
	  border: 1px solid transparent;
	  border-radius: 4px;
	  background-color: transparent;
	  transition: background-color 0.15s, border-color 0.15s;
	}

	/* Highlighted only while the consent is still outstanding. */
	.check-option-block:has(input.required-field.required-empty) {
	  border-color: #dc3545;
	  background-color: #fde8e8;
	}

	/* Checked: nothing to draw attention to, so no border and no background. */
	.check-option-block:has(input.required-field.required-filled) {
	  border-color: transparent;
	  background-color: transparent;
	}

	/* The row carries the state now, so the box keeps its native appearance --
	   the shared .required-field rule would otherwise paint the checkbox itself
	   red. More specific than that rule, so it wins. */
	input[type="checkbox"].required-field.required-empty,
	input[type="checkbox"].required-field.required-filled,
	input[type="checkbox"].required-field.required-invalid {
	  border: none;
	  background-color: transparent;
	}
 
    /* Override height for radio/checkbox — they are not text inputs */
    .radio-item input,
    .check-item input {
      height: auto;
      padding: 0;
      border: none;
    }
 
    /* ── Helper note ── */
    /* .field-note {
      font-size: 11px;
      color: #888;
      margin-top: 3px;
    }
 
    /* ── Signature canvas ── */
    .sig-canvas-wrap { max-width: 340px; }
 
    /* Classes, not ids — the green form renders four pads on one page. The CSS
       here owns the canvas's *layout* size; signature_controller.js only sets the
       backing bitmap size (offsetWidth * devicePixelRatio). Without a CSS size the
       bitmap feeds back into offsetWidth and the ResizeObserver grows the canvas
       on every pass on high-DPI screens. */
    .signature-pad {
      display: block;
      width: 100%;
      height: 120px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background: #fff;
      cursor: crosshair;
      touch-action: none;
    }

    .clear-signature {
      display: block;
      margin-top: 4px;
      margin-left: auto;
      background: none;
      border: none;
      font-size: 12px;
      color: #888;
      cursor: pointer;
      padding: 2px 0;
    }

    .clear-signature:hover { color: #c0392b; }
 
    /* ── Guidelines section ── */
    .section-heading {
      font-size: 20px;
      font-weight: 700;
      color: #0d2a5c;
      margin-bottom: 4px;
    }
 
    .section-source {
      font-size: 12px;
      color: #888;
      font-style: italic;
      margin-bottom: 16px;
    }
 
    .guidelines-subheading {
      font-size: 13px;
      font-weight: 700;
      color: #0d2a5c;
      margin-bottom: 6px;
    }
 
    .guidelines-body {
      font-size: 13px;
      color: #333;
      line-height: 1.7;
      margin-bottom: 14px;
    }
 
    .guidelines-list {
      padding-left: 20px;
      font-size: 13px;
      color: #333;
      line-height: 1.9;
      margin-bottom: 14px;
    }
 
    /* ── Statement of agreement ── */
    .stmt-heading {
      font-size: 14px;
      font-weight: 700;
      color: #111;
      margin-bottom: 8px;
    } */
 
    /* ── Submit button ── */
    .submit-wrap {
      margin-top: 28px;
      text-align: right;
    }
 
    .btn-submit {
      background: #0d2a5c;
      color: #ffffff;
      border: none;
      border-radius: 4px;
      padding: 10px 32px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s;
    }
 
    .btn-submit:hover { background: #163d7e; }
    .btn-submit:active { background: #0a1f44; }

    /* Cancel + Save on one left-aligned row. Scoped to its own class so the
       public application forms keep their plain .submit-wrap. Declared after
       .submit-wrap so the flex layout wins over its text-align. */
    .form-actions-row {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 12px;
    }

    /* One height for both controls. The outlined link carries a 1px border and
       an icon while the submit input has neither, so they only line up if the
       box model is stated explicitly rather than left to padding. */
    .form-actions-row .action-button,
    .form-actions-row .btn-submit {
      height: 38px;
      box-sizing: border-box;
      font-size: 14px;
      line-height: 1;
    }

    .form-actions-row .action-button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0 16px;
    }

    .form-actions-row .btn-submit {
      padding: 0 32px;
    }

    /* Actions above a title, rather than after a form -- no .submit-wrap here,
       so its 28px top margin does not push the row down the page. Equal margin
       above and below keeps the row evenly spaced between header and title. */
    .form-actions-row.actions-top {
      margin-top: 20px;
      margin-bottom: 20px;
    }

    /* ── Validation errors ── */
    /* Same red as .req and the alert flash, so errors read as one family. */
    #error_explanation {
      border: 1px solid #f5c2c7;
      background: #f8d7da;
      color: #842029;
      border-radius: 4px;
      padding: 12px 16px;
      margin-bottom: 20px;
    }

    #error_explanation h2 {
      font-size: 14px;
      font-weight: 600;
      color: #842029;
      margin: 0 0 6px;
    }

    #error_explanation ul { margin: 0; padding-left: 18px; }
    #error_explanation li { font-size: 13px; }

    /* Rails wraps an invalid field and its label in a div; display:contents
       keeps that wrapper from breaking the .two-col grid. */
    .field_with_errors { display: contents; }

    /* required_fields_controller sets the hidden property once any required
       field is empty or invalid. Stated explicitly so adding a `display` rule
       to .btn-submit later can't quietly override the UA [hidden] default. */
    .btn-submit[hidden] { display: none; }
	
	/* Section toggle button */
	.section-toggle {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  width: 100%;
	  padding: 12px 16px;
	  background-color: #6c757d;
	  color: #ffffff;
	  font-size: 1rem;
	  font-weight: 600;
	  text-align: left;
	  border: none;
	  border-radius: 4px;
	  cursor: pointer;
	  margin-top: 1.5rem;
	  transition: background-color 0.2s ease;
	}

	.section-toggle:hover {
	  background-color: #5a6268;
	}

	/* Chevron icon */
	.section-toggle::after {
	  content: "▼";
	  font-size: 0.75rem;
	  transition: transform 0.3s ease;
	}

	/* Rotate chevron when section is open */
	.section-toggle.open::after {
	  transform: rotate(180deg);
	}

	/* The collapsible fieldset. The .section-toggle button above it is the
	   visible heading, so the fieldset carries no border/padding of its own and
	   its <legend> is kept for screen readers only. */
	.collapsible-section {
	  overflow: hidden;
	  max-height: 0;
	  transition: max-height 0.4s ease;
	  display: none;
	  border: none;
	  padding: 0;
	}

	.collapsible-section > legend {
	  position: absolute;
	  width: 1px;
	  height: 1px;
	  padding: 0;
	  margin: -1px;
	  overflow: hidden;
	  clip: rect(0 0 0 0);
	  white-space: nowrap;
	  border: 0;
	}

	.collapsible-section.open {
	  max-height: 9999px;
	  display: block;
	  margin-top: 1em;
	}

	/* Required sections always visible */
/*	fieldset.required-section {
	  border: 1px solid #dee2e6;
	  border-radius: 4px;
	  padding: 1rem;
	  margin-top: 1rem;
	}*/
/*	.hidden { display: none; }*/
	
	/*	Required Fields section*/
	.required-field.required-empty, .required-field.required-empty:focus,
	.required-field.required-invalid, .required-field.required-invalid:focus {
	  border: 1px solid #dc3545; !important;
	  background-color: #fde8e8; !important;
	}

	.required-field.required-filled, .required-field.required-filled:focus {
	  border: 1px solid #ced4da;
	  background-color: #ffffff;
	}

	.required-asterisk {
	  color: #dc3545;
	  font-weight: bold;
	}

	.required-asterisk.hidden {
	  display: none;
	}
	
/*	Validation messages*/
	.required-asterisk,
	.field-error {
	  color: #dc3545;
	  font-weight: bold;
	}

	.field-error {
	  font-size: 0.75em;
	  font-weight: normal;
	  margin-left: 4px;
	}

	.field-error.hidden {
	  display: none;
	}
	
/*	Form display*/
	
	.submission-details {
	  max-width: 700px;
	  margin: 20px auto;
	  background-color: #ffffff;
	  border: 1px solid #d0d5d9;
	  border-radius: 6px;
	  padding: 24px 32px;
	  font-family: Georgia, "Times New Roman", serif;
	  color: #2b2f33;
	  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	}

	.submission-details dt {
	  font-family: Arial, Helvetica, sans-serif;
	  font-size: 0.75em;
	  font-weight: 600;
	  text-transform: uppercase;
	  letter-spacing: 0.04em;
	  color: #6c757d;
	  margin-top: 18px;
	  padding-bottom: 2px;
	}

	.submission-details dt:first-child {
	  margin-top: 0;
	}

	.submission-details dd {
	  font-size: 1.05em;
	  margin: 0;
	  padding-bottom: 8px;
	  border-bottom: 1px solid #e9ecef;
	  min-height: 1.4em;
	}

	.submission-details dd:empty::after,
	.submission-details dd em {
	  color: #adb5bd;
	  font-style: italic;
	  font-family: Arial, Helvetica, sans-serif;
	  font-size: 0.95em;
	}

	.submission-details img {
	  display: block;
	  margin-top: 4px;
	}

	/* Optional section heading style, if you group fields under headers */
	.submission-details h3 {
	  font-family: Arial, Helvetica, sans-serif;
	  font-size: 0.95em;
	  font-weight: 700;
	  text-transform: uppercase;
	  letter-spacing: 0.05em;
	  color: #495057;
	  border-bottom: 2px solid #525d65;
	  padding-bottom: 6px;
	  margin: 28px 0 4px;
	}

	.submission-details h3:first-of-type {
	  margin-top: 0;
	}

	/* Two-column layout for shorter fields, applied via a wrapper class */
	.submission-details .two-col {
	  display: grid;
	  grid-template-columns: 1fr 1fr;
	  gap: 0 32px;
	}
	
	.submission-details .three-col {
	  display: grid;
	  grid-template-columns: 1fr 1fr 1fr;
	  gap: 0 24px;
	}

	/* ── Confirmation dialog (confirm_controller.js) ── */
	.confirm-dialog {
	  width: min(420px, calc(100vw - 32px));
	  padding: 24px;
	  border: none;
	  border-radius: 8px;
	  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	  font-family: Arial, Helvetica, sans-serif;
	  color: #212529;
	}

	.confirm-dialog::backdrop {
	  background: rgba(13, 42, 92, 0.45);
	}

	.confirm-dialog-title {
	  margin: 0;
	  font-size: 1.15em;
	  font-weight: 700;
	  color: #0d2a5c;
	}

	.confirm-dialog-message {
	  margin: 10px 0 0;
	  font-size: 0.95em;
	  line-height: 1.6;
	  color: #495057;
	}

	.confirm-dialog-actions {
	  display: flex;
	  justify-content: flex-end;
	  gap: 10px;
	  margin-top: 24px;
	}

	.confirm-dialog-actions button {
	  padding: 9px 20px;
	  font-size: 0.95em;
	  font-weight: 500;
	  font-family: inherit;
	  border: none;
	  border-radius: 4px;
	  cursor: pointer;
	  transition: background-color 0.15s;
	}

	.confirm-dialog-cancel {
	  background: #e9ecef;
	  color: #343a40;
	}

	.confirm-dialog-cancel:hover { background: #dee2e6; }

	.confirm-dialog-confirm { color: #ffffff; }

	.confirm-dialog-primary { background: #0d2a5c; }
	.confirm-dialog-primary:hover { background: #163d7e; }

	.confirm-dialog-success { background: #1e7e34; }
	.confirm-dialog-success:hover { background: #19692c; }

	.confirm-dialog-danger { background: #b02a37; }
	.confirm-dialog-danger:hover { background: #8f222d; }

/* Calendar month grid (CalendarItemsController#index). */
.calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0;
}
.calendar-current-month {
	font-weight: 600;
	font-size: 1.1em;
}
/* Groups Previous month with New Calendar Item / Today so they sit together
   on the left of the header, distinct from the month label and Next link. */
.calendar-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.calendar-grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.calendar-grid th {
	background-color: rgba(154, 175, 190, 0.4);
	color: #525d65;
	padding: 6px 0;
}
.calendar-day {
	vertical-align: top;
	border: 1px solid #e0e0e0;
	padding: 4px;
	height: 90px;
	overflow: hidden;
}
.calendar-day.other-month {
	background-color: #f7f7f7;
	color: #aaa;
}
.calendar-day.today {
	background-color: #eef6ff;
}
.calendar-day.today .calendar-day-number {
	font-weight: 700;
	color: #0d2a5c;
}
.calendar-day-number {
	font-size: 0.85em;
}
.calendar-day-items {
	list-style: none;
	margin: 4px 0 0 0;
	padding: 0;
	font-size: 0.8em;
}
.calendar-day-items li {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.calendar-day-more {
	color: #888;
	font-style: italic;
}
.calendar-item-all-day a {
	background-color: rgba(13, 42, 92, 0.12);
	border-radius: 3px;
	padding: 0 3px;
	display: inline-block;
}

@media (max-width: 600px) {
	.calendar-day { height: 60px; padding: 2px; }
	.calendar-day-items { font-size: 0.7em; }
}

/* ── Login card ── */
/* .content-inner is absolutely positioned with a definite height (top/bottom
   set), so this can fill it and flex-center the card vertically. */
.login-page {
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

/* Sits in the normal page flow, under the site header/footer, not a modal. */
.login-card {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	background-color: #2a2a2a;
	border-radius: 24px;
	padding: 24px;
	font-family: -apple-system, "SF Pro Text", Roboto, arial, sans-serif;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.login-title {
	text-align: center;
	font-size: 22px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 8px;
}

.login-pill-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	border-radius: 24px;
	background-color: #3a3a3a;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid #4a4a4a;
	transition: background-color 0.2s;
}

.login-pill-button:hover {
	background-color: #454545;
}

.login-pill-button__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* The email login toggle: a button styled like the other pill buttons,
   animating .login-form-wrap open/closed via max-height + opacity when the
   disclosure controller toggles the "open" class. */
.login-email > .login-pill-button {
	cursor: pointer;
	width: 100%;
}

.login-form-wrap {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.2s ease;
}

.login-form-wrap.open {
	max-height: 320px;
	opacity: 1;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.login-pill-input {
	height: 48px;
	border-radius: 24px;
	background-color: #000;
	border: 1px solid #4a4a4a;
	color: #fff;
	padding: 0 20px;
	font-size: 15px;
}

.login-pill-input::placeholder {
	color: #8a8a8a;
}

.login-pill-input:focus {
	border-color: #4285f4;
}

.login-form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: #b8b8b8;
	padding: 0 4px;
}

.login-remember,
.login-remember label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #b8b8b8;
	margin-bottom: 0;
}

.login-forgot {
	color: #b8b8b8;
}

.login-submit {
	height: 48px;
	border-radius: 24px;
	background-color: #fff;
	color: #131313;
	font-size: 15px;
	font-weight: 600;
	border: none;
	margin-top: 4px;
}

.login-submit:hover {
	background-color: #e8e8e8;
}

.login-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.login-submit:disabled:hover {
	background-color: #fff;
}