/* PJW MiniList */

.pjw-minilist {
  margin: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pjw-minilist-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pjw-minilist-heading > div {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.pjw-minilist-body {
  width: 100%;
  padding: 0 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.pjw-miniclass {
  padding: 3px 6px;
  border-radius: 6px;
  margin: 2px 4px;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: row;
  font-size: 12px;
  background: var(--white);
  color: rgba(0, 0, 0, .9);
  border: 1px dotted rgba(99, 6, 95, .7);
}

.pjw-miniclass:hover {
  color: white;
  background: rgba(99, 6, 95, .7);
  border: 1px dotted transparent;
}

.pjw-miniclass:active {
  color: white;
  background: rgba(99, 6, 95, .2);
  border: 1px dotted transparent;
}

.pjw-miniclass-index {
  flex-grow: 0;
  margin: 0 8px;
  height: 18px;
  width: 18px;
  line-height: 18px;
  background-color: rgba(255, 255, 255, .3);
  border-radius: 9px;
  font-weight: bold;
  text-align: center;
  vertical-align: center;
}

.pjw-miniclass-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.pjw-miniclass-title {
  font-weight: bold;
  font-size: 14px;
}

.pjw-miniclass-note {
  opacity: .75;
  font-size: 10px;
}

.pjw-miniclass-course-number {
  cursor: pointer;
}

.pjw-miniclass-course-number:hover {
  font-weight: bold;
}

.pjw-miniclass-sideinfo {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  flex-grow: 0;
  flex-shrink: 0;
}

.pjw-miniclass-num {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 5px;
}

.pjw-miniclass-num > .num {
  font-size: 16px;
  font-weight: bold;
  margin: 0 2px;
}

.pjw-miniclass-num > .label {
  font-size: 11px;
  opacity: .6;
  margin: 0 2px;
}

.pjw-miniclass-operation {
  flex-grow: 0;
  flex-shrink: 0;
}

.pjw-miniclass-button:not(:disabled) {
  height: 30px;
  border-radius: 15px;
  background-color: rgb(164, 199, 21);
  padding: 0 10px;
}

.pjw-miniclass-button > .mdc-button__ripple {
  border-radius: 15px;
}

.pjw-miniclass-button__inner {
  color: rgba(255, 255, 255, .75);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.pjw-miniclass-button__icon {
  font-size: 20px;
}

.pjw-miniclass-button__label {
  font-weight: bold;
  font-size: 16px;
}

/* PJW ClassList */

:root {
  --pjw-text-primary: rgba(0, 0, 0, .87);
  --pjw-text-helper: rgba(0, 0, 0, .6);
  --pjw-text-opaque: rgb(0, 0, 0);
  --pjw-calendar-highlight: rgba(54, 79, 125, 1);
}

.pjw-classlist {
  font-size: 12px;
  text-align: left;
  margin-bottom: 50px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pjw-classlist-main {
  margin: 4px 3%;
  width: 94%;
  display: flex;
  flex-direction: row-reverse;
}

/* Heading */

.pjw-classlist-heading {
  margin: 12px 5%;
  width: 90%;
}

.pjw-classlist-selectors {
  float: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin: 6px 20px;
  flex-wrap: wrap;
}

.pjw-classlist-selectors > div {
  margin: 5px 6px;
}

.mdc-select__anchor {
  display: flex;
  width: 100%;
}

#pjw-select-academySelect, #pjw-select-academyList, #pjw-select-courseKindList, #pjw-select-campusList, #pjw-select-specialitySelect, #pjw-select-readRenewType {
  min-width: 250px;
}

.pjw-classlist-controls {
  float: right;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.pjw-classlist-controls > section {
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#autoreload-control-section {
  flex-shrink: 0;
}

#filter-control-section {
  flex-shrink: 0;
}

.pjw-classlist-heading-button {
  background: linear-gradient(220deg, rgba(215, 10, 132), rgba(81, 18, 127));
  min-width: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  height: 48px;
  border-radius: 24px;
  padding: 5px 8px;
}

.pjw-classlist-heading-refresh-button > .mdc-button__ripple {
  border-radius: 24px 0 0 24px;
}

.pjw-classlist-heading-button > .material-icons-round {
  margin: 0 4px;
}

.pjw-classlist-heading-refresh-button {
  flex-direction: row;
  border-radius: 24px 0 0 24px;
  padding-right: 5px;
  margin: 0;
}

.pjw-classlist-heading-switch-button {
  flex-direction: row-reverse;
  border-radius: 0 24px 24px 0;
  margin: 0;
  border-left: 2px solid white;
}

.pjw-classlist-heading-switch-button.on {
  background: linear-gradient(140deg, rgba(215, 10, 132), rgba(81, 18, 127));
}

.pjw-classlist-heading-switch-button.off {
  background: rgba(0, 0, 0, .7);
}

#pjw-classlist-search-field {
  min-width: 250px;
  margin: 10px 16px;
  height: 48px;
}

#pjw-classlist-search-field.inputting .pjw-classlist-search-clear {
  display: block;
}

#pjw-classlist-search-field.inputting .pjw-classlist-search-icon {
  display: none;
}

.pjw-classlist-search-icon {
  display: block;
}

.pjw-classlist-search-clear {
  display: none;
  cursor: pointer !important;
  pointer-events: all !important;
  outline: none;
  transition: color .1s ease-out;
}

.pjw-classlist-search-clear:hover {
  color: rgba(0, 0, 0, 0.72) !important;
}

#pjw-classlist-search-input__label {
  font-size: 14px;
}

