.rascals-student-card-wrap {
  position: relative;
  margin-bottom: 16px;
}

.rascals-student-card-wrap--pending-link {
  opacity: 0.75;
  pointer-events: none;
}
.rascals-student-card-wrap--pending-link
  .rascals-student-card-link--no-actions {
  cursor: default;
}

.rascals-student-card-view {
  position: relative;
  transition: opacity 0.2s ease;
}
.rascals-student-card-view.rascals-card-view--hidden {
  display: none;
}

.rascals-card-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
}
.rascals-card-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(50, 195, 228, 0.25);
  border-top-color: var(--e-global-color-secondary, #32c3e4);
  border-radius: 50%;
  animation: rascals-spin 0.7s linear infinite;
}
.rascals-card-loading-text {
  font-size: 15px;
  font-weight: 600;
  color: #0f2f38;
}
@keyframes rascals-spin {
  to {
    transform: rotate(360deg);
  }
}

.rascals-edit-form-slot {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.4s ease-out,
    opacity 0.3s ease-out;
}
.rascals-edit-form-slot.rascals-edit-form-slot--open {
  max-height: 1600px;
  opacity: 1;
}

.rascals-student-card--edit-form {
  margin-top: 0;
}
.rascals-student-card--edit-form:hover {
  transform: none;
}

.rascals-edit-form-success {
  padding: 16px;
  margin: 0;
  text-align: center;
  color: #155724;
  font-weight: 700;
}

