@font-face {
    font-family: 'Trebuchet MS';
    src: url('trebuc.woff') format('woff'),
         url('trebuc.ttf') format('truetype');
}  

html,
body {
    margin: 0;
    user-select: none;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Trebuchet MS", sans-serif;
}

.bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    font-size: 20px;
    color: #ffffff;
    background-color: #0475d1;
}

:nth-last-child(1 of .bar) {
    box-shadow: 0px 4px 5px 0px #969696;
}

#nav {
    padding-left: 20px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    padding: 10px;
    padding-bottom: 13px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

.b {
    border: 0;
    border-bottom: 3px;
    border-style: solid;
    border-color: #ffffff;
    padding-bottom: 10px;
}

.left {
    margin-left: 20px;
}

.right {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 15px;
    margin-top: 10px;
    padding: 0 12px;
    height: 34px; 
    font-weight: bold;
    font-size: 15px;
    color: #0475d1;
    background-color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
}

.right:focus,
.right:hover,
.btn:focus,
.btn:hover {
    cursor: pointer;
    background-color: #ffffff4d;
}

.right:focus,
.right:hover {
    background-color: #e6e6e6;
}

#cat {
    margin-left: 15px;
    padding: 5px 10px;
    font-size: 15px;
    font-weight: bold;
    background-color: #ffffff;
    color: #0475d1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}
#cat option {
    background-color: #ffffff;
    color: #0475d1;
}

/* ОДНА КОЛОНКА, БЕЗ ГРИДА И БЕЗ ГАПА */
#sch {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #262626;
    font-size: 15px;
    font-weight: bold;
    padding-right: 15px;
    min-width: 70px;
    flex-shrink: 0;
}
.time .end {
    font-size: 15px;
    opacity: 0.7;
}

.item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    border: 0;
}

.item ~ .item {
    border-top: 1px;
    border-style: solid;
    border-color: #aaaaaa;
}

.item div {
    max-width: 100%;
}

.grp {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.label {
    font-size: 16px;
    font-weight: bold;
    color: #262626;
    overflow-wrap: break-word; /* переносим длинные названия */
    line-height: 1.2;          /* чтобы две строки не раздували карточку */
}

.teacher {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room {
    margin-left: auto;
    color: #262626;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}