.nav-tabs {
  border-bottom: 1px solid #e7e7e7;
  margin: 0 0 0 0;
  padding: 0 0 0 0 !important;
  display: flex;
  width: 100%;
  margin-top: 20px;
}

.nav-tabs li {
  padding: 10px 20px;
  list-style: none;
  border: 1px solid #e7e7e7;
  cursor: pointer;
  border-bottom: none !important;
  font-weight: bold;
}

.nav-tabs li.active {
  background-color: #e0e0e0;
}

.nav-tabs li:hover {
  background-color: #bcbcbc;
}

.tab-content {
  border: 1px solid #e7e7e7;
  border-radius: 0 0 5px 5px;
  margin: 0 0 0 0;
}

.tab-content .tab-pane {
  display: none;
}

.tab-content .active {
  display: block;
}

.tabs-header,
.result-row {
  display: flex;
  padding: 0 20px;
}

.tabs-header p {
  padding: 10px 0;
  font-weight: bold;
}

.tabs-header {
  background-color: #e7e7e7;
}

.result-row {
  border-bottom: 1px solid #e7e7e7;
  word-break: break-word;
}

.result-row:nth-child(even) {
  background-color: #f7f7f7;
}

.result-row:hover {
  background-color: #e7e7e7;
}

.input-wrapper input {
  padding: 10px !important;
  border: 1px solid #e7e7e7;
  border-radius: 5px;
}

.input-container {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}


.form-group h1 {
  font-size: clamp(36px, 4vw, 52px);
  margin: 0 0 8px;
  padding: 0 24px;
  border-bottom: 0;
  color: #2c3457;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.form-title-location {
  display: inline-flex;
  align-items: center;
  font-size: clamp(16px, 2.2vw, 22px);
  color: #4b567b;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #cfd8e5;
  background: #ffffff;
  transform: translateY(-7px);
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid #d2dbe7;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  background: #ffffff;
  color: #253051;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #4a5173;
  box-shadow: 0 0 0 2px rgba(74, 81, 115, 0.14);
  outline: none;
}

.form-group select {
  cursor: pointer;
}

.input-wrapper {
  display: flex;
  align-items: center;
}

input[type="file"] {
  border: none;
}

.form-group input[type="file"] {
  direction: ltr;
  text-align: left;
  width: 100%;
  border: 1px dashed #b9c4d6;
  border-radius: 12px;
  background: #f7f9fd;
  color: #2f3653;
  padding: 8px;
}

.form-group input[type="file"]::file-selector-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #4a5173, #353b59);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  margin-right: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 8px 16px -16px rgba(34, 37, 57, 0.9);
}

.form-group input[type="file"]::-webkit-file-upload-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #4a5173, #353b59);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  margin-right: 12px;
  font-weight: 700;
  cursor: pointer;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.form-group .field-group {
  padding: 18px 24px;
  font-size: 18px; 
  border-top: 1px solid #edf1f6;
}

.form-group .form-section-card {
  margin: 18px 24px 0;
  border: 1px solid #d6dde8;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 24px -24px rgba(18, 32, 54, 0.85);
}

.form-group .form-section-card .field-group {
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid #e7ecf3;
}

.form-group .form-section-card .field-group:first-child {
  border-top: 0;
}

.radio-pill-wrapper {
  display: flex;
  justify-content: end;
  margin-top: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid #c6cfdb;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.radio-pill {
  position: relative;
  cursor: pointer;
  border: 0;
  user-select: none;
  transition: all 0.2s ease-in-out;
  font-family: sans-serif;
  font-size: 15px;
  background-color: transparent;
  flex: 1 1 0;
  min-width: 74px;
}

.radio-pill-wrapper label:nth-of-type(1) {
  border-radius: 999px 0 0 999px;
}

.radio-pill-wrapper label:nth-of-type(2) {
  border-radius: 0 999px 999px 0;
}

