/* src/components/Classes/Class-Lessons/Tabs/Calendar/SpellingTermPlanDialog.css */
.q-dialog .spelling-term-plan-dialog {
  width: min(1440px, 96vw);
  max-width: 96vw;
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  border: 1px solid white;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  color: #30333c;
}
.spelling-term-plan-dialog > .ninja-dialog-header {
  flex: none;
}
.stp-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px 28px;
  background: #fcfbfd;
}
.stp-intro,
.stp-projection {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: #696372;
}
.stp-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.stp-benchmark {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  font-size: 12px;
  font-weight: 650;
}
.stp-benchmark select {
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid #d8ccdf;
  border-radius: 18px;
  background: white;
  color: #30333c;
  padding: 12px;
  min-height: 46px;
  width: 100%;
}
.stp-notice {
  padding: 14px 18px;
  border-radius: 18px;
  background: #edf5f5;
  color: #325e5a;
  font-size: 14px;
  line-height: 1.6;
}
.stp-notice--error {
  background: #fff0ee;
  color: #922f2b;
}
.stp-notice--warning {
  background: #fff4dd;
  color: #7a591f;
}
.stp-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  border-bottom: 1px solid #dcd2e5;
  padding: 0 3px;
}
.stp-tab {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid #ded5e8;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #eee9f3;
  color: #72627d;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.stp-tab span {
  font-size: 11px;
  font-weight: 400;
}
.stp-tab.is-active {
  background: #fff;
  color: var(--primary-color,#8f5d95);
  border-color: var(--primary-color,#8f5d95);
}
.stp-tab:focus-visible,
.stp-benchmark select:focus-visible,
.stp-term > summary:focus-visible,
.stp-week > summary:focus-visible {
  outline: 3px solid #a58ab2;
  outline-offset: -3px;
}
.stp-group {
  animation: stp-forward .22s ease-out both;
}
.stp-group--backward {
  animation-name: stp-backward;
}
.stp-group-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid #e2d8e9;
  border-radius: 22px;
  background: #f6f1fa;
  padding: 20px 24px;
  margin: 20px 0 12px;
}
.stp-group-summary h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #674577;
}
.stp-group-summary p {
  font-size: 13px;
  margin: 0;
}
.stp-group-summary > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stp-group-summary strong {
  font-size: 16px;
  color: #674577;
}
.stp-group-summary small {
  font-size: 12px;
  color: #756a7c;
}
.stp-roster {
  padding: 12px 16px;
  border: 1px solid #e8e1ed;
  border-radius: 18px;
  margin-bottom: 18px;
}
.stp-roster summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: #735184;
}
.stp-roster > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.stp-roster span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0edf5;
  font-size: 12px;
}
.stp-group > h3 {
  font-size: 20px;
  margin: 24px 0 14px;
  color: #60416e;
}
.stp-term {
  border: 1px solid #ddcfe5;
  border-radius: 24px;
  overflow: hidden;
  margin: 16px 0;
  background: white;
}
.stp-term > summary,
.stp-week > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 19px 22px;
  list-style: none;
  position: relative;
  padding-right: 58px;
}
.stp-term > summary::-webkit-details-marker,
.stp-week > summary::-webkit-details-marker {
  display: none;
}
.stp-term > summary:after,
.stp-week > summary:after {
  content: "";
  position: absolute;
  right: 25px;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-right: 2px solid #85618d;
  border-bottom: 2px solid #85618d;
  transform: rotate(45deg);
}
.stp-term[open] > summary:after,
.stp-week[open] > summary:after {
  transform: rotate(225deg);
  top: calc(50% - 1px);
}
.stp-term > summary {
  background: #f3edf8;
}
.stp-term > summary strong {
  font-size: 20px;
  color: #6e487e;
}
.stp-term > summary span,
.stp-week > summary span {
  font-size: 12px;
  color: #756b7b;
}
.stp-term > summary span:last-of-type,
.stp-week > summary span:last-of-type {
  margin-left: auto;
  white-space: nowrap;
}
.stp-weeks {
  padding: 4px 18px 16px;
}
.stp-week {
  border: 1px solid #e5deeb;
  border-radius: 20px;
  margin: 14px 0;
  background: #fcfafd;
  overflow: hidden;
}
.stp-week > summary {
  padding-top: 17px;
  padding-bottom: 17px;
}
.stp-week > summary strong {
  font-size: 17px;
}
.stp-week > p {
  padding: 0 20px 14px;
  font-size: 14px;
  color: #7b7181;
}
.stp-sessions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
  gap: 14px;
  padding: 0 16px 16px;
}
.stp-session {
  padding: 17px;
  border: 1px solid #ddcfe7;
  border-radius: 20px;
  background: #f9f5fc;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.stp-session--prepared {
  background: #f2faf5;
  border-color: #b7d6c2;
}
.stp-session--cancelled,
.stp-session--preserved,
.stp-session--unprepared,
.stp-session--conflict {
  background: #f4f4f6;
  border-color: #dadddf;
}
.stp-session-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  font-size: 11px;
  color: #755180;
}
.stp-session-heading span {
  border-radius: 999px;
  padding: 5px 9px;
  background: white;
  text-align: center;
}
.stp-session h4 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 650;
  margin: 7px 0;
  color: #634172;
}
.stp-date,
.stp-time {
  font-size: 12px;
  margin: 0;
  color: #746b7b;
}
.stp-session small,
.stp-session-hint {
  font-size: 12px;
  line-height: 1.6;
  color: #776f7e;
}
.stp-session-hint {
  margin: 0;
}
.stp-view {
  align-self: flex-start;
  margin-top: auto;
  color: var(--primary-color,#8f5d95);
}
.stp-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  border-top: 1px solid #e5e0ea;
  flex: none;
}
.stp-footer p {
  margin: 0 auto 0 0;
  color: #7d7484;
  font-size: 11px;
  line-height: 1.6;
  max-width: 1000px;
}
.stp-footer .q-btn {
  color: var(--primary-color,#8f5d95);
}
.automation-dialog-card .spelling-term-plan-open {
  align-self: flex-start;
  border-radius: 999px !important;
  font-size: 12px;
  padding: 2px 12px;
  margin-top: 5px;
  min-height: 28px;
  color: var(--primary-color,#8f5d95);
  background: #ffffffcc;
}
.automation-dialog-card .spelling-term-plan-open .q-icon {
  font-size: 21px;
}
@keyframes stp-forward {
  from {
    opacity: .4;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes stp-backward {
  from {
    opacity: .4;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stp-group {
    animation: none;
  }
}
@media (max-width: 650px) {
  .stp-body {
    padding: 16px;
  }
  .stp-controls {
    align-items: stretch;
  }
  .stp-benchmark {
    flex-basis: 100%;
    min-width: 0;
  }
  .stp-tab {
    padding: 12px 14px;
    flex-direction: column;
    gap: 4px;
  }
  .stp-term > summary,
  .stp-week > summary {
    flex-wrap: wrap;
    padding-left: 16px;
    gap: 7px;
  }
  .stp-term > summary span:first-of-type,
  .stp-week > summary span:first-of-type {
    flex-basis: 100%;
    order: 2;
  }
  .stp-weeks {
    padding: 0 8px 8px;
  }
  .stp-sessions {
    padding: 0 10px 10px;
  }
  .stp-footer {
    padding: 12px 16px;
  }
  .stp-footer p {
    font-size: 10px;
  }
}
.automation-dialog-card .vocabulary-term-plan-open {
  align-self: flex-start;
  border-radius: 999px !important;
  font-size: 12px;
  padding: 2px 12px;
  margin-top: 5px;
  min-height: 28px;
  color: var(--primary-color,#8f5d95);
  background: #ffffffcc;
}
.automation-dialog-card .vocabulary-term-plan-open .q-icon {
  font-size: 21px;
}
