/* Bridges the old page class names onto the Frest layout. */

.cen { text-align: center; }
.ftit { font-weight: 600; padding-top: 0.4rem; }
.pad5A { padding: 0.5rem; }
.pad5B { padding-bottom: 0.75rem; }
.pad20T { padding-top: 1.25rem; }
.mrg0L { margin-left: 0 !important; }
.ErrorText, .errortext { color: #ff3e1d; }
.HeaderTitle { font-weight: 600; }

.menu-item:not(:has(a, button)) { display: none; }

.dash-home { max-width: 100%; min-width: 0; }
.dash-home > .row > [class*="col-"] { min-width: 0; max-width: 100%; }
.dash-welcome {
    margin: 0 0 0.75rem;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
}
.dash-services > [class*="col-"] { min-width: 0; }

.fm_modtile_linkcontainer {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
    border-radius: 0.5rem;
}
.fm_modtile_linkcontainer:hover,
.fm_modtile_linkcontainer:focus { color: inherit; text-decoration: none; }
.fm_modtile_linkcontainer:focus-visible {
    outline: 2px solid #3d6fd0;
    outline-offset: 3px;
}
.fm_modtile_box {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #c5ced9;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 0.5rem rgba(67, 89, 113, 0.14);
    height: 100%;
    overflow: hidden;
}
.fm_modtile_header,
.tile-header.fm_modtile_header {
    background: #5a8dee;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0;
}
.fm_modtile_icon {
    color: #e0340b;
    font-size: 3.25rem;
    line-height: 1;
}
.tile-content-wrapper { flex: 1 1 auto; padding: 1rem; color: #566a7f; }
.fm_modtile_box .container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
.tile-footer {
    position: relative;
    display: block;
    margin-top: auto;
    background: #5a8dee;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 2.6rem 0.7rem 1rem;
    border-top: 0;
    min-width: 0;
}
.tile-footer::after {
    content: "\ebe6";
    font-family: "boxicons" !important;
    font-style: normal;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1;
    color: #fff;
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
}
.tile-footer > i { display: none; }
a.fm_modtile_linkcontainer:hover .tile-footer,
a.fm_modtile_linkcontainer:focus .tile-footer,
a.fm_modtile_linkcontainer:focus-visible .tile-footer {
    background: #3d6fd0;
    color: #fff;
}
.content-box {
    border: 1px solid rgba(67, 89, 113, 0.12);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.content-box-header { margin: 0; padding: 0.75rem 1rem; }
.content-box-wrapper { padding: 0.75rem 1rem 1rem; }
.bg-red, .bg-red .content-box-header { background: #ff3e1d; color: #fff; }

.dark-style .fm_modtile_box,
.dark-style .content-box { background: #2b2c40; border-color: rgba(255, 255, 255, 0.18); }
.dark-style .tile-content-wrapper { color: #d9dee3; }

.table-striped > tbody > tr.lunch-group-header > td,
.table tr.lunch-group-header > td {
    --bs-table-accent-bg: #e7e7ff;
    background-color: #e7e7ff;
    color: #566a7f;
    font-weight: 600;
    padding: 0.65rem 0.75rem;
}
.dark-style .table tr.lunch-group-header > td {
    --bs-table-accent-bg: #3a3b5c;
    background-color: #3a3b5c;
    color: #d9dee3;
}

.lunch-menu-calendar { max-width: 22rem; margin: 0 auto 1rem; }
.lunch-menu-calendar .ui-datepicker-inline { display: block; background: #fff; border: 1px solid rgba(67, 89, 113, 0.2); border-radius: 0.5rem; }
.lunch-menu-calendar .ui-datepicker-header { background: #f5f5f9; border-bottom: 1px solid rgba(67, 89, 113, 0.12); }
.lunch-menu-calendar .ui-datepicker td a,
.lunch-menu-calendar .ui-datepicker td span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    text-align: center;
}
.lunch-menu-calendar .ui-datepicker-unselectable span,
.lunch-menu-calendar .ui-state-disabled {
    color: #a1acb8;
    opacity: 0.55;
    cursor: not-allowed;
}
.lunch-menu-calendar .ui-state-active {
    background: #696cff;
    color: #fff;
    border-radius: 0.25rem;
}
.lunch-menu-calendar .PaidRSVP span,
.asc-day.PaidRSVP { background: #d4edda; }
.lunch-menu-calendar .DayOff span,
.asc-day.DayOff { background: #e9ecef; }

.asc-multidate .asc-cal-months { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.asc-month { flex: 1 1 16rem; max-width: 22rem; }
.asc-month-title { font-weight: 600; text-align: center; margin-bottom: 0.35rem; }
.asc-month-table { width: 100%; border-collapse: separate; border-spacing: 0.2rem; }
.asc-month-table th { text-align: center; font-size: 0.75rem; color: #566a7f; }
.asc-day {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-width: 2.25rem; min-height: 2.25rem;
    border: 1px solid rgba(67, 89, 113, 0.2); border-radius: 0.25rem;
    background: #fff; color: #566a7f;
}
.asc-day.selected { background: #696cff; color: #fff; border-color: #696cff; }
.asc-day.disabled, .asc-day:disabled { color: #a1acb8; opacity: 0.55; cursor: not-allowed; background: #f5f5f9; }
.asc-cal-dow, .asc-cal-week { border: 0; background: transparent; color: #0d6efd; font-weight: 600; cursor: pointer; padding: 0; }
.appointment_asc { color: #0d6efd; }
.appointment_bsc { color: #fd7e14; }
.asc-appt { font-size: 0.75rem; border-radius: 0.25rem; padding: 0.15rem 0.3rem; margin-top: 0.15rem; }
.asc-appt.appointment_asc { background: #e7f1ff; }
.asc-appt.appointment_bsc { background: #fff3e6; }
.asc-scheduler .asc-month-table { margin-bottom: 1.5rem; }
.asc-day-num { font-size: 0.75rem; color: #a1acb8; }

/* Lunch order form. Bootstrap 5 ignores col-xs-* and col-*-offset-*, and the old
   OrgsCustom sheet that painted the day bar is no longer loaded. */
.date_header_row,
.food_item_row > .row,
.food_category_row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0;
}
.date_header_row {
  align-items: center;
  background-color: #1e4d86;
  color: #fff;
  font-weight: 700;
  margin-top: 0.85rem;
  margin-bottom: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.date_header_row > * { color: #fff; min-width: 0; }
.food_item_row > .row {
  align-items: center;
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}
.food_item_row > .row > * { min-width: 0; }
.food_item_row p { margin: 0; line-height: 1.35; }
.food_category_row { padding-top: 0.45rem; }
.food_textbox_container input {
  max-width: 11rem;
  margin-left: auto;
}
.info_button_cells {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.btn_allergy_fooditem,
.btn_nutrition_fooditem {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  cursor: pointer;
  text-decoration: none;
}
.lunch-food-note { padding: 1.25rem 1.5rem 1.5rem; color: #566a7f; }
.lunch-food-note h3 { margin: 0 0 0.75rem; font-size: 1.15rem; font-weight: 700; color: #566a7f; }
.lunch-food-note .lunch-food-note-body { line-height: 1.45; }
.lunch-food-note .lunch-food-note-body p:last-child { margin-bottom: 0; }
.btn_allergy_fooditem {
  background-image: url("https://fmsecure.orgsonline.com/assets/OrgsCustom/icons_svg/info.svg");
}
.btn_nutrition_fooditem {
  background-image: url("https://fmsecure.orgsonline.com/assets/OrgsCustom/icons_svg/nutrition.svg");
}
.btn_def_fooditem { width: 18px; height: 18px; }
.lunch-order-hints img { width: 16px; height: 16px; vertical-align: text-bottom; }
.lunch-order-hints p { margin-bottom: 0.35rem; }
input.selectdef.btn {
  background-image: url("https://fmsecure.orgsonline.com/assets/OrgsCustom/icons_svg/star.svg");
  background-repeat: no-repeat;
  background-position: 0.7rem center;
  background-size: 1rem;
  padding-left: 2.15rem;
}
@media (max-width: 767.98px) {
  .date_header_row .lunch-col-heading { display: none; }
}

/* Organization switch. The master already draws a full-width card; this one sits centered inside it. */
h4:has(.org-switch-master-title) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.org-switch {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.35rem;
  background: #f7f8fb;
  border: 1px solid rgba(67, 89, 113, 0.12);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(67, 89, 113, 0.08);
}
.org-switch-title {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  color: #566a7f;
}
.org-switch-title span { font: inherit; color: inherit; }
.org-switch-lead {
  display: block;
  max-width: 34rem;
  margin: 0 auto 0.35rem;
  text-align: center;
  color: #697a8d;
}
.org-switch-current {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.15rem 0 1.25rem;
  padding: 0.9rem 1rem;
  background: #e8f0ff;
  border: 1px solid rgba(90, 141, 238, 0.35);
  border-radius: 0.85rem;
}
.org-switch-check {
  display: inline-flex;
  flex: 0 0 2.25rem;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #5a8dee;
  color: #fff;
  font-size: 1.35rem;
}
.org-switch-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a8dee;
}
.org-switch-current-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #566a7f;
}
.org-switch-filter { margin-bottom: 0.85rem; }
.org-tile-wrap { margin-bottom: 0.65rem; }
.org-tile-wrap:last-child { margin-bottom: 0; }
a.org-tile,
.org-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 4.25rem;
  margin: 0;
  padding: 0.8rem 1rem;
  text-align: left;
  text-decoration: none;
  color: #566a7f;
  background: #fff;
  border: 1px solid rgba(67, 89, 113, 0.16);
  border-radius: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.org-tile:hover,
a.org-tile:focus {
  color: #566a7f;
  text-decoration: none;
}
a.org-tile:hover {
  border-color: #5a8dee;
  box-shadow: 0 0.35rem 1rem rgba(90, 141, 238, 0.18);
  transform: translateY(-1px);
}
a.org-tile:focus-visible {
  outline: 2px solid #5a8dee;
  outline-offset: 2px;
}
.org-tile.is-current {
  background: #f3f7ff;
  border-color: rgba(90, 141, 238, 0.45);
  cursor: default;
}
.org-tile.is-static { cursor: default; }
.org-avatar {
  display: inline-flex;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.org-tile-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.org-tile-chevron {
  flex: 0 0 auto;
  color: #a1acb8;
  font-size: 1.4rem;
}
a.org-tile:hover .org-tile-chevron,
a.org-tile:focus-visible .org-tile-chevron { color: #5a8dee; }
.org-current-badge {
  flex: 0 0 auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(113, 221, 55, 0.16);
  color: #3d8b12;
  font-size: 0.75rem;
  font-weight: 700;
}
.org-remove { margin-left: auto; }
.org-switch-actions {
  margin-top: 1.15rem;
  text-align: center;
}
.org-manage-link {
  color: #697a8d;
  font-size: 0.92rem;
  text-decoration: none;
}
.org-manage-link i { margin-right: 0.3rem; vertical-align: -2px; }
.org-manage-link:hover,
.org-manage-link:focus-visible {
  color: #5a8dee;
  text-decoration: underline;
}
.dark-style .org-switch {
  background: #323249;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.dark-style .org-switch-title,
.dark-style .org-switch-current-name,
.dark-style a.org-tile,
.dark-style .org-tile { color: #d9dee3; }
.dark-style .org-switch-lead,
.dark-style .org-manage-link,
.dark-style .org-tile-chevron { color: #a1acb8; }
.dark-style .org-switch-current {
  background: rgba(90, 141, 238, 0.16);
  border-color: rgba(90, 141, 238, 0.4);
}
.dark-style a.org-tile,
.dark-style .org-tile {
  background: #2b2c40;
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-style .org-tile.is-current { background: rgba(90, 141, 238, 0.12); }
@media (max-width: 575.98px) {
  .org-switch { padding: 1.15rem 0.9rem 1rem; }
  .org-switch-title { font-size: 1.4rem; }
  .org-switch-actions .btn { width: 100%; }
}

.student-pick-note {
  display: block;
  margin: 0.85rem auto 0;
  max-width: 34rem;
  text-align: center;
  color: #c62828;
  font-weight: 600;
}
.student-pick-empty {
  margin: 1.1rem 0 0.4rem;
  padding: 1.25rem 1rem;
  text-align: center;
  color: #697a8d;
  background: #fff;
  border: 1px dashed #c5ced9;
  border-radius: 0.85rem;
}
.student-pick-empty p { margin: 0 0 0.45rem; }
.student-pick-empty a { color: #5a8dee; font-weight: 700; }
a.student-pick-tile {
  flex-wrap: wrap;
  align-items: center;
  min-height: 4.75rem;
  gap: 0.55rem 0.85rem;
}
.student-pick-copy {
  display: flex;
  flex: 1 1 9rem;
  flex-direction: column;
  min-width: 0;
}
.student-pick-meta {
  color: #697a8d;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}
.student-pick-badge {
  flex: 0 0 auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.student-pick-badge.is-ordered { background: rgba(113, 221, 55, 0.16); color: #3d8b12; }
.student-pick-badge.is-open { background: rgba(90, 141, 238, 0.14); color: #3d6fd0; }
.student-pick-badge.is-closed { background: rgba(255, 91, 92, 0.14); color: #c62828; }
.student-pick-action {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #5a8dee;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.student-pick-action span { color: inherit; }
a.student-pick-tile:hover .student-pick-action,
a.student-pick-tile:focus-visible .student-pick-action { background: #3d6fd0; }
.dark-style .student-pick-empty {
  background: #2b2c40;
  border-color: rgba(255, 255, 255, 0.14);
  color: #a1acb8;
}
.dark-style .student-pick-meta { color: #a1acb8; }
@media (max-width: 575.98px) {
  a.student-pick-tile { align-items: flex-start; }
  .student-pick-action {
    flex-basis: 100%;
    margin-left: 0;
    text-align: center;
  }
}

.account-password {
  margin: 0.5rem 0 1rem;
  padding: 1rem 1rem 0.35rem;
  background: #f7f8fb;
  border: 1px solid rgba(67, 89, 113, 0.14);
  border-radius: 0.75rem;
}
.account-password-title {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #566a7f;
}
.account-password-help {
  margin: 0 0 0.85rem;
  color: #697a8d;
}
.account-password .form-control { max-width: 24rem; }
.account-password-error { display: block; margin-bottom: 0.75rem; }
.dark-style .account-password {
  background: #323249;
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-style .account-password-title { color: #d9dee3; }
.dark-style .account-password-help { color: #a1acb8; }

.form-submit-list,
.form-submit-list > tbody,
.form-submit-list > tbody > tr,
.form-submit-list > tbody > tr > td {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.form-submit-list { margin: 0; }
.form-submit-card {
  margin: 0 0 1.25rem;
  border: 1px solid #c5ced9;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.15rem 0.5rem rgba(67, 89, 113, 0.08);
  overflow: hidden;
}
.form-submit-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  background: #5a8dee;
  color: #fff;
  padding: 0.7rem 1rem;
}
.form-submit-name { font-size: 1.05rem; font-weight: 700; }
.form-submit-dates { font-size: 0.9rem; font-weight: 500; }
.form-submit-dates:empty { display: none; }
.form-submit-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.form-submit-rows {
  width: max-content;
  min-width: 100%;
  margin: 0;
  color: #566a7f;
}
.form-submit-rows.table > :not(caption) > * > * {
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
  vertical-align: middle;
  border-bottom-color: #e7eaee;
}
.form-submit-rows.table > thead > tr > th {
  --bs-table-bg-type: #eef3fb;
  --bs-table-accent-bg: #eef3fb;
  background-color: #eef3fb;
  color: #566a7f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid #d9dee3;
}
.form-submit-rows.table > tbody > tr:nth-child(odd) > * {
  --bs-table-bg-type: #fff;
  --bs-table-accent-bg: #fff;
  background-color: #fff;
}
.form-submit-rows.table > tbody > tr:nth-child(even) > * {
  --bs-table-bg-type: #f4f7fb;
  --bs-table-accent-bg: #f4f7fb;
  background-color: #f4f7fb;
}
.form-submit-rows .form-submit-action { text-align: center; }
.form-submit-rows .form-submit-action input[type="image"] {
  width: 1.35rem;
  height: 1.35rem;
}
.yesno {
  display: inline-block;
  min-width: 2.5rem;
  padding: 0.08rem 0.45rem;
  border-radius: 0.25rem;
  font-weight: 700;
  text-align: center;
}
.yesno-yes { color: #1b7a45; background: rgba(57, 218, 138, 0.22); }
.yesno-no { color: #c62828; background: rgba(255, 91, 92, 0.16); }
.dark-style .form-submit-card {
  background: #2b2c40;
  border-color: rgba(255, 255, 255, 0.18);
}
.dark-style .form-submit-rows { color: #d9dee3; }
.dark-style .form-submit-rows.table > thead > tr > th {
  --bs-table-bg-type: #323249;
  --bs-table-accent-bg: #323249;
  background-color: #323249;
  color: #d9dee3;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.dark-style .form-submit-rows.table > tbody > tr:nth-child(odd) > * {
  --bs-table-bg-type: #2b2c40;
  --bs-table-accent-bg: #2b2c40;
  background-color: #2b2c40;
  color: #d9dee3;
}
.dark-style .form-submit-rows.table > tbody > tr:nth-child(even) > * {
  --bs-table-bg-type: #323249;
  --bs-table-accent-bg: #323249;
  background-color: #323249;
  color: #d9dee3;
}