.radio-pill input[type="radio"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.radio-pill input[type="radio"]:checked + span {
  color: #fff;
  box-shadow: 0 6px 14px -10px rgba(30, 47, 74, 0.8);
}

.radio-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 7px 14px;
  color: #3a4362;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.2s ease;
}

.radio-yes {
  border-radius: 999px 0 0 999px;
}

.radio-no {
  border-radius: 0 999px 999px 0;
}

.radio-pill input[type="radio"]:checked + .radio-yes {
  background: linear-gradient(145deg, #0d8a52, #086a3f);
}

.radio-pill input[type="radio"]:checked + .radio-no {
  background: linear-gradient(145deg, #b42318, #8f1c13);
}

.radio-pill input[type="radio"]:focus-visible + span {
  outline: 2px solid #4a5173;
  outline-offset: -2px;
}

.radio-pill input[type="radio"]:not(:checked) + span:hover {
  background: #e6ebf4;
}

.field-group .question {
  display: flex;
  align-items: center;
}

.form-group .buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  gap: 12px;
  padding: 18px 24px 22px;
}

.form-group .buttons input,
.form-group .buttons button {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  min-height: 42px;
  min-width: 170px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.form-group .buttons input:hover,
.form-group .buttons button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -16px rgba(34, 37, 57, 0.9);
  filter: saturate(1.06);
}

.form-group .buttons input:focus-visible,
.form-group .buttons button:focus-visible {
  outline: 2px solid #4a5173;
  outline-offset: 2px;
}

.form-group .form-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.form-group .form-action-submit {
  background: linear-gradient(145deg, #242c46, #171e34);
}

.form-group .form-action-save {
  background: linear-gradient(145deg, #5e6389, #4a5173);
}

.form-group .field-group.section-break {
  margin-top: 0;
  padding: 22px 24px !important;
  border-top: 0;
  border-bottom: 1px solid #dfe4ec;
  background: linear-gradient(180deg, #eef2f8 0%, #e8edf5 100%) !important;
}

.form-group .field-group.section-break .question {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  margin: 0;
  color: #30395d;
  font-family: 'Casanova Serif Display', serif;
}

img {
 width: 100%
}

.form-group .field-group.section-break .question div {
  border-left: 5px solid #5d658a;
  padding-left: 14px;
  line-height: 1.1;
}

.form-group .field-group.section-break .input-wrapper {
  display: none;
}

.form-group .field-group.section-break + .field-group {
  border-top: 0;
}

.report-title {
  font-size: 20px;
  text-align: center;
}

.section-title {
  font-size: 40px; 
  margin-bottom: 30px
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.report-table th,
.report-table td {
  border: 1px solid #e7e7e7;
  padding: 10px;
  text-align: left;
}

.report-table th {
  background-color: #f7f7f7;
  font-weight: bold;
}

.report-table tr:nth-child(even) {
  background-color: #f7f7f7;
}

.report-table tr:hover {
  background-color: #e7e7e7;
}

.report-table a,
.file-saved a {
  color: #5e6389;
  text-decoration: underline;
  cursor: pointer;
}

.report-table a div {
  text-align: center;
}

.reporting-wrapper {
  display: grid;
  gap: 18px;
}

.reporting-header {
  margin-bottom: 2px;
}

.reporting-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  color: #2c3457;
}

.reporting-subtitle {
  margin: 8px 0 0;
  color: #4d5677;
  max-width: 72ch;
}

.reporting-grid {
  --bs-gutter-x: 1.2rem;
  --bs-gutter-y: 0.6rem;
}

.reporting-card {
  border: 1px solid #d7deea;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 14px 28px -30px rgba(13, 35, 62, 0.95);
}

.reporting-section-title {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 14px;
  color: #2f3653;
}

.reporting-card .report-table {
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
}

.reporting-card .report-table th {
  background: #e9edf5;
  color: #344064;
  border-color: #d4dce8;
}

.reporting-card .report-table td {
  border-color: #dfe6f0;
}

.reporting-card .report-table tr:nth-child(even) td {
  background: #fafbfd;
}

.reporting-card .report-table tr:hover td {
  background: #eef3f9;
}

.reporting-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 84px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #4a5173, #343b5a);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.reporting-card .report-table a {
  text-decoration: none;
}

.reporting-card .report-table a:hover .reporting-action-button {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 8px 16px -16px rgba(34, 37, 57, 0.9);
}

.reporting-card .report-table a:focus-visible .reporting-action-button {
  outline: 2px solid #4a5173;
  outline-offset: 2px;
}

.reporting-item-wrapper {
  display: grid;
  gap: 18px;
}

.reporting-item-header {
  margin-bottom: 2px;
}

.reporting-item-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  color: #2c3457;
}

.reporting-item-subtitle {
  margin: 8px 0 0;
  color: #4d5677;
  max-width: 74ch;
}

.reporting-item-grid {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.reporting-item-col {
  display: flex;
}

.report-image {
  border-radius: 10px;
  box-shadow: 0 14px 28px -30px rgba(13, 35, 62, 0.95);
  transition: all 0.2s ease-in-out;
}

.report-image:hover {
  transform: scale(1.015);
}

.reporting-item-card {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 28px -30px rgba(13, 35, 62, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reporting-item-card:hover {
  transform: translateY(-2px);
  border-color: #c8d3e2;
  box-shadow: 0 20px 32px -28px rgba(13, 35, 62, 0.95);
}

.reporting-item-image-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f1;
  background: #f4f7fb;
}

.reporting-item-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.reporting-item-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #2f3653;
}

.reporting-item-card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #4a5173, #343b5a);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.reporting-item-card:focus-visible {
  outline: 2px solid #4a5173;
  outline-offset: 3px;
}

.reporting-item-empty {
  border: 1px solid #d7deea;
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 28px -30px rgba(13, 35, 62, 0.95);
}

.reporting-item-empty h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  color: #2f3653;
}

.reporting-item-empty p {
  margin: 0;
  color: #4d5677;
}

.file-saved {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #f7f9fd;
}

.file-saved > div {
  font-size: 14px;
  line-height: 1.45;
  color: #2f3653;
  word-break: break-word;
}

.file-saved .change-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #b7c5d8;
  background: #ffffff;
  color: #2f3653;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.file-saved .change-file:hover {
  transform: translateY(-1px);
  background: #edf2f9;
  border-color: #a6b8d0;
}