/* Onboarding form: horizontal cards for submitted students */
.rascals-onboarding-submitted {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* Existing students list above add-student form (form stays visible) */
.rascals-existing-students {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.rascals-onboarding-submitted-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f0f7f9;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
}

.rascals-onboarding-submitted-card__name {
  font-weight: 700;
  color: #0f2f38;
}

.rascals-onboarding-submitted-card__birthdate {
  color: #5a6c74;
  font-size: 13px;
}

/* Add Student form: profile image Dropzone */
[name="Onboarding-form"] .rascals-student-profile-dropzone {
  border: 2px dashed #fff;
}

.rascals-student-profile-dropzone {
  min-height: 120px;
  border: 2px dashed rgba(50, 195, 228, 0.5);
  border-radius: 12px;
  width: 100%;
  background: rgba(50, 195, 228, 0.04);
  padding: 16px;
}

[name="Onboarding-form"] .rascals-student-profile-dropzone.dz-drag-hover,
[name="Onboarding-form"] .rascals-student-profile-dropzone:hover {
  border-color: #ffc959;
  background: rgba(50, 195, 228, 0.08);
}

.rascals-student-profile-dropzone.dz-drag-hover,
.rascals-student-profile-dropzone:hover {
  border-color: var(--e-global-color-secondary, #32c3e4);
  background: rgba(50, 195, 228, 0.08);
}

[name="Onboarding-form"] .rascals-student-profile-dropzone .dz-message {
  color: #fff;
}

.rascals-student-profile-dropzone .dz-message {
  margin: 24px 0;
  font-size: 14px;
  color: var(--e-global-color-secondary, #32c3e4);
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center;
  padding: 0 8px;
}
.rascals-student-profile-dropzone .dz-message .dz-button {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
  padding: 12px 16px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.rascals-student-profile-dropzone .dz-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rascals-student-profile-dropzone .dz-preview .dz-image {
  border-radius: 8px;
}
.rascals-student-profile-dropzone .dz-preview .dz-error-message {
  position: static;
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
  border-radius: 6px;
  text-align: center;
  word-break: break-word;
  opacity: 1;
}
.rascals-student-profile-dropzone .dz-preview.dz-error .dz-error-message {
  opacity: 1;
  visibility: visible;
}
.rascals-student-profile-dropzone .dz-preview .dz-remove {
  font-size: 13px;
  color: #b91c1c;
}

/* Caregivers form: horizontal cards for submitted primary/secondary */
.rascals-caregivers-submitted {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.rascals-caregivers-submitted-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f0f7f9;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
}

.rascals-caregivers-submitted-card__name {
  font-weight: 700;
  color: #0f2f38;
}

.rascals-caregivers-submitted-card__detail {
  color: #5a6c74;
  font-size: 13px;
}

.rascals-caregivers-edit-btn {
  background: #ffc95900;
  border: 1px solid #f0f7f9;
  color: #f0f7f9;
  border-radius: 10px;
}

.rascals-caregivers-edit-btn:hover,
.rascals-caregivers-edit-btn:focus {
  background: #ffc95900;
  color: #ffc959;
  border-color: #ffc959;
}

/* Emergency contacts form: same card style as caregivers */
.rascals-emergency-submitted {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* Already submitted state: hide form, show message + cards + dashboard hint */
.rascals-caregivers-already-submitted,
.rascals-emergency-already-submitted {
  margin-bottom: 24px;
}

.rascals-already-submitted-message {
  font-size: 16px;
  font-weight: 700;
  color: #0f2f38;
  margin: 0 0 12px;
}

.rascals-already-submitted-hint {
  font-size: 14px;
  color: #5a6c74;
  margin: 12px 0 0;
}

.rascals-caregivers-already-submitted .rascals-caregivers-submitted,
.rascals-emergency-already-submitted .rascals-emergency-submitted {
  margin-bottom: 0;
}

.rascals-edit-student,
.rascals-delete-student {
  position: absolute;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 47, 56, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.rascals-edit-student {
  right: 54px;
}

.rascals-edit-student:hover {
  background: rgba(50, 195, 228, 0.9);
}

.rascals-edit-student .rascals-edit-icon {
  pointer-events: none;
}

.rascals-delete-student {
  right: 12px;
}

.rascals-delete-student:hover {
  background: #b00020;
}

.rascals-delete-student .rascals-delete-icon {
  pointer-events: none;
}

.rascals-booking-students {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin: 16px 0 18px;
}

.rascals-booking-students__title {
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: #0f2f38;
  margin: 2px 0 12px;
}

.rascals-booking-students__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rascals-student-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: pointer;
  margin: 0;
}

.rascals-student-pick:hover {
  border-color: rgba(50, 195, 228, 0.4);
  box-shadow: 0 0 0 4px rgba(50, 195, 228, 0.1);
}

.rascals-student-pick span {
  font-size: 18px;
  font-weight: 700;
  color: #24343a;
}

.rascals-student-pick input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--e-global-color-secondary, #32c3e4);
  flex: 0 0 24px;
}

.rascals-booking-students__hint {
  margin-top: 10px;
  font-weight: 700;
  font-size: 15px;
  color: rgba(15, 47, 56, 0.7);
}

.rascals-booking-students .rascals-students-error {
  margin-top: 12px !important;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.25);
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #b00020;
  display: none;
}

/* ===============================
     RASCALS – Student Cards
     Brand: var(--e-global-color-secondary, #32c3e4) / Quicksand
     =============================== */

.rascals-students {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  font-family: "Quicksand", sans-serif;
}

/* Full-width card */
.rascals-student-card {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Top banner / photo area */
.rascals-student-photo-wrap {
  width: 100%;
  aspect-ratio: 16 / 6;
  background: linear-gradient(
    135deg,
    var(--e-global-color-secondary, #32c3e4) 0%,
    #6fd8f0 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.rascals-student-photo-wrap.is-empty {
  align-items: center;
  justify-content: center;
}

/* Profile image */
.rascals-student-photo {
  width: 96px;
  height: 96px !important;
  border-radius: 999px !important;
  object-fit: cover;
  background: #fff;
  border: 4px solid #ffffff !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

/* Placeholder if no photo */
.rascals-student-photo-placeholder {
  width: 96px;
  height: 96px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px dashed rgba(255, 255, 255, 0.8);
}

/* Body */
.rascals-student-body {
  padding: 18px 20px 20px;
}

/* Student name */
.rascals-student-name {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

/* Info rows */
.rascals-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.rascals-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Labels */
.rascals-label {
  font-weight: 700;
  color: var(--e-global-color-secondary, #32c3e4);
}

/* Values */
.rascals-value {
  color: #1f2937;
  line-height: 1.4;
}

/* Mobile tidy-up */
@media (max-width: 480px) {
  .rascals-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rascals-student-name {
    font-size: 22px;
    color: var(--e-global-color-secondary, #32c3e4);
  }
}

.rascals-student-card {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.rascals-student-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.rascals-student-card-link {
  display: block;
  padding: 5px 0;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}

.rascals-student-card-link:focus {
  outline: 3px solid rgba(50, 195, 228, 0.35);
  outline-offset: 4px;
  border-radius: 22px;
}

/* RASCALS Accordion – Quicksand + Elementor secondary */
.rascals-accordion {
  width: 100%;
  font-family: "Quicksand", sans-serif;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.rascals-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    var(--e-global-color-secondary, #32c3e4) 0%,
    #6fd8f0 100%
  );
  color: #05323a;
  font-weight: 800;
  font-size: 18px;
}

.rascals-acc-trigger:focus {
  outline: 3px solid rgba(50, 195, 228, 0.35);
  outline-offset: 2px;
}

.rascals-acc-chevron {
  font-size: 18px;
  transition: transform 0.18s ease;
}

.rascals-acc-trigger[aria-expanded="true"] .rascals-acc-chevron {
  transform: rotate(180deg);
}

.rascals-acc-panel {
  padding: 16px 18px 18px;
}

.rascals-acc-success {
  background: rgba(50, 195, 228, 0.18);
  border: 1px solid rgba(50, 195, 228, 0.35);
  color: #05323a;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.rascals-acc-hint {
  margin: 0;
  color: #374151;
}

/* Form */
.rascals-edit-form {
  display: grid;
  gap: 12px;
}

.rascals-field label {
  display: block;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.rascals-field input,
.rascals-field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.rascals-field input:focus,
.rascals-field textarea:focus {
  border-color: rgba(50, 195, 228, 0.9);
  box-shadow: 0 0 0 4px rgba(50, 195, 228, 0.18);
}

.rascals-edit-form .flatpickr-wrapper {
  width: 100%;
}
.rascals-edit-form .flatpickr-wrapper input[type="text"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 16px;
}
.rascals-edit-form .flatpickr-wrapper input[type="text"]:focus {
  border-color: rgba(50, 195, 228, 0.9);
  box-shadow: 0 0 0 4px rgba(50, 195, 228, 0.18);
}

.rascals-edit-form-section {
  font-weight: 800;
  color: #0f2f38;
  margin: 14px 0 6px;
  padding-bottom: 4px;
}

.rascals-edit-form-medication {
  margin-bottom: 12px;
}
.rascals-edit-form-medication-summary {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #5a6c74;
}
.rascals-edit-form-medication .rascals-edit-medications-btn {
  padding: 8px 16px;
  font-size: 0.95rem;
}

.rascals-field--checkbox {
  margin-bottom: 4px;
}

.rascals-field--checkbox .rascals-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
}

.rascals-field--checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--e-global-color-secondary, #32c3e4);
}

.rascals-edit-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.rascals-btn--secondary {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}
.rascals-btn--secondary:hover {
  background: rgba(0, 0, 0, 0.12);
}

.rascals-field--profile .rascals-edit-profile-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.rascals-field--profile .rascals-edit-profile-preview {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.rascals-field--profile .rascals-edit-profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rascals-field--profile .rascals-edit-profile-preview.is-empty {
  border: 2px dashed rgba(0, 0, 0, 0.15);
}
.rascals-field--profile .rascals-edit-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rascals-field--profile .rascals-edit-profile-input {
  font-size: 14px;
}
.rascals-edit-profile-wrap.has-photo .rascals-edit-profile-input {
  display: none;
}

.rascals-btn {
  appearance: none;
  border: 3px solid var(--e-global-color-secondary);
  /* border: 0; */
  border-radius: 12px;
  padding: 6px 18px;
  background: #FFC95900;
  color: var(--e-global-color-secondary);
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
}

.rascals-btn:hover,
.rascals-btn:focus{
  filter: brightness(0.95);
  color: var(--e-global-color-primary);
  border-color: var(--e-global-color-primary);
  background: #FFC95900!important;
}

#e-n-tab-content-2549001434 .elementor-widget-shortcode {
  min-width: 100% !important;
}

#edit-student > button {
  color: #fff;
}

.rascals-booking-students {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  font-family: "Quicksand", sans-serif;
  background: #fff;
}

.rascals-booking-students__title {
  font-weight: 800;
  margin-bottom: 10px;
  color: #05323a;
}

.rascals-booking-students__list {
  display: grid;
  gap: 10px;
}

.rascals-student-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.rascals-student-pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--e-global-color-secondary, #32c3e4);
}

.rascals-student-pick:hover {
  border-color: rgba(50, 195, 228, 0.65);
  box-shadow: 0 0 0 4px rgba(50, 195, 228, 0.12);
}

.rascals-booking-students__hint {
  margin-top: 10px;
  font-weight: 700;
  color: #05323a;
  opacity: 0.9;
}

/*
    .extra-resources.participant_section{
      display: none !important;
    }
    */
/* 
    hide random header button */
#header
  > div.elementor-element.elementor-element-6a122bf.elementor-mobile-align-justify.elementor-widget__width-initial.elementor-widget-mobile__width-inherit.hide-when-logged-in.elementor-widget.elementor-widget-button {
  display: none;
}

/* 
    Login / logout students UI */
.rascals-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 900px) {
  .rascals-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.rascals-tile {
  text-align: left;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: #fff;
}
.rascals-tile .t-name {
  font-size: 18px;
  font-weight: 800;
}
.rascals-tile .t-time {
  margin-top: 6px;
  opacity: 0.8;
}
.rascals-tile .t-status {
  margin-top: 8px;
  font-weight: 700;
}
.rascals-tile .t-hint {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.65;
}

.rascals-tile.none {
  border-color: rgba(0, 0, 0, 0.12);
}
.rascals-tile.in {
  border-color: rgba(10, 107, 43, 0.55);
}
.rascals-tile.out {
  border-color: rgba(0, 0, 0, 0.18);
  opacity: 0.85;
}

.rascals-tile.selected {
  outline: 4px solid rgba(7, 67, 179, 0.25);
  transform: scale(0.99);
}

.rascals-tiles-go {
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
}

/* Student card modal */
.rascals-student-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s,
    opacity 0.2s;
}
.rascals-student-modal[hidden] {
  display: flex !important;
}
.rascals-student-modal.rascals-student-modal--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.rascals-student-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.rascals-student-modal__content {
  position: relative;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  padding: 20px 24px 20px 20px;
  scrollbar-gutter: stable;
}

/* Modern scrollbar – keeps corner rounded and scrollbar inset */
.rascals-student-modal__content::-webkit-scrollbar {
  width: 8px;
}
.rascals-student-modal__content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.01);
  border-radius: 8px;
  margin: 8px 0;
}
.rascals-student-modal__content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
.rascals-student-modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}
.rascals-student-modal__content::-webkit-scrollbar-thumb:active {
  background: rgba(0, 0, 0, 0.2);
}
/* Firefox */
.rascals-student-modal__content {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.03);
}

.rascals-student-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 47, 56, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.rascals-student-modal__close:hover {
  background: rgba(50, 195, 228, 0.9);
}
.rascals-student-modal__close .rascals-modal-close-icon {
  pointer-events: none;
}
.rascals-student-modal__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}
.rascals-student-modal__body .rascals-student-card {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.rascals-student-modal__body .rascals-student-card-wrap {
  display: block;
}
.rascals-student-modal__body .rascals-student-photo-wrap {
  margin: 0 auto;
}
.rascals-student-modal__body .rascals-student-body {
  padding-top: 12px;
}
.rascals-student-modal__body .rascals-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}
.rascals-student-modal__body .rascals-row:first-of-type {
  margin-top: 0;
}
.rascals-student-modal__body .rascals-label {
  font-weight: 600;
}
.rascals-student-modal__body .rascals-value {
  margin-left: 8px;
}
.rascals-student-modal__body .rascals-student-modal-section {
  margin: 16px 0 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.rascals-student-modal__body .rascals-row--acceptance {
  margin-top: 6px;
}
.rascals-student-modal__body .rascals-row--acceptance .rascals-label {
  font-weight: 500;
}

/* Modal: medication accordion */
.rascals-modal-medication-accordion {
  margin: 0 0 16px;
}
.rascals-modal-medication-accordion__item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.rascals-modal-medication-accordion__item:last-child {
  margin-bottom: 0;
}
.rascals-modal-medication-accordion__summary {
  padding: 12px 14px;
  background: #f5f9fa;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
}
.rascals-modal-medication-accordion__summary::-webkit-details-marker {
  display: none;
}
.rascals-modal-medication-accordion__summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 10px;
  border-left: 6px solid var(--e-global-color-secondary, #32c3e4);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 0.2s ease;
}
.rascals-modal-medication-accordion__item[open]
  .rascals-modal-medication-accordion__summary::before {
  transform: rotate(90deg);
}
.rascals-modal-medication-accordion__body {
  padding: 12px 14px 14px 24px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.rascals-modal-medication-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 0.9rem;
}
.rascals-modal-medication-dl dt {
  margin: 0;
  font-weight: 600;
  color: #5a6c74;
}
.rascals-modal-medication-dl dd {
  margin: 0;
}
.rascals-student-modal__body .rascals-student-modal-section {
  margin-top: 16px;
}

/* ---------- Medication modal (add-student popup) ---------- */
.rascals-medication-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s ease,
    opacity 0.2s ease;
}
.rascals-medication-modal.rascals-medication-modal--open {
  visibility: visible;
  opacity: 1;
}
.rascals-medication-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.rascals-medication-modal__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  padding: 24px;
}
.rascals-medication-modal__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.rascals-medication-modal__intro {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #5a6c74;
}
.rascals-medication-blocks {
  margin-bottom: 16px;
}
.rascals-med-block {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fafafa;
}
.rascals-med-block-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1rem;
}
.rascals-med-field {
  margin: 0 0 12px;
}
.rascals-med-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}
.rascals-med-field input[type="checkbox"] {
  margin-right: 8px;
}
.rascals-med-input,
.rascals-med-select {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
.rascals-med-add-block {
  margin-bottom: 16px;
  background-color: #ffc95900 !important;
  border: 1px solid var(--e-global-color-secondary, #32c3e4) !important;
  color: var(--e-global-color-secondary, #32c3e4) !important;
}

.rascals-med-add-block:hover {
  color: var(--e-global-color-primary) !important;
  border-color: var(--e-global-color-primary) !important;
}

.rascals-medication-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.rascals-med-done,
.rascals-medication-modal__close {
  padding: 10px 20px;
}
.rascals-med-remove-block {
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 0.9rem;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Student card: medication row (expand / remove) ---------- */
.rascals-row--medication .rascals-value {
  display: block;
}
.rascals-medication-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.rascals-medication-toggle:hover {
  color: var(--e-global-color-secondary, #32c3e4);
}
.rascals-medication-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.rascals-medication-entry {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f5f9fa;
  border-radius: 8px;
  border: 1px solid #e0e8eb;
  position: relative;
  padding-right: 80px;
}
.rascals-medication-entry__summary {
  font-size: 0.95rem;
}
.rascals-medication-entry__meta {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #5a6c74;
}
.rascals-medication-entry__meta span + span::before {
  content: " · ";
}
.rascals-medication-end {
  font-weight: normal;
  color: #5a6c74;
}
.rascals-medication-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 0.8rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
.rascals-medication-remove:hover {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}
