body {
    background: white;
    font-size: .9em;
}
button {
    padding: .5em 1em;
    font-size: .8em;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
}
.page-title, .page-subtitle {
    font-family: inherit;
    font-weight: inherit;
}
.page-title {
    font-size: 1.4rem;
}
.page-subtitle {
    margin-top: -.5em;
}
.login-body-wrap {
    width: 80vw;
    margin: 3% auto;
}
.login-body-wrap > nav {
    display: flex;
    justify-content: space-between;
}
nav a {
    text-transform: none;
    font-weight: normal;
}
.nav-section > * , .nav-section a {
    display: inline-block;
}
.main-login-nav > * {
    margin-right: 1em;
}
.main-login-nav a.active,
.classes-switcher a,
.login-table td:first-child > a ,
.login-table .actions a {
    text-decoration: underline;
    text-underline-offset: .2em;
}
.main {
    margin-top: 5rem;
}
.home-cases-list {
    margin-top: 3rem;
}
.home-cases-list:after {
    content: "";
    display: block;
    width: 29%;
}
.login-table {
    margin-bottom: 4rem;
}
.login-table table {
    border-spacing: 0;
}
.students-table {
    margin-top: 2.69em;
}
.students-table th {
    font-weight: inherit;
    text-align: left;
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.login-table .home-cases-list {
    display: table-cell;
    height: 7em;
    min-width: 6em;
    width: 6em;
}
.scroll-table {
    margin-top: -3.4rem;
}
.login-table .home-cases-list .image {
    position: relative;
}
.scroll-table table {
  table-layout: fixed;
  border-spacing: 0;
  overflow: hidden;
}
.scroll-table td {
    height: 3em;
}
.scroll-table td:not(:first-child) {
    position: relative;
}
.scroll-table td:not(:first-child):after {
    content: "";
    display: block;
    left: 0;
    right: 0;
    top: -1000vh;
    bottom: -1000vh;
    position: absolute;
    background-color: rgba(0,0,0,0.05);
    transition: opacity .25s ease;
    pointer-events: none;
}
.scroll-table td:not(:first-child):not(:hover):after {
    opacity: 0;
}
.scroll-table td:first-child:before,
.scroll-table td:first-child:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    border-bottom: 1px solid black;
}
.scroll-table td:first-child:after {
    top: 100%;
}
.login-table th {
    padding-bottom: 1em;
}
.students-table th {
    padding-bottom: .5em;
}
th.home-cases-list > * {
    transition: opacity .25s ease;
}
th.home-cases-list .image {
    margin: auto;
}
th.home-cases-list .module-title {
    font-size: 0.75em;
    font-weight: 600;
    position: absolute;
    z-index: 1;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}
