:root {
    --safu-color-dark: #002c5d;
    --safu-color-light: #019ee2;
}

@font-face {
    font-family: 'DP';
    src: url(/local/templates/lkum/fonts/DolomanPavljenko.otf);
}
body {
    /*font-family: 'Helvetica', 'Arial', sans-serif;*/
    /*font-size: 80%;*/
    /*background-color: #9e9e9e;*/ /* На главной будет перекрыт фоновым изображением */
}
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: top;
    background-position-x: center;
}

.main-content {
    position: relative;
    margin-bottom: 2rem;
}

.social-link {
    opacity: 0.5;
}

.header-1 {
    /*background-color: rgb(242, 242, 242);*/
}

.header-1 a {
    color: var(--safu-color-dark);
}

.header-1 a:hover {
    color: rgba(0, 0, 0, .7)
}

h1 {
    font-family: DP, sans-serif;
    font-size: 2rem;
    color: var(--safu-color-dark);
    font-weight: bold;
}

.header-1 h1 {
    font-family: DP, sans-serif;
    font-size: 2rem;
    color: var(--safu-color-dark);
    font-weight: bold;
}

h1.main-page {
    font-family: var(--bs-body-font-family);
    font-weight: 600;
    color: var(--safu-color-dark);
}

.social-link:hover {
    opacity: 1;
}

.top-menu {
    align-items: center
}

/* Главная страница */
.main-page .wide-bg {
    min-height: 260px;
}

.main-page .text-block {
    background-color: #ffffffe0;
    border-radius: 4px;
}

.main-page .bg-copyright {
    font-size: 0.7rem
}

.main-page .bg-copyright a {
    color: var(--bs-gray);
}

/* Entrant Chat */
.chat-block {
    height: calc(100vh - 160px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-block .message-block {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 850px;
}

.chat-block .message-block .message-list {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column-reverse;
    height: 1px;
    width: 100%;
    overflow: auto;
    flex: 1 0 auto;
    background-color: #F1F4F8;
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 15px;
}

.chat-block .message-block .message-list .message-list-inner {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column-reverse;
    padding-top: 15px;
}

.chat-block .message-block .message-list .message-item {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 3px;
    margin-bottom: 10px;
    box-sizing: border-box;
    padding: 15px;
    font-size: 15px;
    line-height: 23px;
    color: #0C1E3A;
}

.chat-block .message-block .message-list .message-item.right {
    margin-left: auto;
}

.chat-block .message-block .message-list .message-item:first-child {
    margin-bottom: 0;
}

.chat-block .message-block .message-list .message-item .info-line {
    margin-bottom: 7px;
    color: #1A3C72;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.chat-block .message-block .message-list .message-item .info-line .name {
    font-weight: bold;
    margin-right: 15px;
}

.chat-block .message-block .message-list .message-item .info-line .date {
    color: #C6D1E3;
}

.chat-block .message-block .message-list .message-item .files {
    margin-top: 5px;
}

.chat-block .message-block .message-list .message-item .files .file {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.chat-block .message-block .message-list .message-item .files .file img {
    position: relative;
    top: -3px;
    margin-right: 7px;
}

.chat-block .message-block .message-list .message-item .files .file a {
    text-decoration: underline;
}

.chat-block .message-block .message-list .message-item .files .file a:hover {
    text-decoration: none;
}

.chat-block .message-block form {
    width: 100%;
    /*padding: 0 15px;*/
}

.chat-block .message-block form h5 {
    font-size: 16px;
    line-height: 19px;
    color: #0C1E3A;
    padding: 0;
    margin: 0 0 10px;
    font-weight: bold;
}

.chat-block .message-block form .message-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 1rem;
}

.chat-block .message-block form textarea {
    width: calc(100% - 100px);
    height: 110px;
    resize: none;
    border: 1px solid #CFD4DA;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #fff;
    padding: 10px;
    font-family: Roboto;
    font-size: 16px;
    line-height: 19px;
    color: #0C1E3A;
}

.chat-block .message-block form textarea:focus {
    outline: none;
    border: 1px solid #1A3C72;
}

.chat-block .message-block form button {
    width: 60px;
    height: 60px;
    background: #00A9E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.5s ease;
}

.chat-block .message-block form button:hover {
    opacity: 0.6;
}

.chat-block .message-block form button:focus {
    outline: none;
}

.chat-block .message-block form label.file-label {
    display: inline-block;
    margin-bottom: 0;
    cursor: pointer;
}

/*.chat-block .message-block form label.file-label input[type="file"] {
    display: none;
}*/

.chat-block .message-block form label.file-label > div {
    display: flex;
    align-items: center;
}

.chat-block .message-block form label.file-label > div span {
    display: block;
    font-size: 16px;
    line-height: 19px;
    color: #0C1E3A;
    margin-left: 5px;
}

/* Admin chat */
#message-user-list {
    max-height: 100vh;
    overflow: auto;
}

#message-user-list .user-item {
    margin-bottom: 3px;
    background-color: var(--bs-light);
    color: var(--bs-dark);
    box-sizing: border-box;
    padding: 15px;
    transition: all 0.5s ease;
    cursor: pointer;
    border-radius: 3px;
}

#message-user-list .user-item[data-new] {
    margin-bottom: 3px;
    background-color: var(--bs-danger);
    color: var(--bs-white);
    box-sizing: border-box;
    padding: 15px;
    transition: all 0.5s ease;
    cursor: pointer;
}

#message-user-list .user-item:hover,
#message-user-list .user-item.active {
    background: var(--bs-info);
    color: var(--bs-white);
}

#message-user-list .user-item:hover a,
#message-user-list .user-item.active a,
#message-user-list .user-item[data-new] a {
    color: var(--bs-white);
}

#message-user-list .user-item-photo {
    width: 72px;
    height: 72px;
    border: solid 1px #eee;
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
}

#message-user-list .user-item .name {
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
}

#message-user-list .user-item .message {
    font-size: 15px;
    line-height: 23px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 7px;
}


/* Боковая панель со справкой */
.sidebar-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0.5;
    z-index: 10;
}

.sidebar .sidebar-toggle {
    top: 11px;
    right: 11px;
}

.sidebar {
    position: absolute;
    right: 0;
    top: 0;
    width: 30rem;
    display: none;
    z-index: 10;
}

.sidebar > section {
    border-top: dashed 1px;
    padding: 1rem 0 0 0;
    margin: 1rem 0 1rem 0;
}

.sidebar > section:first-child {
    border-top: none;
}

.sidebar h1, .sidebar h2 {
    font-family: Roboto, sans-serif;
    color: #6a2a00;
    font-weight: bold;
}

.sidebar h1 {
    font-size: 1.3em;
}

.sidebar h2 {
    font-size: 1.3em;
}

/* Администратор — страница заявок */
.badge-link {
    color: var(--bs-light);
    text-decoration: none;
}

.badge-link:hover {
    color: var(--bs-white);
}