:root {
  --bg: oklch(0.992 0.004 250);
  --surface: oklch(0.985 0.006 245);
  --panel: oklch(0.998 0.003 245);
  --line: oklch(0.91 0.014 230);
  --line-strong: oklch(0.86 0.018 230);
  --text: oklch(0.18 0.014 245);
  --muted: oklch(0.48 0.022 245);
  --subtle: oklch(0.67 0.026 235);
  --red: oklch(0.61 0.23 27);
  --red-dark: oklch(0.48 0.2 27);
  --teal: oklch(0.74 0.16 181);
  --blue: oklch(0.62 0.19 278);
  --yellow: oklch(0.83 0.17 82);
  --slot-stripe: oklch(0.96 0.014 230);
  --slot-stripe-2: oklch(0.985 0.008 230);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

a,
a:hover,
a:focus,
a:active {
  text-decoration: none;
}

.container {
  width: calc(100% - 48px) !important;
  max-width: none !important;
  margin: 0 auto;
  padding: 0;
}

.header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header > .container {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-bar {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.course-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: 44px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.course-breadcrumb:hover,
.course-breadcrumb:focus {
  color: var(--red-dark);
}

.course-breadcrumb .zmdi-chevron-right {
  font-size: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  width: 56px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(3, 14px);
  grid-template-rows: repeat(2, 16px);
  gap: 4px;
}

.brand-pill {
  border-radius: 6px;
  display: block;
}

.brand-pill-red {
  grid-row: span 2;
  background: var(--red);
}

.brand-pill-teal {
  background: var(--teal);
}

.brand-pill-blue {
  grid-row: span 2;
  background: var(--blue);
}

.brand-pill-yellow {
  background: var(--yellow);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-icon,
.avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 8px;
  font-size: 24px;
}

.header-icon:hover,
.header-icon:focus {
  color: var(--red);
  background: oklch(0.97 0.018 28);
}

.avatar {
  color: oklch(0.98 0.004 245);
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    oklch(0.22 0.016 245),
    oklch(0.42 0.025 245)
  );
}

.navbar-toggle.menu-toggle {
  display: none;
}

.logo {
  width: 260px;
  max-height: 64px;
  display: block;
}

#print-pdf {
  position: absolute;
  right: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border-radius: 8px;
  font-size: 24px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

#print-pdf:hover,
#print-pdf:focus {
  color: var(--red);
  background: oklch(0.97 0.018 28);
}

.conteudo {
  margin: 0;
}

.conteudo > .container {
  width: calc(100% - 40px) !important;
  max-width: 1850px !important;
  height: calc(100vh - 85px);
  display: grid !important;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 14px;
}

.conteudo > .container > .sidebar,
.conteudo > .container > .main-content {
  position: relative;
  float: none !important;
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
}

.conteudo > .container > .sidebar {
  grid-column: 1;
  height: calc(100vh - 99px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.conteudo > .container > .main-content {
  grid-column: 2;
  overflow: hidden;
}

.conteudo > .container > .main-content #curso-info,
.conteudo > .container > .main-content .timetable {
  width: 100%;
  min-width: 0;
}

.sidebar > .container {
  width: 100% !important;
  padding-right: 20px;
}

.sidebar::-webkit-scrollbar,
.timetable::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.timetable::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.timetable::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.close-icon {
  display: none;
}

.chosen-container {
  width: 100% !important;
  margin-bottom: 12px;
}

.chosen-container-single .chosen-single,
.chosen-container-active.chosen-with-drop .chosen-single {
  height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 0 40px 0 42px;
}

.chosen-container-single .chosen-single::before {
  content: "\f1c3";
  font-family: "Material-Design-Iconic-Font";
  position: absolute;
  left: 13px;
  top: 8px;
  color: var(--muted);
  font-size: 23px;
  font-weight: 400;
}

.chosen-container-single .chosen-single span {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chosen-container-single .chosen-single div {
  top: 8px;
  right: 10px;
}

.chosen-container .chosen-drop {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 6px;
  box-shadow: 0 18px 50px oklch(0.35 0.02 245 / 0.12);
}

.chosen-container-single .chosen-search input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
}

.semestre {
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  padding: 0;
  margin: 6px 0 8px;
  border-radius: 0;
  position: relative;
}

.semestre .botao,
.semestre .botao:active,
.semestre .botao:focus,
.semestre .botao:visited,
.semestre .botao:hover {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  border: 0;
  background: transparent;
  font-size: 28px;
  padding: 0 !important;
  margin: 0 !important;
}

.semestre .botao i {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.semestre .botao i.open {
  transform: rotate(90deg);
}

.semestre-div {
  max-height: 3000px;
  overflow: hidden;
  transition: max-height 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.semestre-div.escondido {
  max-height: 0;
}

.disciplina {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  padding: 12px 14px;
  margin: 0 0 12px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.disciplina:active {
  transform: scale(0.99);
}

.disciplina.disabled {
  cursor: not-allowed;
}

.disciplina:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.disciplina.disabled {
  opacity: 0.5 !important;
  background: var(--surface);
  pointer-events: none;
}

.disciplina.selected {
  border-width: 1px;
}

.disciplina h2 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  margin: 10px 0 2px;
}

.disciplina .horario {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  color: var(--red);
  background: transparent;
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.disciplina .prof {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.disciplina .professor,
.disciplina .workload {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.disciplina .turma {
  display: inline-block;
  margin-top: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.disciplina.selected .horario,
.disciplina.selected .prof,
.disciplina.selected .turma {
  color: currentColor;
  border-color: currentColor;
}

#curso-info {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0 !important;
}

.display_creditos {
  color: var(--red);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 850;
  text-transform: uppercase;
}

.display_ch {
  color: var(--text);
  font-size: 14px;
  font-style: italic;
  margin: 2px 0 0;
}

.avisoIcone {
  opacity: 0;
  transition: opacity 180ms ease;
}

.tooltip-inner {
  font-size: 12px;
  max-width: 350px !important;
}

.timetable {
  position: relative;
  height: calc(100vh - 155px);
  overflow-y: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease;
}

.timetable .badge-upload {
  display: none;
}

.schedule-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 8px 0;
  margin: 0;
}

.schedule-table .time-col {
  width: 48px;
}

.schedule-table .day-col {
  width: calc((100% - 48px) / 5);
}

.table th {
  height: 30px;
  text-align: center;
  color: var(--text);
  border: 0 !important;
  font-size: 15px;
  font-weight: 850;
  padding: 0 0 6px !important;
}

.table td {
  position: relative;
  height: 72px;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: middle;
}

.table .time-label {
  width: 48px;
  max-width: 48px;
  color: var(--text);
  text-align: right;
  font-size: 15px;
  font-weight: 850;
  background: transparent;
  padding-right: 6px !important;
}

.time-slot {
  overflow: hidden;
  border: 6px solid var(--bg) !important;
  border-radius: 12px;
  background-clip: padding-box;
  background: repeating-linear-gradient(
    135deg,
    var(--slot-stripe) 0,
    var(--slot-stripe) 2px,
    var(--slot-stripe-2) 2px,
    var(--slot-stripe-2) 6px
  );
}

.time-slot.filled-slot {
  background-image: none !important;
  border-color: transparent !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  border-left-width: 6px !important;
  border-right-width: 6px !important;
  border-radius: 0;
  background-clip: padding-box;
  box-shadow: none;
}

.time-slot.filled-start {
  border-top-width: 6px !important;
  border-radius: 12px 12px 0 0;
}

.time-slot.filled-end {
  border-bottom-width: 6px !important;
  border-radius: 0 0 12px 12px;
}

.time-slot.filled-start.filled-end {
  border-radius: 12px;
}

td span {
  position: static;
  width: auto;
  margin: 0;
  font-size: inherit;
}

td .full-name,
td .mobile-name {
  height: 100%;
  padding: 6px 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  line-height: 1.2;
}

td .full-name {
  display: flex;
}

td .mobile-name {
  display: none;
}

td .full-name strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

td .full-name small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
}

.delete-icon {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: oklch(0.98 0.004 245) !important;
  background: oklch(0.52 0.22 27 / 0.9);
  font-size: 28px;
  cursor: pointer;
}

td:hover .delete-icon {
  display: flex;
}

.time-slot.filled-slot {
  cursor: pointer;
}

.load-error {
  color: var(--red);
  font-weight: 700;
}

.add-icon {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
}

.add-icon span {
  border-radius: 2px;
}

.add-icon span:nth-child(1) {
  background: var(--red);
}
.add-icon span:nth-child(2) {
  background: var(--teal);
}
.add-icon span:nth-child(3) {
  background: var(--yellow);
}
.add-icon span:nth-child(4) {
  background: var(--blue);
}

.disciplina {
  animation-duration: 0.22s !important;
}

@keyframes fadeInFromNone {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body {
    overflow: auto;
  }

  .container {
    width: calc(100% - 32px) !important;
  }

  .app-bar {
    min-height: 86px;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    gap: 14px;
  }

  .course-breadcrumb {
    font-size: 13px;
    line-height: 1.25;
  }

  .brand {
    font-size: 18px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-icon,
  .avatar {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }

  .conteudo > .container {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 22px;
  }

  .sidebar {
    height: 42vh;
    min-height: 320px;
    overflow-y: auto;
  }

  #curso-info {
    min-height: 60px;
    align-items: flex-start;
  }

  .display_creditos {
    font-size: 20px;
  }

  .display_ch {
    font-size: 14px;
  }

  .timetable {
    height: 72vh;
    min-height: 520px;
  }

  .schedule-table {
    border-spacing: 10px 0;
  }

  .schedule-table .time-col {
    width: 40px;
  }

  .schedule-table .day-col {
    width: calc((100% - 40px) / 5);
  }

  .table th {
    font-size: 13px;
  }

  .table td {
    height: 62px;
  }

  .table .time-label {
    width: 34px;
    max-width: 34px;
    font-size: 14px;
  }

  td .full-name strong {
    font-size: 13px;
  }

  td .full-name small {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    overflow: auto;
  }

  .container {
    width: calc(100% - 28px) !important;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .header > .container {
    min-height: 72px;
    justify-content: flex-start;
  }

  .logo {
    content: url("../img/logo-mark.svg");
    position: absolute;
    left: 0;
    top: 13px;
    width: 56px;
    height: 46px;
    object-fit: contain;
    object-position: left center;
  }

  #print-pdf {
    right: 64px;
    top: 16px;
    width: 44px;
    height: 44px;
  }

  .navbar-toggle.menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
  }

  .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    flex: 0 0 2px;
    margin: 2px 0;
    background: var(--text);
    border-radius: 999px;
  }

  .app-bar {
    min-height: 128px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "crumb crumb";
    gap: 12px;
    padding: 14px 0 0;
  }

  .brand {
    grid-area: brand;
  }

  .brand-name {
    display: none;
  }

  .brand-mark {
    width: 52px;
  }

  .header-actions {
    grid-area: actions;
    gap: 14px;
  }

  .header-icon,
  .avatar {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }

  .course-breadcrumb {
    grid-area: crumb;
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    color: var(--text);
    border-top: 1px solid var(--line);
    padding-top: 12px;
    font-size: 14px;
  }

  .course-breadcrumb .zmdi-graduation-cap {
    font-size: 18px;
  }

  .course-breadcrumb .zmdi-chevron-right {
    margin-left: auto;
  }

  .conteudo > .container {
    width: 100% !important;
    display: block !important;
    height: calc(100vh - 72px);
    padding: 8px 8px 0;
  }

  .conteudo > .container > .main-content {
    width: 100% !important;
    height: 100%;
    display: block !important;
    overflow: hidden;
    padding: 0 !important;
  }

  #curso-info {
    display: none;
  }

  .timetable {
    width: 100% !important;
    height: calc(100vh - 150px);
    padding-bottom: 92px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .schedule-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-spacing: 5px 0;
  }

  .schedule-table .time-col {
    width: 36px;
  }

  .schedule-table .day-col {
    width: calc((100% - 36px) / 5);
  }

  .table th {
    height: 28px;
    font-size: 11px;
    padding-bottom: 2px !important;
  }

  .table td {
    height: 40px;
  }

  .table .time-label {
    width: 36px;
    max-width: 36px;
    font-size: 13px;
    padding-right: 3px !important;
  }

  .time-slot {
    border-radius: 8px;
    border-width: 3px !important;
  }

  .time-slot.filled-slot {
    border-left-width: 3px !important;
    border-right-width: 3px !important;
  }

  .time-slot.filled-start {
    border-top-width: 3px !important;
    border-radius: 8px 8px 0 0;
  }

  .time-slot.filled-end {
    border-bottom-width: 3px !important;
    border-radius: 0 0 8px 8px;
  }

  .time-slot.filled-start.filled-end {
    border-radius: 8px;
  }

  td .full-name {
    display: none;
  }

  td .mobile-name {
    display: flex;
    padding: 3px;
  }

  td .mobile-name,
  td .mobile-name strong {
    font-size: 13px;
    line-height: 1.05;
    font-weight: 850;
  }

  td .mobile-name small {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
  }

  td:hover .delete-icon {
    display: none;
  }

  .sidebar {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: calc(-72vh + 112px);
    z-index: 50;
    width: 100% !important;
    height: 72vh;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 48px oklch(0.38 0.025 245 / 0.16);
    padding: 0 0 28px !important;
    transition: bottom 190ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sidebar.toggled {
    bottom: 0;
  }

  .sidebar > .container {
    width: 100% !important;
    padding: 0 20px !important;
  }

  .close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 44px;
    background: var(--panel);
    padding: 14px 0 12px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .close-icon::before {
    content: "";
    width: 56px;
    height: 5px;
    display: block;
    border-radius: 999px;
    background: var(--line-strong);
    transition:
      background 160ms ease,
      width 160ms ease;
  }

  .close-icon:hover::before,
  .close-icon:active::before {
    background: var(--text);
  }

  .sidebar.toggled .close-icon::before {
    width: 44px;
  }

  .close-icon a,
  .close-icon a:hover,
  .close-icon a:active,
  .close-icon a:focus {
    display: none;
  }

  .chosen-container {
    margin-bottom: 14px;
  }

  .semestre {
    min-height: 42px;
    margin-top: 0;
    font-size: 18px;
  }

  .disciplina {
    min-height: 136px;
    padding: 16px;
    margin-bottom: 20px;
  }

  .disciplina h2 {
    font-size: 19px;
    margin-top: 18px;
  }

  .disciplina .prof {
    font-size: 13px;
  }
}