/* Body */

.pjw-classlist-body {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  opacity: 0;
}

.pjw-classlist-body__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  width: 100%;
}

.pjw-class-container {
  padding: 10px 18px;
  border-radius: 20px;
  margin: 2px 4px;
  width: 100%;
  position: relative;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  flex-direction: row;
  order: 0;
  background: linear-gradient(200deg, rgba(99,6,95,1) 0%, rgba(175,55,232,1) 73%, rgba(255,71,152,1) 100%);
  color: var(--pjw-text-helper);
  transition: filter .1s ease-out;
  flex: 1 0 90%;
}

.pjw-class-container:not(.pjw-class-container--compressed) {
  --pjw-text-primary: rgba(255, 255, 255, .87);
  --pjw-text-helper: rgba(255, 255, 255, .6);
  --pjw-text-opaque: rgb(255, 255, 255);
  --pjw-calendar-highlight: rgba(255, 255, 255, .4);
}

.pjw-class-container:active {
  filter: brightness(90%) contrast(80%);
}

.pjw-class-container--compressed {
  padding: 8px 18px;
  background: rgba(255, 255, 255, .2);
}

.pjw-class-container--compressed:hover {
  background: rgba(255, 255, 255, .9);
}

.pjw-class-sub {
  display: flex;
  flex-direction: row;
  user-select: none;
}

.pjw-class-sub > div {
  margin: 0 8px;
}

.pjw-class-container--compressed .pjw-class-sub {
  align-self: center;
}

.pjw-class-container--compressed .pjw-class-sub {
  align-self: center;
}

/* Basic Class Info */

.pjw-class-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: max(40%, 250px);
}

.pjw-class-container--compressed .pjw-class-info {
  max-width: 50%;
}

.pjw-class-info-important {
  display: none;
}

.pjw-class-container--compressed .pjw-class-info-important {
  display: block;
}

.pjw-class-container--compressed .pjw-class-info-additional {
  display: none;
}

.pjw-class-info-additional {
  margin-top: 8px;
}

.pjw-class-info-bottom p {
  color: var(--pjw-text-helper);
}

.pjw-class-container--compressed .pjw-class-info-bottom p {
  margin: 2px 0;
}

.pjw-class-course-number {
  flex-direction: row;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color .1s ease-out;
}

