.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6b7280;
}

@media print {
  .header-container {
    display: none;
  }
}

.header-logo {
  display: block;
}

.header-logo img {
  height: 50px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #10b981;
  border-bottom-color: #10b981;
}

.nav-link.active {
  border-bottom-color: #059669;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-name {
  margin-right: 0.5rem;
}

.logout-btn {
  padding: 0.5rem 2rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-weight: 600;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: #374151;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 4px;
}

.hamburger span:nth-child(2) {
  top: 11px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 60;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-content {
  padding: 1rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
  background-color: #f3f4f6;
  color: #10b981;
}

.mobile-nav-link.active {
  background-color: #d1fae5;
  color: #059669;
}

.mobile-user-section {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.mobile-user-info {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.mobile-logout-btn {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-weight: 600;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-logout-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

@media (max-width: 767px) {
  .header-container {
    position: relative;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
  }

  .mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
  }
}

.logout-banner {
  position: fixed;
  bottom: 1.25rem;
  transform: translateY(6rem);
  opacity: 0;
  background-color: #6b7280;
  color: #f9fafb;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.logout-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.jump-footer {
  display: grid;
  grid-template-columns: max-content min-content 1fr;
  border: 3px solid var(--border-dark);
  border-top: none;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.jump-footer-cell {
  padding: 0.25rem;
}

.jump-footer-instructor-cell {
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.jump-footer-instructor-label {
  margin-right: 0.5rem;
}

.jump-footer-instructor-select {
  border: none;
  flex-grow: 1;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.jump-footer-improvement-title {
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  text-align: center;
  grid-row: span 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jump-footer-improvement-cell {
  border: 1px solid var(--border-color);
  padding: 0.25rem;
}

.jump-footer-sign-cell {
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
}

.jump-footer-sign-content {
  display: grid;
  grid-template-columns: min-content min-content 1fr;
}

.jump-footer-sign-label,
.jump-footer-sign-license {
  white-space: nowrap;
}

.jump-footer-signature-container {
  display: flex;
  justify-content: center;
}

.jump-footer-signature {
  display: none;
  max-height: 3rem;
}

.jump-footer-status-cell {
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
}

.jump-footer-status-container {
  display: flex;
  justify-content: space-between;
}

.jump-footer-status-item {
  align-self: center;
}

.jump-footer-status-label {
  margin-right: 0.5rem;
  display: flex;
}

.jump-footer-status-text {
  margin-right: 0.5rem;
  align-self: center;
}

.jump-footer-quiz-label {
  display: flex;
  cursor: pointer;
  align-items: center;
}

.jump-footer-quiz-text {
  margin-right: 0.5rem;
}

@media print {
  --border-color: #333;

  .jump-footer-signature {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .jump-footer {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    gap: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
  }

  /* Reorder elements for mobile */
  .jump-footer-instructor-cell {
    order: 1;
    grid-column: 1;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0;
  }

  .jump-footer-sign-cell {
    order: 2;
    grid-column: 1;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0;
  }

  .jump-footer-improvement-title {
    order: 3;
    grid-column: 1;
    grid-row: auto;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    background-color: #f3f4f6;
    border-radius: 0;
  }

  .jump-footer-improvement-cell {
    grid-column: 1;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 0;
  }

  .jump-footer-improvement-cell:nth-of-type(3) {
    order: 4;
  }

  .jump-footer-improvement-cell:nth-of-type(5) {
    order: 5;
  }

  .jump-footer-improvement-cell:nth-of-type(7) {
    order: 6;
  }

  .jump-footer-status-cell {
    order: 7;
    grid-column: 1;
    border: none;
    padding: 1rem;
    border-radius: 0;
  }

  .jump-footer-instructor-label {
    width: auto;
    margin-right: 1rem;
  }

  .jump-footer-instructor-select {
    flex-grow: 1;
  }

  .jump-footer-status-container {
    flex-direction: row;
    gap: 1rem;
    justify-content: space-around;
  }

  .jump-footer-status-item {
    flex: 1;
  }

  .jump-footer-status-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    width: 100%;
    margin-right: 0;
  }

  .jump-footer-quiz-label {
    justify-content: flex-end;
  }

  .jump-footer-status-text {
    margin-right: 0.5rem;
  }
}
.check, .status-passed, .status-repeat, .status-solo {
  border-radius: 7px;
  width: 34px;
  height: 30px;
  background-color: #f3f4f6;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.status-passed, .status-repeat, .status-solo {
  width: 34px;
}

.radio-label {
  display: flex;
  gap: 0.5rem;
  position: relative;
  cursor: pointer;
}

.radio-label input[type='radio'],
.radio-label input[type='checkbox'] {
  position: absolute;
  top: 0;
  left: 1rem;
}

input[type='radio'], input[type='checkbox'] {
  opacity: 0;
  width: 1px;
}

input[type='radio']:checked + .check + span {
  font-weight: bold;
}

.check::before, .status-passed::before, .status-solo::before {
  --border-color: gray;

  width: 12px;
  height: 22px;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  border-right: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  transform: rotate(40deg);
  opacity: 0;
  transition: opacity ease-in-out 250ms;
  content: '';
  display: block;
}

input[value='false'] + .check::before,
input[type='radio'] + .status-solo::before {
  --border-color: #f69e00;
}

input[value='true'] + .check::before,
input[type='radio'] + .status-passed::before {
  --border-color: green;
}

input[type='checkbox']:checked + .check::before,
input[type='checkbox']:checked + .status-passed::before,
input[type='checkbox']:checked + .status-repeat::before,
input[type='radio']:checked + .check::before,
input[type='radio']:checked + .status-passed::before,
input[type='radio']:checked + .status-solo::before,
input[type='radio']:checked + .status-repeat::before {
  opacity: 1;
}

input[type='checkbox']:checked + .check,
input[value='true']:checked + .check,
input[type='radio']:checked + .status-passed {
  background-color: #b0f7b075;
}

input[value='false']:checked + .check,
input[type='radio']:checked + .status-solo {
  background-color: #fafa9f91;
}

.status-repeat {
  position: relative;
}

input[type='checkbox']:checked + .status-repeat::before,
input[type='checkbox']:checked + .status-repeat::after,
input[type='radio']:checked + .status-repeat::before,
input[type='radio']:checked + .status-repeat::after {
  position: absolute;
  left: 16px;
  top: 3px;
  content: '';
  height: 25px;
  width: 2px;
  background-color: #f80202;
}

.status-repeat::before {
  transform: rotate(45deg);
}

.status-repeat::after {
  transform: rotate(-45deg);
}

input[type='radio']:checked + .status-repeat {
  background-color: #fd010126;
}

.notes {
  width: 100%;
  resize: none;
  border: none;
  padding: 0;
}

.jump-header-name-category {
  display: grid;
  grid-template-columns: 120px 1fr;
  border: var(--thick-border);
  border-bottom: var(--default-border);
}

.jump-header-category {
  border: var(--default-border);
  color: white;
  padding: 0.25rem 0.75rem;
  text-align: center;
  font-weight: bold;
}

.jump-header-name {
  padding: 0.25rem 0.75rem;
  border: var(--default-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jump-header-info {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  border: var(--thick-border);
  border-top: none;
}

.tunnel-header-info {
  grid-template-columns: 120px repeat(6, 1fr);
}

.jump-header-labels,
.jump-header-inputs {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

.tunnel-header-inputs {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

.jump-header-cell {
  border: var(--default-border);
  padding: 0.25rem;
  text-align: center;
  font-weight: bold;
}

.jump-header-inputs .jump-header-cell {
  padding: 0.25rem 0.25rem;
}

@media print {
  .jump-header-category {
    color: var(--text-color);
    background-color: white !important;
  }
}

@media screen and (max-width: 767px) {
  .jump-header-container {
    margin-bottom: 2rem;
  }

  .jump-header-name-category {
    border: var(--default-border);
    border-radius: 0.25rem 0.25rem 0 0;
    overflow: hidden;
    margin-bottom: 0;
  }

  .jump-header-category {
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
    border: none;
    border-bottom: var(--default-border);
  }

  .jump-header-name {
    padding: 0.75rem 1rem;
    align-items: center;
    border: none;
    font-size: 1.125rem;
  }

  .jump-header-info {
    grid-template-columns: 1fr;
    border: var(--default-border);
    border-radius: 0 0 0.25rem 0.25rem;
    border-top: none;
    gap: 0.5rem;
    padding: 1rem;
  }

  .jump-header-labels,
  .jump-header-inputs,
  .tunnel-header-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .jump-header-cell {
    border: none;
    padding: 0.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .jump-header-labels .jump-header-cell {
    display: none;
  }

  .jump-header-cell {
    border-radius: 0.25rem;
    padding: 0.75rem;
    background-color: #f3f4f6;
  }

  .jump-header-cell input,
  .jump-header-cell textarea {
    border: 1px solid var(--border-color);
    background-color: white;
  }

  .jump-header-inputs .jump-header-cell::before,
  .tunnel-header-inputs .jump-header-cell::before {
    content: attr(data-label);
    font-weight: bold;
    font-size: 0.875rem;
    color: #6b7280;
  }

  .jump-header-inputs .jump-header-cell:nth-child(1)::before {
    content: "Jump No";
  }

  .jump-header-inputs .jump-header-cell:nth-child(2)::before {
    content: "Date";
  }

  .jump-header-inputs .jump-header-cell:nth-child(3)::before {
    content: "Place";
  }

  .jump-header-inputs .jump-header-cell:nth-child(4)::before {
    content: "Equipment";
  }

  .jump-header-inputs .jump-header-cell:nth-child(5)::before {
    content: "Aircraft";
  }

  .jump-header-inputs .jump-header-cell:nth-child(6)::before {
    content: "Altitude";
  }

  .jump-header-inputs .jump-header-cell:nth-child(7)::before {
    content: "Delay";
  }

  .jump-header-inputs .jump-header-cell:nth-child(8)::before {
    content: "Total freefall";
  }

  .tunnel-header-inputs .jump-header-cell:nth-child(1)::before {
    content: "Time Mins.";
  }

  .tunnel-header-inputs .jump-header-cell:nth-child(2)::before {
    content: "Date";
  }

  .tunnel-header-inputs .jump-header-cell:nth-child(3)::before {
    content: "Place";
  }

  .tunnel-header-inputs .jump-header-cell:nth-child(4)::before {
    content: "Equipment";
  }

  .tunnel-header-inputs .jump-header-cell:nth-child(5)::before {
    content: "Speed %";
  }

  .tunnel-header-inputs .jump-header-cell:nth-child(6)::before {
    content: "Entries";
  }

  .tunnel-header-inputs .jump-header-cell:nth-child(7)::before {
    content: "Rotation";
  }

  .jump-header-inputs input,
  .tunnel-header-inputs input {
    width: 100% !important;
    font-size: 1rem;
  }
}

.ground-training-header {
  display: grid;
  border: var(--thick-border);
  border-top: none;
}

.ground-training-row {
  display: grid;
  grid-template-columns: 120px auto auto 1fr auto;
  border-bottom: 2px solid #e5e7eb;
}

.ground-training-info-row {
  grid-template-columns: 1fr 200px;
}

.ground-training-preparation {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 0.5rem;
  gap: 1rem;
}

.ground-training-cell {
  border-right: 2px solid #e5e7eb;
  padding: 0.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ground-training-cell:last-child {
  border-right: none;
}

.ground-training-label {
  font-weight: bold;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.ground-training-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ground-training-student-info {
  grid-column: 1 / 4;
}

@media screen and (max-width: 767px) {
  .ground-training-header {
    border: var(--default-border);
    border-radius: 0 0 0.25rem 0.25rem;
    border-top: none;
    padding: 1rem;
    gap: 1rem;
  }

  .ground-training-row {
    grid-template-columns: 1fr 1fr;
    border-bottom: none;
    gap: 1rem;
  }

  .ground-training-cell:last-child {
    border-right: var(--default-border);
  }

  .ground-training-info-row {
    grid-template-columns: 1fr;
  }

  .ground-training-preparation {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ground-training-date {
    grid-row: 2;
    grid-column: 2;
  }

  .ground-training-cell {
    border: var(--default-border);
    border-radius: 0.25rem;
    padding: 0.75rem;
    background-color: #f9fafb;
  }

  .ground-training-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
  }

  .ground-training-student-info {
    grid-column: 1;
  }

  .ground-training-type {
    grid-column: 1 / -1;
    width: auto;
  }

  .ground-training-preparation select {
    width: 100% !important;
    margin-top: 0.5rem;
  }
}
/* Layout component styles */

.layout-container {
  /* data-controller="sidebar-toggle" */
}

.layout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-right: 6rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
}

@media print {
  .layout-header {
    display: none;
  }
}

.layout-sidebar-toggle-btn {
  padding-left: 1rem;
  padding-right: 1rem;
  z-index: 50;
}

@media (min-width: 1280px) {
  .layout-sidebar-toggle-btn {
    display: none;
  }
}

.layout-sidebar-icon {
  height: 1.5rem;
  width: 1.5rem;
  color: #6b7280;
}

.layout-header-title {
  text-align: center;
  font-weight: bold;
  color: #475569;
  flex-grow: 1;
}

@media print {
  .layout-header-title {
    display: none;
  }
}

.layout-main-container {
  display: flex;
  position: relative;
  gap: 1rem;
}

.layout-overlay {
  position: fixed;
  inset: 0;
  background-color: transparent;
  z-index: 30;
  display: none;
}

@media (min-width: 1280px) {
  .layout-overlay {
    display: none !important;
  }
}

.layout-sidebar {
  position: fixed;
  visibility: hidden;
  left: 0;
  top: 166px;
  height: calc(100% - 166px);
  width: 18rem;
  flex-shrink: 0;
  background-color: white;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 300ms ease-in-out;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.layout-sidebar.visible {
  visibility: visible;
}

.layout-sidebar.open {
  visibility: visible;
  transform: translateX(0);
}

@media (min-width: 1280px) {
  .layout-sidebar {
    position: relative;
    visibility: visible;
    top: 0;
    height: auto;
    background-color: transparent;
    transform: translateX(0);
    box-shadow: none;
  }
}

@media print {
  .layout-sidebar {
    display: none;
  }
}

.layout-sidebar-content {
  height: 100%;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  background-color: #f9fafb;
}

@media (min-width: 1280px) {
  .layout-sidebar-content {
    border-radius: 0.375rem;
  }
}

.layout-main-content {
  flex-grow: 1;
  width: 100%;
}

/* JavaScript toggle states */
.layout-sidebar.open {
  transform: translateX(0);
}

.layout-overlay.visible {
  display: block;
}
.progression-card-checkbox {
    border-radius: 3px;
    width: 20px;
    height: 20px;
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    position: relative;
}

.small-checkbox {
    width: 15px;
    height: 15px;
}

.checked {
    --border-color: gray;

    width: 10px;
    height: 17px;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    transform: rotate(40deg);
    display: block;
    position: absolute;
    top: -1px;
    left: 5px;
}

.checked-small {
    width: 7px;
    height: 13px;
    left: 4px;
}

.check-pc {
    border-radius: 3px;
    width: 32px;
    height: 32px;
    background-color: #f3f4f6;
    cursor: pointer;
    display: flex;
    justify-content: center;
}

input[type='checkbox'].hidden-checkbox {
    opacity: 0;
    width: 1px;
}

input[type='checkbox']:checked + .check-pc::before {
    opacity: 1;
}

input[type='checkbox']:disabled + .check-pc {
    cursor: default;
}

.check-pc::before {
    --border-color: gray;

    width: 11px;
    height: 21px;
    margin-top: 1px;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    transform: rotate(40deg);
    opacity: 0;
    transition: opacity ease-in-out 250ms;
    content: '';
    display: block;
}
.questionnaire {
  display: grid;
  grid-template-columns: 120px max-content auto auto 1fr;
  border-left: var(--thick-border);
  border-right: var(--thick-border);
  width: 100%;
}

.questionnaire-section {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  border-bottom: var(--thick-border);
}

.questionnaire-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 2 / -1;
}

.questionnaire-cell {
  border: var(--default-border);
  padding: 0.25rem;
}

.questionnaire-label {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
}

.questionnaire-title {
  grid-column: 1;
  grid-row: 1 / span 100;
  font-weight: bold;
  text-align: center;
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

.questionnaire-input-cell {
  text-align: center;
}

.questionnaire-notes-cell {
}

.questionnaire-text-small {
  font-size: 0.875rem;
}

.questionnaire-freeform-cell {
  grid-column: 1 / -1;
}

.questionnaire-radio-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.questionnaire-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.questionnaire-radio-label .check {
  width: 1rem;
  height: 1rem;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  display: inline-block;
}

.pass-fail-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.finish-category {
  cursor: pointer;
}

.radio-label:has(input:checked) .pass-fail-icon {
  color: #555;
}

.pass-fail-radio:has(input[value="true"]:checked) .pass-fail-icon,
.pass-fail-radio:has(input[value="passed"]:checked) .pass-fail-icon,
.jump-footer-quiz-label:has(input:checked) .checkbox-icon,
.radio-label:has(input:checked) .checkbox-icon,
.finish-category:has(input:checked) .checkbox-icon {
  background-color: #b0f7b075;
  color: green;
}

.pass-fail-radio:has(input[value="false"]:checked) .pass-fail-icon,
.pass-fail-radio:has(input[value="solo"]:checked) .pass-fail-icon {
  background-color: #fafa9f81;
  color: #d68b00;
}

.pass-fail-radio:has(input[value="repeat"]:checked) .pass-fail-icon {
  background-color: #f8020225;
  color: #f80202;
}

.pass-fail-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.pass-fail-icon, .checkbox-icon {
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  color: #f1f1f1;
  height: 2rem;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pass-fail-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media print {
  .questionnaire-cell textarea:focus {
    outline: none;
    box-shadow: none;
    caret-color: transparent;
  }

  .pass-fail-radio {
    color: transparent;
    background-color: transparent;
  }

  .pass-fail-radio:has(input:checked) {
    background-color: transparent !important;
    color: #000 !important;
  }
}

@media screen and (max-width: 767px) {
  .pass-fail-radio {
    color: #ccc;
  }

  .questionnaire {
    grid-template-columns: minmax(0, 1fr) auto auto;
    border: none;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .questionnaire-section {
    border: var(--default-border);
    border-radius: 0.25rem;
    overflow: hidden;
    gap: 0.25rem;
  }

  .questionnaire-row {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }

  .questionnaire-row:not(:last-child) {
    border-bottom: var(--default-border);
  }

  .questionnaire-row:last-child {
    padding-bottom: 0.5rem;
  }

  .questionnaire-cell {
    border: none;
    font-size: 1.125rem;
  }

  .questionnaire-title {
    background-color: #f3f4f6;
    border-bottom: var(--default-border);
    justify-content: flex-start;
    font-size: 1.375rem;
    color: #333;
    flex-direction: row;
    padding: 0.5rem 1rem;
    grid-column: 1 / -1;
    grid-row: 1;

    button {
      margin-right: 0;
      background-color: white;
    }
  }

  .questionnaire-notes-cell {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0.25rem 1rem 0.5rem;
  }

  .questionnaire-input-cell:nth-child(3) {
    padding-right: 1rem;
  }

  .questionnaire-label {
    padding-left: 1rem;

    justify-content: flex-start;
  }
}

.ground-training-questionnaire {
  margin-bottom: 1.5rem;
}

.ground-training-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ground-training-column {
  display: flex;
  flex-direction: column;
}

.ground-training-column .questionnaire-section {
  grid-template-columns: 120px 1fr auto;
}

.ground-training-column-left {
  border-left: var(--thick-border);
  border-top: none;
  border-bottom: var(--thick-border);
}

.ground-training-column-right {
  border: var(--thick-border);
  border-top: none;
}

.ground-training-column .questionnaire-section {
  border-bottom: var(--thick-border);
}

.ground-training-column .questionnaire-section.ground-training-canopy-control {
  border-bottom: none;
}

.ground-training-column .questionnaire-section:last-of-type {
  border-bottom: none;
}

.ground-training-column .questionnaire-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.ground-training-instructor-footer {
  border-top: var(--thick-border);
  margin-top: auto;
  padding: 0.25rem 0.75rem;
}

.ground-training-instructor-label {
  margin-right: 0.5rem;
}

.ground-training-license {
  display: flex;
  padding: 0.5rem 0;
}

.ground-training-license-label {
  white-space: nowrap;
  margin-right: 0.25rem;
}

.ground-training-license-value {
  white-space: nowrap;
}

.ground-training-section-label {
  width: 100%;
}

.jump-notes {
  display: flex;
  margin-bottom: 1rem;
  border: var(--thick-border);
  width: 100%;
}

@media print {
  .jump-notes {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .ground-training-type,
  .ground-training-course-type {
    border: none;
    background: none;
    padding: 0;
  }

  .ground-training-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ground-training-column-left,
  .ground-training-column-right {
    border: none;
  }

  .ground-training-column .questionnaire-section,
  .ground-training-column .questionnaire-section.ground-training-canopy-control {
    border: var(--default-border);
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .ground-training-column .questionnaire-section:last-of-type {
    margin-bottom: 0;
  }

  .ground-training-instructor-footer {
    border: var(--default-border);
    border-radius: 0.25rem;
    margin-top: 1rem;
    padding: 1rem;
  }

  .jump-notes {
    border-radius: 0.25rem;
    border: var(--default-border);
  }
}
.student-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  align-items: baseline;
}

.student-title {
  font-weight: bold;
  text-align: center;
  color: #475569;
  flex-grow: 1;
  padding-right: 6rem;
}

.student-info-container {
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
}

.student-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.student-photo {
  width: 7rem;
  height: 10rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.student-photo-placeholder {
  width: 7rem;
  height: 10rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  margin: 0 auto;
  text-align: center;
  color: #6b7280;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.student-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.student-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.student-field-label {
  font-weight: normal;
  color: #374151;
}

.student-field-value {
  font-weight: bold;
  color: #111827;
}

.student-field-full {
  grid-column: span 2;
}

.student-logbook-btn {
  justify-self: end;
  align-self: center;
}

.student-edit-btn {
  grid-column-start: 2;
  justify-self: end;
  align-self: start;
}

@media (max-width: 480px) {
  .student-title {
    text-align: left;
    padding-right: 0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .student-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .student-photo,
  .student-photo-placeholder {
    width: 6rem;
    height: 8rem;
    margin: 0;
  }

  .student-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .student-field {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .student-field-label {
    font-weight: 500;
    min-width: fit-content;
  }

  .student-field-value {
    text-align: right;
    word-break: break-word;
  }

  .student-field-full {
    grid-column: span 1;
  }

  .student-logbook-btn {
    grid-row: 1;
  }

  .student-logbook-btn,
  .student-edit-btn {
    justify-self: stretch;
    grid-column: span 1;
    text-align: center;
  }

  .student-info-container {
    padding: 1rem;
  }

  .student-title {
    font-size: 1.25rem;
  }

  .student-photo,
  .student-photo-placeholder {
    width: 5rem;
    height: 7rem;
  }

  .student-field {
    /*flex-direction: column;*/
    /*align-items: flex-start;*/
    /*gap: 0.5rem;*/
  }

  .student-field-value {
    text-align: left;
  }

  .student-info-container {
    padding: 0.75rem;
  }
}
:root {
  --border-color: #bbb;
  --border-dark: #6b7280;
  --default-border: 1px solid var(--border-color);
  --thick-border: 3px solid var(--border-dark);
  --text-color: #333;
}

@media print {
  :root {
    --border-color: #555;
    --border-dark: #333;
  }
}
/*


*/

.print-page-footer {
    display: none;
}

#modal-root, #dropdowns-root {
    position: absolute;
    top: 0;
    left: 0;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 15mm;
    }

    html, body {
        font-size: 14px;
        height: 100%;
    }

    .print-table td,
    .print-table td span,
    .print-table td input,
    .print-table td input[type="checkbox"] {
        padding-top: 0;
        padding-bottom: 0;
    }

    .print-table,
    .print-table td,
    .print-table tr {
        border-width: 1px;
    }

    select {
        appearance: none !important;
        background: none !important;
    }

    .page-break {
        page-break-before: always;
    }

    .checked {
        top: -1px;
        left: 4px;
        height: 11px;
        width: 7px;
        border-right-color: #000;
        border-bottom-color: #000;
    }

    .progression-card-checkbox {
        border: 1px solid black;
        width: 16px;
        height: 16px;
    }

    .print-page-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 12px;
        margin-top: auto;
    }

    .print-page-footer table {
        width: calc(100% - 2px);
        margin: 0 auto;
        border-collapse: collapse;
    }

    .print-page-footer td {
        width: calc(100% / 3);
        border: solid 1px #777;
        color: #777;
        padding: 2px;
    }
}