#saveForm {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: auto;
  min-width: 220px;
  z-index: 1200;
  border-radius: 12px;
}

.hero-image {
  filter: grayscale(100%) brightness(0.4) contrast(1.1) hue-rotate(280deg);
}

.hero-image-overlay {
  background: rgba(25, 29, 67, 0.3);
}

.large-subtitle .question div {
  font-size: 20px;
  color: #5e6389;
}

.field-group.clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
  background-color: #fff;
}

.field-group.clickable:hover {
  background-color: #f0f0ff;
}

.checkbox-subtitle {
  background-color: #fff !important;
}

.mission-banner {
  width: 100%;
}

.mission-banner .banner-img {
  max-height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 20px;
  aspect-ratio: 1/1;
}

.mission-banner .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.policy-list h5 {
  font-size: 28px;
  padding: 7px 0;
}

.location-entry {
  cursor: pointer;
}

.location-entry:hover {
  color: #616590;
}

.member-select {
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  background-color: #5d658a;
  color: white;
}

.member-menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.member-menu > a {
  background: #f5f7fb;
  color: #2f3653;
  border-radius: 10px;
  min-height: 40px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe2eb;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.member-menu > a.selected {
  background: #ffffff;
  color: #1f2747;
  border-color: #bcc7d6;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #bcc7d6;
}

.member-menu > a:hover {
  background: #eef2f8;
  color: #1f2747;
  border-color: #c7d1df;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -16px rgba(34, 37, 57, 0.9);
}

.member-area {
  margin-bottom: 50px;
}

.member-area-topbar {
  border-radius: 16px;
  padding: 14px;
  background: #f8fafd;
  border: 1px solid #e0e7f0;
  box-shadow: 0 8px 24px -24px rgba(13, 35, 62, 0.9);
}

.member-content-panel {
  border: 1px solid #e6ebf1;
  border-radius: 18px;
  padding: 28px;
  background-color: #ffffff;
  box-shadow: 0 18px 36px -34px rgba(13, 35, 62, 0.9);
}

.payroll-title {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 8px;
  color: #2c3457;
}

.payroll-subtitle {
  margin: 0;
  color: #4e5677;
  max-width: 68ch;
}

.payroll-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.payroll-action-button {
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -14px rgba(24, 33, 59, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.payroll-action-button:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 14px 24px -16px rgba(24, 33, 59, 0.85);
  filter: saturate(1.06);
}

.payroll-action-button-primary {
  background: linear-gradient(145deg, #0c7b4a, #08603a);
}

.payroll-action-button-secondary {
  background: linear-gradient(145deg, #bc2347, #981b3a);
}

.payroll-action-button:focus-visible {
  outline: 2px solid #4a5173;
  outline-offset: 2px;
}

.member-action-button {
  background: linear-gradient(145deg, #4a5173, #353b59);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.member-action-button:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 8px 16px -16px rgba(34, 37, 57, 0.9);
}

.member-action-button.member-action-button-inverse {
  background: #ffffff;
  color: #2f3653;
  border: 1px solid #c7d1df;
}

.member-action-button.member-action-button-inverse:hover {
  color: #1f2747;
  background: #f6f8fc;
  border-color: #b8c4d4;
}

.member-action-button:focus-visible,
.member-menu > a:focus-visible,
.member-resource-link:focus-visible,
.member-resource-card:focus-visible,
.member-resource-contact:focus-visible {
  outline: 2px solid #4a5173;
  outline-offset: 2px;
}

.member-logged-out-panel {
  border: 1px solid #e6ebf1;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(111, 181, 181, 0.13), transparent 50%),
    #ffffff;
  box-shadow: 0 18px 40px -34px rgba(13, 35, 62, 0.9);
}

.member-resources-back-link {
  margin-bottom: 16px;
  text-decoration: none;
}

.member-resources-title {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.06;
  margin-bottom: 12px;
}

.member-resources-copy {
  max-width: 78ch;
  color: #3f4661;
}

.member-resource-contact {
  color: #215fbe;
  text-decoration: underline;
}

.member-resource-list {
  list-style: disc;
  margin-left: 40px;
  padding-left: 0;
}

.member-resource-list > div {
  margin-left: -40px;
}

.member-resource-section-title {
  color: #2b3458;
}

.member-resource-item {
  padding: 6px 0;
}

.member-resource-link {
  color: #2f57bf;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.member-resource-link:hover {
  color: #243e8a;
}

.member-resource-text {
  margin-top: 6px;
  color: #1f263d;
}

.member-resource-card-col {
  display: flex;
}

.member-resource-grid {
  --bs-gutter-x: 0.65rem;
  --bs-gutter-y: 0.4rem;
}

.member-resource-card {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid #e7ecf3;
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 28px -30px rgba(13, 35, 62, 0.95);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.member-resource-card:hover {
  transform: translateY(-3px);
  border-color: #d4e0ec;
  box-shadow: 0 22px 36px -30px rgba(13, 35, 62, 0.95);
}

.member-resource-card-title {
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #2b3458;
}

.member-resource-card-image {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eef2f7;
}

.dashboard-shell {
  display: grid;
  gap: 22px;
}

.dashboard-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  color: #2f3653;
  line-height: 1.1;
}

.dashboard-subtitle {
  margin: 10px 0 0;
  color: #566082;
  max-width: 72ch;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.dashboard-stat-card {
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #f7f9fc;
  padding: 14px 16px;
}

.dashboard-stat-label {
  margin: 0;
  color: #66708f;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.dashboard-stat-value {
  margin: 6px 0 0;
  color: #2f3653;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.dashboard-panel {
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 28px -26px rgba(20, 35, 60, 0.9);
}

.dashboard-panel-header {
  margin-bottom: 14px;
}

.dashboard-panel-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  color: #2f3653;
}

.dashboard-panel-subtitle {
  margin: 6px 0 0;
  color: #596383;
}

.qr-code-container {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.dashboard-inline-label {
  font-weight: 700;
  color: #374064;
}

.dashboard-location-select {
  min-height: 42px;
  min-width: min(100%, 550px);
  max-width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  background: #fff;
  color: #253051;
}

.dashboard-download-button {
  min-height: 42px;
  border: 1px solid #c0d8d8;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #4f9d9d, #3f8383);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 22px -18px rgba(25, 57, 70, 0.95);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-download-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 16px 26px -19px rgba(25, 57, 70, 0.95);
}

.dashboard-download-button:focus-visible {
  outline: 2px solid #3f8383;
  outline-offset: 2px;
}

@media screen and (max-width: 900px) {
  .qr-code-container {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .dashboard-download-button,
  .dashboard-location-select {
    width: 100%;
  }
}

.qr-code {
  display: flex;
  justify-content: center;
}

.qr-code img {
  width: 500px;
}

.applications-table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: separate;
  border-spacing: 0;
}

.applications-table th {
  text-align: start;
  font-weight: bold;
  color: #334066;
  background: #eff3f8;
}

.applications-table th, .applications-table td {
  padding: 10px;
  border: 1px solid #e3e9f1;
}

.dashboard-shell .applications-table tr:nth-child(even) td {
  background: #fafbfd;
}

.dashboard-shell .applications-table tr:hover td {
  background: #f4f7fc;
}

.dashboard-shell .applications-table td a {
  border-radius: 8px;
  padding: 6px 10px;
  text-decoration: none;
  font-weight: 700;
}

.dashboard-shell .dashboard-action-cell {
  min-width: 130px;
}

.dashboard-shell .dashboard-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-shell .dashboard-action-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 10px 20px -16px rgba(27, 47, 80, 0.95);
}

.dashboard-shell .dashboard-action-btn:focus-visible {
  outline: 2px solid #4a5173;
  outline-offset: 2px;
}

.dashboard-shell .dashboard-action-btn-primary {
  background: linear-gradient(145deg, #0d8a52, #096a3f);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.dashboard-shell .dashboard-action-btn-secondary {
  background: linear-gradient(145deg, #4a5173, #363d5b);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.dashboard-shell .dashboard-action-status-submitted {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  border-color: rgba(255, 255, 255, 0.22);
}

.dashboard-shell .dashboard-action-status-approved {
  background: linear-gradient(145deg, #0d8a52, #096a3f);
  border-color: rgba(255, 255, 255, 0.2);
}

.dashboard-shell .dashboard-action-status-cleared {
  background: linear-gradient(145deg, #0f766e, #0f5f59);
  border-color: rgba(255, 255, 255, 0.2);
}

.dashboard-shell .dashboard-action-status-training {
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  border-color: rgba(255, 255, 255, 0.2);
}

.dashboard-shell .dashboard-action-status-rejected,
.dashboard-shell .dashboard-action-status-declined {
  background: linear-gradient(145deg, #b42318, #8f1c13);
  border-color: rgba(255, 255, 255, 0.18);
}

.dashboard-shell .dashboard-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dashboard-shell .dashboard-status-submitted {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.dashboard-shell .dashboard-status-approved {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.dashboard-shell .dashboard-status-waiting {
  background: #e0f2fe;
  color: #0c4a6e;
  border-color: #7dd3fc;
}

.dashboard-shell .dashboard-status-complete {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.dashboard-shell .dashboard-status-cleared {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.dashboard-shell .dashboard-status-training {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.dashboard-shell .dashboard-status-rejected,
.dashboard-shell .dashboard-status-declined {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.dashboard-shell .dashboard-status-in-progress {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fdba74;
}

@media screen and (max-width: 768px) {
  .container,
  .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .dashboard-panel {
    padding: 14px;
  }

  .dashboard-shell .applications-table {
    font-size: 14px;
  }

  .dashboard-shell .applications-table th,
  .dashboard-shell .applications-table td {
    padding: 8px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-group h1 {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.1;
  }

  .form-group .field-group {
    padding: 14px;
  }

  .form-group .form-section-card {
    margin: 14px 12px 0;
    border-radius: 12px;
  }

  .form-group .form-section-card .field-group {
    padding: 14px;
  }

  .form-group .field-group .question,
  .form-group .field-group .input-wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .form-group .field-group .question {
    margin-bottom: 10px;
    align-items: flex-start;
  }

  .form-group .field-group .question div {
    width: 100%;
    font-size: 16px;
    line-height: 1.4;
  }

  .form-group .input-wrapper {
    justify-content: flex-start;
  }

  .radio-pill-wrapper {
    justify-content: flex-start;
  }

  .radio-pill span {
    padding: 8px 14px;
  }

  .form-group .buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .form-group .buttons input,
  .form-group .buttons button,
  .form-group .buttons a {
    width: 100%;
    text-align: center;
  }

  #saveForm {
    width: auto !important;
    min-width: 180px;
    right: 14px;
    bottom: 14px;
  }

  .input-container {
    flex-direction: column;
    gap: 10px;
  }

  .nav-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav-tabs li {
    flex: 0 0 auto;
  }

  .report-table,
  .applications-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.side-menu {
  border-radius: 5px;
}

.side-menu .menu-item {
  padding: 10px;
}

.side-menu .menu-item:not(:last-child) {
  border-bottom: 1px solid black;
}

.side-menu .menu-item.active {
  background-color:#4a4f73;
}

.nav-button {
  background-color: #4a4f73;
  padding: 10px 20px;
  color: #fff;
  border-radius: 5px;
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: pointer;
}

.training-content-column .training-nav-button {
  display: block;
  margin: 24px 0 0 auto;
}

.view-button {
  border: 0;
  text-align: center;
  padding: 10px 30px;
  font-weight: 700;
  border-radius: 5px;
  background-color: #1A8651;
  color: #fff;
  margin: 10px;
}

.view-button:hover,
.nav-button:hover {
  opacity: 0.8;
}

#fileBtn {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
}

#fileBtn:hover {
  background: #f5f5f5;
}

@media screen and (min-width: 768px) {
  .mobile-nav {
    display: none;
  }

  .site-nav {
    justify-content: space-evenly !important;
  }


  footer {
    width: 70%
  }

  .footer-buttons {
    flex-direction: column;
    gap: 20px;
  }
}

.mobile-nav {
  font-size: 80px;
  padding-right: 50px;
  font-family: 'Casanova Serif Display';
}

.nav-menu {
  position: absolute;
  top: 120px;
  right: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

.nav-menu li {
  background-color: #fff;
  color: #000;
  padding: 10px;
}

.footer-buttons {
  display: flex;
  justify-content: space-between;
  margin: 50px 0px;
}

@media screen and (max-width: 768px) {
  .site-nav {
    justify-content: space-between !important;
  }

  nav {
    padding: 0 !important;
  }

  footer {
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .member-menu {
    flex-direction: column;
    width: 100%;
  }

  .member-menu > a {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .member-area-topbar {
    padding: 12px;
  }

  .member-content-panel {
    padding: 18px;
  }

  .payroll-panel {
    padding: 16px;
  }

  .payroll-actions {
    gap: 10px;
  }

  .payroll-action-button {
    width: 100%;
  }

  .member-resource-card-col {
    margin-bottom: 6px;
  }
}

@media screen and (max-width: 992px) {
  .member-resource-grid .col-3 {
    width: 50%;
  }
}

@media screen and (max-width: 576px) {
  .member-resource-grid .col-3 {
    width: 100%;
  }
}

.underline-link:hover {
  text-decoration: underline;
}