.pjw-class-course-number:hover {
  color: var(--pjw-text-primary);
}

.pjw-class-course-number:active {
  color: var(--pjw-text-opaque);
}

.pjw-class-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--pjw-text-primary);
  margin-right: 6px;
}

.pjw-class-teacher {
  font-size: 13.5px;
  color: var(--pjw-text-primary);
}

.pjw-class-teacher-icon {
  font-size: 14px;
  margin-right: 4px;
}

.pjw-class-info-top {
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  display: flex;
}

.pjw-class-container:not(.pjw-class-container--compressed) .pjw-class-info-top {
  flex-direction: column;
  align-items: flex-start;
}

.pjw-class-name-initial {
  font-size: 15px;
}

/* Weekly Calendar */

.pjw-class-weekcal {
  min-width: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, .05);
  justify-content: space-around;
  user-select: none;
}

.pjw-class-container--compressed .pjw-class-weekcal {
  background-color: transparent;
}

.pjw-class-weekcal-heading {
  margin: 2px;
  border: 2px solid var(--pjw-text-helper);
  border-radius: 18px;
  box-sizing: content-box;
  height: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
}

.pjw-class-weekcal-heading:hover {
  border-color: rgba(0, 0, 0, .2);
}

.pjw-class-weekcal-heading:active {
  background-color: rgba(0, 0, 0, .2);
}

.pjw-class-weekcal-heading-day {
  color: var(--pjw-text-primary);
  position: relative;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  line-height: 30px;
  font-weight: bold;
  height: 30px;
  width: 30px;
  margin: 0;
  border-radius: 15px;
}

.pjw-class-weekcal-heading-day.selected {
  color: white;
  background-color: var(--pjw-calendar-highlight);
}

.pjw-class-weekcal-heading-day.selected > canvas.pjw-class-weekcal-arc {
  display: none;
}

.pjw-class-weekcal-heading-day.selected > canvas.pjw-class-weekcal-arc-white {
  display: block;
}

.pjw-class-container--compressed .pjw-class-weekcal-heading-day.selected {
  background-color: rgba(0, 0, 0, .8);
}

.pjw-class-container--compressed .pjw-class-weekcal-heading-day.selected > canvas.pjw-class-weekcal-arc {
  display: block;
}

.pjw-class-container--compressed .pjw-class-weekcal-heading-day.selected > canvas.pjw-class-weekcal-arc-white {
  display: none;
}

.pjw-class-weekcal-heading-day.selected > canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
}

.pjw-class-weekcal-calendar {
  display: flex;
  flex-direction: row;
  margin: 4px 2px 8px 2px;
}

.pjw-class-container--compressed .pjw-class-weekcal-calendar {
  display: none;
}

.pjw-class-weekcal-calendar-day {
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 4px;
  border-radius: 9px;
}

.pjw-class-weekcal-calendar-day.selected {
  background-color: rgba(255, 255, 255, .1);
}

.pjw-class-weekcal-calendar-day > span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--pjw-calendar-highlight);
  border-radius: 20px;
  margin: 2px 2px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--pjw-text-helper);
  font-size: 10px;
}

.pjw-classlist-body .pjw-class-weekcal-calendar-day > span.selected {
  width: 18px;
  height: 22px;
  margin: 0 2px;
  padding: 1px 0;
  border-top-width: 0;
  border-bottom-width: 0;
  border-radius: 0;
  background-color: var(--pjw-calendar-highlight);
  color: white;
  white-space: nowrap;
}

