main > .container {
    padding: 92px 15px 28px;
}

.chatpage {
    position: relative;
    min-height: calc(100vh - 30px);
    background: #f7f9fc;
    overflow-x: hidden;
}

.chatpage::before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 110px;
    left: 50%;
    width: min(42vw, 360px);
    aspect-ratio: 120 / 128;
    transform: translateX(-50%);
    background: url(/logo-mark.png) center / contain no-repeat;
    opacity: .12;
    pointer-events: none;
}

.navbar.bg-primary {
    background: #fff !important;
    border-bottom: 1px solid #e5e8f0;
    box-shadow: 0 8px 22px rgba(18, 32, 62, .08);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 6px 0;
}

.navbar-brand-logo {
    width: auto;
    height: 48px;
    max-width: 132px;
    object-fit: contain;
}

.navbar .nav-link {
    color: #34405a !important;
    padding-left: 10px;
    padding-right: 10px;
}

.navbar .flag-icon {
    width: 1.55em;
    line-height: 1.12em;
    box-shadow: 0 0 0 1px rgba(20, 35, 70, .08);
}

@media (max-width: 575.98px) {
    .navbar-brand-logo {
        height: 40px;
        max-width: 112px;
    }

    .chatpage::before {
        top: 100px;
        width: 72vw;
    }
}

.footer {
    background-color: #fff;
    border-top: 1px solid #e5e8f0;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    margin-left: 8px;
    padding: 7px 12px;
    color: #1f6feb;
    border: 1px solid rgba(31, 111, 235, .35);
    border-radius: 6px;
    background: rgba(31, 111, 235, .06);
    line-height: 1.2;
    white-space: nowrap;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: #fff;
    border-color: #1f6feb;
    background: #1f6feb;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.faculty-picker {
    border: 1px solid #d7dde8;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.faculty-picker__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.faculty-picker__search {
    max-width: 360px;
}

.faculty-picker__count {
    color: #5d6b82;
    font-size: 14px;
    white-space: nowrap;
}

.faculty-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.faculty-picker__item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e1e7f0;
    border-radius: 7px;
    background: #f8fafc;
    color: #1f2a44;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}

.faculty-picker__item:hover {
    border-color: #9db8f7;
    background: #f2f6ff;
}

.faculty-picker__item.is-selected {
    border-color: #2f75ff;
    background: #edf4ff;
    box-shadow: inset 3px 0 0 #2f75ff;
}

.faculty-picker__checkbox {
    margin-top: 3px;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .faculty-picker__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .faculty-picker__search {
        max-width: none;
    }
}
