@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
:root {
  --color-line: #e1e1e1;
  --color-text: #151515;
  --color-white: #fff;
  --color-grey: #e9ecef;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-success: #198754;
  --color-info: #3d8bfd;
  --ff: "Roboto", sans-serif;
  --fs: 14px;
  --mb: 24px;
  --pad: 16px;
  --grid: 10px;
  --cell: 100px;
  --rad: 8px;
}

* {
  box-sizing: border-box;
}
*::selection {
  background: var(--color-text);
  color: var(--color-white);
}

body {
  color: var(--color-text);
  font-family: var(--ff);
  font-size: var(--fs);
  line-height: 18px;
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 28px;
  margin: 0 0 var(--mb);
  text-align: center;
}

/* app-btn */
.app-btn {
  background: var(--color-line);
  border: 0;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  font-size: var(--ff);
  font-family: var(--ff);
  font-weight: 500;
  line-height: 18px;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none;
  transition: all 200ms ease-in-out;
}
.app-btn-prev, .app-btn-next {
  background-image: url("../images/prev.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
  width: 38px;
  height: 38px;
  padding: 0;
}
.app-btn-next {
  transform: matrix(-1, 0, 0, 1, 0, 0);
}
.app-btn:hover, .app-btn.active {
  background-color: #c1c1c1;
}
.app-btn:disabled, .app-btn.disabled {
  background: var(--color-grey);
  cursor: default;
  opacity: 0.7;
}

/* app */
.app {
  padding: 0 var(--pad) var(--pad);
  height: 100%;
}
.app-header {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  margin: 0 0 var(--pad);
  padding: var(--pad) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.app-title {
  flex: 0 0 60%;
  max-width: 60%;
  width: 100%;
  text-align: center;
  order: 2;
}
.app h1 {
  margin: 0;
}
.app-navigation {
  display: flex;
  align-items: center;
  flex: 0 0 20%;
  max-width: 20%;
  width: 100%;
  order: 1;
}
.app-navigation.app-courses-navigation {
  order: 3;
}
.app-navigation.app-subgroups-navigation {
  max-width: 100%;
}
.app-navigation.app-subgroups-navigation ul{
  margin: auto 10px auto 0;
}
.app-navigation ul {
  display: flex;
  align-items: center;
  margin: 0 10px 0 0;
  padding: 0;
}
.app-navigation ul li {
  list-style: none;
  margin: 0 4px 0 0;
}
.app-navigation ul li:last-child {
  margin: 0;
}

/* taskbox */
.taskbox {
  display: block;
  text-decoration: none;
}
.taskbox-inner {
  background: var(--color-grey);
  border-radius: var(--rad);
  color: var(--color-text);
  padding: 10px var(--pad);
  transition: all 140ms ease-in-out;
}
.taskbox a {
  color: inherit;
}
.taskbox span {
  display: block;
}
.taskbox-title {
  font-weight: 500;
}
.taskbox-name {
  font-style: italic;
  opacity: 0.8;
}
.taskbox-link {
  opacity: 0.8;
}
.taskbox-success .taskbox-inner {
  background-color: var(--color-success);
  color: var(--color-white);
}
.taskbox-warning .taskbox-inner {
  background-color: #F5A623;
}
.taskbox-info .taskbox-inner {
  background-color: #4A90D9;
  color: var(--color-white);
}
.taskbox-primary .taskbox-inner {
  background-color: #9B59B6;
  color: var(--color-white);
}
.taskbox-danger .taskbox-inner {
  background-color: var(--color-danger);
  color: var(--color-white);
}
.taskbox-success .taskbox-inner {
  background-color: #7ED321;
  color: var(--color-white);
}
.taskbox:hover .taskbox-inner {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* app-columns */
.app-columns {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 1fr 1fr 1fr;
  grid-column-gap: var(--grid);
}

.app-column {
  flex: 1;
}
.app-column-time {
  text-align: center;
}
.app-column-time b {
  font-size: 18px;
  line-height: 22px;
}
.app-column-time em {
  display: block;
}
.app-column-time .app-cell {
  display: flex;
  align-items: center;
  background: var(--color-line);
  justify-content: center;
}

.app-cell {
  background: #f9f9f9;
  border-radius: var(--rad);
  margin-bottom: var(--grid);
  height: var(--cell);
}
.app-cell:last-child {
  margin-bottom: 0;
}
.app-cell-day {
  background: var(--color-line);
  height: auto;
  text-align: center;
  font-weight: 700;
  margin: 0 0 var(--grid);
  border-radius: var(--rad);
  padding: 6px;
  min-height: 0 !important;
}
.app-cell-header {
  background: var(--color-line);
  text-align: center;
  padding: 4px;
  border-radius: var(--rad);
  font-size: 12px;
  display: none;
  margin: 0 0 2px;
}
.app-cell .taskbox {
  min-height: 100%;
}
.app-cell .taskbox-inner {
  min-height: var(--cell);
  height: var(--cell);
  position: relative;
}
.app-cell .taskbox-title, .app-cell .taskbox-name, .app-cell .taskbox-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-cell .taskbox-title {
  -webkit-line-clamp: 2;
}
.app-cell .taskbox-name, .app-cell .taskbox-link {
  -webkit-line-clamp: 1;
}
.app-cell .taskbox:hover .taskbox-inner {
  height: auto;
  z-index: 1000;
}
.app-cell .taskbox:hover .taskbox-title, .app-cell .taskbox:hover .taskbox-name, .app-cell .taskbox:hover .taskbox-link {
  display: block;
  overflow: auto;
}

/* Responsive */
@media screen and (max-width: 1020px) {
  :root {
    --pad: 12px;
    --rad: 6px;
    --cell: auto;
    --grid: 6px;
  }

  .app-header {
    display: block;
  }

  .app-title, .app-navigation {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
  }

  .app-title {
    margin: 0 0 var(--pad);
  }

  /* app-columns */
  .app-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-column-time {
    display: none;
  }

  .app-column {
    border-bottom: 1px solid var(--color-line);
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .app-cell {
    min-height: 50px;
  }

  .app-cell-header {
    display: block;
  }
  .app-cell-day {
    font-size: 18px;
    background: #545454;
    color: var(--color-white);
  }
  .app-cell .taskbox-inner {
    position: relative;
  }
  .app-cell .taskbox-title, .app-cell .taskbox-name, .app-cell .taskbox-link {
    display: block;
    overflow: auto;
  }
}
@media screen and (max-width: 520px) {
  h1 {
    font-size: 20px;
    line-height: 24px;
  }

  .app-columns {
    display: block;
  }
}