.pjw-class-weekcal-calendar-day > span.selected.sel-start {
  height: 20px;
  margin-top: 2px;
  padding-bottom: 4px;
  border-top-width: 1px;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.pjw-class-weekcal-calendar-day > span.selected.sel-end {
  height: 20px;
  margin-bottom: 2px;
  padding-top: 4px;
  border-bottom-width: 1px;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}

.pjw-class-weekcal-calendar-day > span.selected.sel-start.sel-end {
  height: 18px;
}

.pjw-class-weekcal-calendar-day > span.selected.sel-odd-class::after {
  content: "单";
  vertical-align: sub;
  font-size: 8px;
}

.pjw-class-weekcal-calendar-day > span.selected.sel-even-class::after {
  content: "双";
  vertical-align: sub;
  font-size: 8px;
}

.pjw-class-weekcal-calendar-day > span.selected.sel-odd-class.sel-even-class::after {
  content: "!" !important;
}

/* Class Info (Numbers Part) */

.pjw-class-sideinfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.pjw-class-places {
  display: none;
}

.pjw-class-places > span {
  text-align: center;
  font-size: 12px;
  color: transparent;
  background: linear-gradient(95deg, rgba(81, 18, 127, 1), rgba(123, 11, 94, 1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.pjw-class-container--compressed .pjw-class-places {
  width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.pjw-class-time-detail {
  color: var(--pjw-text-helper);
  margin: 3px;
}

.pjw-class-container--compressed .pjw-class-time-detail {
  display: none;
}

.pjw-class-weeknums {
  display: none;
  letter-spacing: -0.5px;
  background: linear-gradient(95deg, rgba(229, 119, 180, 1), rgba(123, 11, 94, 1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.pjw-class-container--compressed .pjw-class-weeknums {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.pjw-class-weeknums > * {
  font-size: 7px;
  font-weight: bold;
  color: var(--pjw-text-helper);
  margin: 0;
  -webkit-text-fill-color: transparent;
}

.pjw-class-weeknum-bar {
  box-sizing: content-box;
  height: 18px;
  width: 180px;
  border: 1px solid rgba(255, 255, 255, .87);
  border-radius: 10px;
  position: relative;
  margin: 6px 0;
}

.pjw-class-container--compressed .pjw-class-sideinfo .pjw-class-weeknum-bar {
  display: none;
}

.pjw-class-weeknum-bar__fill {
  position: absolute;
  height: 18px;
  border-radius: 10px;
  /* background: linear-gradient(95deg, rgba(54, 79, 125, 1), rgba(123, 11, 94, 1)); */
  background: rgba(255, 255, 255, .87);
  color: rgba(0, 0, 0, .6);
  text-align: center;
  vertical-align: middle;
  font-size: 11px;
  line-height: 18px;
}

.pjw-class-num-info {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin: 4px 2px 2px 2px;
}

.pjw-class-container--compressed .pjw-class-num-info {
  justify-content: center;
}

.pjw-class-bignum {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.pjw-class-container--compressed .pjw-class-bignum {
  margin: 0 5px;
  padding: 0;
  user-select: none;
}

.view-narrow-desktop .pjw-class-container--compressed .pjw-class-bignum {
  flex-direction: row;
  align-items: baseline;
}

.pjw-class-bignum > .num {
  white-space: nowrap;
  font-size: 24px;
  font-weight: bold;
  color: var(--pjw-text-primary);
  transition: font-size .2s ease-out;
}

.pjw-class-container--compressed .pjw-class-bignum > .num {
  font-size: 18px;
  margin: 0 2px;
}

.pjw-class-bignum > .label {
  color: var(--pjw-text-helper);
}

.pjw-class-container--compressed .pjw-class-bignum > .label {
  font-size: 11px;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Class Operations */

.pjw-class-operation {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  justify-content: space-around;
  align-items: center;
}

.pjw-class-container--compressed .pjw-class-operation {
  flex-direction: row;
  padding: 0 10px;
}

.pjw-class-container .pjw-class-select-button {
  --pjw-select-button-background: linear-gradient(114deg, rgba(81, 18, 127, .9) 0%, rgba(215, 10, 132, .9) 100%);
  --pjw-select-button-alternative: rgb(255, 255, 255);
  --pjw-select-button-border: transparent;
  background: var(--pjw-select-button-background);
  border-radius: 100px;
  height: fit-content;
  min-height: 40px;
  min-width: 96px;
  margin: 4px;
  padding: 2px 12px 2px 8px;
  box-sizing: border-box;
}

.pjw-class-select-button__content {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.pjw-class-container:not(.pjw-class-container--compressed) .pjw-class-select-button {
  background: var(--pjw-select-button-alternative);
  border: 3px solid var(--pjw-select-button-border);
}

.pjw-class-container:not(.pjw-class-container--compressed) .pjw-class-select-button .pjw-class-select-button__content {
  background: var(--pjw-select-button-background);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pjw-class-select-button > .mdc-button__ripple {
  border-radius: 100px;
}

.pjw-class-select-button.deselect {
  --pjw-select-button-background: darkred;
  --pjw-select-button-border: darkred;
}

.pjw-class-select-button:disabled {
  color: rgba(0, 0, 0, .5);
  --pjw-select-button-background: rgba(0, 0, 0, .3);
  --pjw-select-button-alternative: rgba(255, 255, 255, .3);
  --pjw-select-button-border: transparent;
}

.pjw-class-select-button__text > div {
  white-space: nowrap;
}

.pjw-class-select-button__label {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: bold;
}

.pjw-class-select-button__status {
  font-size: 10px;
  letter-spacing: 0;
}

.pjw-class-select-button-extra-text {
  font-size: 12px;
  color: var(--pjw-text-helper);
}

.pjw-class-select-button__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.pjw-class-splitter {
  background-color:rgba(0, 0, 0, .3);
  margin: 6px;
  border-radius: 2px;
  width: 4px;
  height: 4px;
  display: none;
}

.pjw-class-container--compressed .pjw-class-splitter {
  display: block;
}

.pjw-class-menu-button {
  width: 40px;
  height: 40px;
  margin: 5px;
  transition: margin .15s ease-out;
}

.pjw-class-container--compressed .pjw-class-menu-button {
  width: 28px;
  height: 28px;
  margin: 2px;
}

.pjw-class-menu-icon {
  font-size: 18px !important;
}

.pjw-class-menu-item .mdc-deprecated-list-item__text {
  font-size: 14px;
}

.pjw-class-menu-item .mdc-deprecated-list-item__graphic {
  margin-right: 20px;
}

.pjw-class-menu-item-icon {
  justify-content: flex-start;
  align-items: baseline;
  font-size: 18px;
}

.pjw-class-menu-item-icon > span {
  position: relative;
  left: -3px;
  top: -1px;
  font-size: 12px;
}

.pjw-class-filter-button {
  z-index: 30;
}

.pjw-class-filter-menu {
  min-width: 260px;
  z-index: 32;
}

/* Fit Screen Size */
.view-narrow-desktop .pjw-class-sub {
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.view-narrow-desktop .pjw-class-container--compressed .pjw-class-sub {
  align-self: stretch;
}

.view-narrow-desktop .pjw-class-operation {
  flex-direction: column;
  padding: 5px 0;
}

.view-narrow-desktop .pjw-class-info-top {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
}

.view-single-column .pjw-classlist-main {
  flex-direction: column;
}

.view-mobile .pjw-class-container {
  flex-direction: column;
}

.view-mobile .pjw-class-info {
  max-width: 100%;
  width: 100%;
}

.view-mobile .pjw-class-operation {
  flex-direction: row;
  justify-content: center;
}

.view-mobile .pjw-class-info-top {
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
}

#pjw-inner-frame {
  position: fixed;
  background-color: white;
  z-index: 1200;
  top: 0;
  right: 0;
  height: 100%;
  min-width: min(100%, 600px);
  width: 60%;
  border-radius: 30px 0 0 30px;
  border-width: 0;
}

#pjw-frame-mask {
  display: none;
  position: fixed;
  background-color: rgba(0, 0, 0, .3);
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}