th.home-cases-list:hover .image,
th.home-cases-list:not(:hover) .module-title {
    opacity: 0;
}
.scroll-table td:first-child, .scroll-table th:first-child {
  position: absolute;
  margin-left: -10em;
}
.login-table td:first-child, .login-table th:first-child {
  min-width: 12em;
  width: 12em;
}
.students-table th:first-child,
.students-table td:first-child.name {
    width: 13em;
    min-width: 13em;
}
.students-table th:nth-child(2),
.students-table td:nth-child(2).username {
    width: 10em;
    max-width: 10em;
}
.scroll-table td:first-child > * {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.scroll-table td:not(:first-child) {
    position: relative;
    cursor: pointer;
    transition: background-color .25s ease;
}
.scroll-table td:not(:first-child):before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: .8em;
    height: .8em;
    background: black;
    border-radius: 50%;
    opacity: .1;
    transition: opacity .25s ease;
}
.class-table .student-module {
    text-align: center;
}
.class-table .student-module.started:not(.complete):before {
    display: none;
}
.class-table .student-module.complete:before {
    width: 1.5em;
    height: 1.5em;
    background-color: transparent;
    background-image: url(links/check-icon-black.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.class-table .student-module:not(.started) {
    cursor: auto;
}
.scroll-table .student-module:not(:first-child):hover {
    background: rgba(0,0,0,0.05);
}
.scroll-table td:not(:first-child).active:before {
    opacity: 1;
}
.scroll-tabletd:not(:first-child).active:hover:before {
    opacity: .8;
}
.scroll-table .outer {
  position: relative;
}
.scroll-table .inner {
  overflow-x: scroll;
  overflow-y: visible;
  width: calc(100% - 10em + 10vw);
  margin-right: -10vw;
  margin-left: 10em;
}
.login-table:not(.scroll-table) table {
    width: 100%;
}
.login-table:not(.scroll-table) td {
    height: 3em;
    border-top: 1px solid black;
}
.login-table:not(.scroll-table) tr:last-child td {
    border-bottom: 1px solid black;
}
.login-table:not(.scroll-table) td:last-child {
    text-align: right;
}
.login-table tr.hidden {
    display: none;
}
.login-table td.invisible, .login-table th.invisible {
    display: hidden;
    pointer-events: none;
}
.login-table td:not(.pass) > * {
    white-space: nowrap;
    padding-right: 2em
}
.login-table td.pass > *, .login-table td.username > * {
    font-family: monospace;
    letter-spacing: .01em;
}
.login-table td:last-child > * {
    padding-right: 0;
}
.login-table td.new-pass {
    width: 100%;
}
.login-table .actions a {
    margin-left: 1em;
}
.classes-table th {
    min-height: 5rem;
}
.classes-table tr {
    min-height: 3rem;
}
.classes-switcher {
    position: absolute;
    z-index: 10;
    margin-top: -.5em;
}
.user-info-form > div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.user-info-form > div > div {
    width: 31%;
    margin: 1em 0;
}
.user-info-form > div > div.lower {
    margin-top: 4em;
}
.user-info-form label,
.user-info-form input {
    display: block;
    width: 100%;
    margin-bottom: .5em;
}
.user-info-form input {
    padding: .5em;
    background: #EDEDED;
    border: 0;
    outline: 0;
}
button.save-info {
    margin-top: 2rem;
}
.input-on-top {
    position: relative;
    display: block;
    cursor: pointer;
}
.input-on-top > form {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.input-on-top > form input {
    width: 100%;
    height: 100%;
}
.input-on-top:not(.editing) > form {
    display: none;
}
.input-on-top:before {
    content: "";
    display: block;
    position: absolute;
    left: -1em;
    filter: invert(1);
    width: 1em;
    height: 1em;
    background-image: url(links/write.svg);
    background-size: 140%;
    transform: scaleX(-1);
    transition: opacity .15s ease;
}
.input-on-top:not(:hover):before {
    opacity: 0;
}
.renew-pass {
    position: relative;
    width: 100%;
}
.student-pass-form {
    display: inline-block;
    position: relative;
    height: 1em;
    width: 1em;
    vertical-align: middle;
}
.student-pass-form button {
    background-color: transparent;
    color: inherit;
    background-image: url(links/refresh.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    height: 1em;
    width: 1em;
}
.toggle-selected-module,
.student-module-indicator,
.student-module-comment-indicator {
    display: block;
    background-color: black;
    border-radius: 50%;
    width: 2.1rem;
    height: 2.1rem;
    background-image: url(links/done_white.svg);
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateX(50%);
    cursor: pointer;
    z-index: 100;
    transition: opacity .15s ease;
    opacity: 1;
}
a:not(.selected) .toggle-selected-module {
    opacity: .15;
}
a .toggle-selected-module:hover {
    opacity: .4;
}
.student-module-indicator {
    background-image: none;
    background-color: black;
    border-radius: 50%;
    color: white;
}
.student-module-indicator.complete {
    background-image: url(links/done_white.svg);
}
.student-module-indicator span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1em;
}
.student-module-indicator.complete span {
    display: none;
}
.student-module-comment-indicator {
    top: calc(50% + 2.5rem);
    background-image: url(links/dialog.svg);
    background-size: 75%;
}
.login-area .module-filters {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: sticky;
    top: 0;
}
.login-area .module-filters > * {
    text-align: left;
    font-family: inherit;
}
.login-area .filters-group {
    padding-left: 0;
}
.class-info-title {
    display: flex;
    justify-content: space-between;
}
.row-actions-wrap {
    display: flex;
    justify-content: flex-end;
}
.delete-class, .delete-student, .print-class{
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    background-color: transparent;
    background-image: url(links/trash.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: opacity .25s ease;
}
.delete-student{
    width: 1rem;
    height: 1.4rem;
}
.print-class {
    background-image: url(links/print.svg);
    width: 1.3rem;
    margin-right: .5em;
}
.class-actions {
    display: flex;
}
.faded {
    opacity: .2;
}
.logins {
    display: flex;
    justify-content: space-between;
}
.logins h1 {
    margin-top: 0;
}
.logins > * {
    width: 50%;
    padding: 3% 5%;
}
.logins > *:first-child {
    padding-left: 0;
    border-right: 1px solid #ccc;
}
.logins > *:last-child {
    padding-right: 0;
}
.logins form > div {
    flex-direction: column;
}
.logins form > div > div {
    width: 100%;
    margin: .5em 0;
}
.logins .save-info.button {
    margin-top: 1.5em;
    width: fit-content;
    height: 2.75em;
}
.responsible {
    display: none;
}
.page-main-text {
    margin: 2rem 0;
}
.page-main-text a {
    text-decoration: underline;
    text-underline-offset: .2em;
}
.required-info {
    margin: 0;
}
.show-on-empty,
.is_empty .hide-on-empty {
    display: none;
}
.is_empty .show-on-empty {
    display: block;
}
.empty-message {
    margin-top: 6.5em;
}

@media print {
  nav, button, .classes-switcher {
      display: none !important;
  }
}

.home-cases-list.on .link:not(.filter-selected) {
    display: none;
}