:root {
    --main-white: #ffffff;
    --main-black: #000000;
  	--main-background-1: #FFFFFF;
  	--main-background-2: #353535;
  	--main-background-3: #F0F0F0;
  	--main-background-4: #252525;
  	--main-background-5: #303030;
    --main-background-6: #151515;
    --main-background-7: #6a6a6a;
    
	--main-elements-1: #5352ed;
	--main-elements-2: #4342d3;
	--main-elements-3: #303030;
	--main-elements-4: #202020;
	--main-elements-5: #393939;
	--main-elements-6: #f92481;
	--main-elements-7: #e11f74;
	--main-elements-8: #e17055;

    --main-staticcolor-1: orangered;
    --main-staticcolor-2: limegreen;

    --main-text-1: #a0a0a0;
}

body{
    background: #101010;
}

.layout {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    display: flex;
    background: #1a1a1a;
    border-radius: 15px;
}

.menublockitemslist {
    min-width: 250px;
    width: 350px;
    max-width: 450px;
    background: #1a1a1a;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-right: 2px solid var(--main-background-6);
}

.maincontent {
    flex: 1;
    background: #1a1a1a;
    color: white;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    margin-left: 15px;
}

.menublockitemslist .menuflex-container {
    display: flex;
    flex-direction: column; /* вертикальное направление */
    height: 100%; /* или любая нужная высота контейнера */
}

.menublockitemslist .menuflex-container .head {
    display: block;
    position: relative;
    border-bottom: 2px solid var(--main-background-6);
    padding: 12px 16px;
    overflow: hidden;
}
.menublockitemslist .menuflex-container .chatslist_container {
    flex: 1; /* занимает всё оставшееся пространство */
    overflow-x: hidden;
    overflow-y: auto;
}
.menublockitemslist .menuflex-container .middle_container {
    flex: 1; /* занимает всё оставшееся пространство */
    overflow-x: hidden;
    overflow-y: auto;
}

.middle_container .description{
    display: block;
    margin: 0px;
    padding: 15px;
    background-color: var(--main-background-4);
}
.middle_container .description p{
    font-family: russia;
    font-size: 14px;
    color: var(--main-text-1);
}

.item-with-borderline {
    display: block;
    margin: 10px 15px;
    padding: 10px;
}
.item-with-borderline:hover{
    background: var(--main-background-4);
    cursor: pointer;
    border-radius: 10px;
}
.item-with-borderline .mini-title {
    font-family: Kanit_Cyrillic;
    font-size: 12px;
    color: var(--main-text-1);
}
.item-with-borderline p {
    font-family: russia;
    font-size: 16px;
}
.item-with-borderline:not(:last-child) {
    border-bottom: 2px solid var(--main-background-6);
}

.chatlist-item{
    display: block;
    margin: 10px 15px;
    padding: 10px;
}

.chatlist-item:hover{
    background: var(--main-background-4);
    cursor: pointer;
    border-radius: 10px;
}

.chatlist-item .chatlist-item-time{
    color: var(--main-background-7);
}

.chatlist-item .chatlist-item-username {
    font-family: Kanit_Cyrillic;
    color: var(--main-elements-1);
}
.chatlist-item .chatlist-item-message{
    padding-left: 15px;
    font-family: russia, serif;
    display: -webkit-box;              /* превращает элемент в flex-подобный контейнер */
    -webkit-line-clamp: 2;             /* ограничение в 2 строки */
    -webkit-box-orient: vertical;      /* вертикальная ориентация строк */
    overflow: hidden;                  /* скрывает лишний текст */
    text-overflow: ellipsis;           /* добавляет многоточие (…) */
}
.chatlist-item .chatlist-item-read{
    display: none;
    font-family: Kanit_Cyrillic;
    font-size: 14px;
}

.chatlist-item .chatlist-item-unread{
    display: inline-block;
    background-color: var(--main-elements-1);
    border-radius: 10px;
    padding: 2px 5px;
}
.chatlist-item[readed="true"] .chatlist-item-unread{
    display: none;
}
.chatlist-item[readed="true"] .chatlist-item-message{
    color: var(--main-text-1);
}
.chatlist-item[memessage="true"] .chatlist-item-read{
    display: inline-block;
}


.chatlist-item:not(:last-child) {
    border-bottom: 2px solid var(--main-background-6);
}

.menublockitemslist .menuflex-container .bottom {
    display: block;
    position: relative;
    border-top: 2px solid var(--main-background-6);
    padding: 12px 16px;
    overflow: hidden;
}

.menublockitemslist .head .icon-button {
    display: inline-block;
    cursor: pointer;
}

.menublockitemslist .head .icon-button svg:hover {
    stroke: var(--main-background-5);
    cursor: pointer;
}

.menublockitemslist .head .input {
    display: inline-block;
    margin-left: 15px;
    width: 70%;
    padding: 8px 15px;
    cursor: auto;
    font-family: Kanit_Cyrillic;
}

.content-full-home-content {
    display: block;
    position: fixed;
    top:111px;
    left:251px;
    right:0px;
    bottom:0px;
}

.blockscreens {
    display: block;
    position: fixed;
    z-index: 1000000;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background: #101010;
}

.box-shadow {
    /*-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);*/
	-webkit-box-shadow: 4px 4px 35px 0px rgba(34, 60, 80, 0.2);
	-moz-box-shadow: 4px 4px 35px 0px rgba(34, 60, 80, 0.2);
	box-shadow: 4px 4px 35px 0px rgba(34, 60, 80, 0.2);
}

h1,h2,h3,h4,h5,h6,p,a{
    font-family: Podkova;
    color: #f0f0f0;
    padding: 0px;
    margin: 0px;
}
.box {
    display:inline-block;
    background: var(--main-background-4);
    border: 1px solid var(--main-background-2);
    margin: 5px;
    border-radius: 10px;
}

.micro-label {
    display: block;
    text-align: left;
    font-size: 14px;
    color: #A0A0A0
}

.header {
    display:block;
    position: fixed;
    top:0px;
    left:0px;
    right:0px;
    height: 50px;
    background: #ffffff;
    border-bottom: 1px solid #D0D0D0;
}

.leftpanel {
    display:block;
    position: fixed;
    top:51px;
    left:0px;
    bottom: 0px;
    width: 300px;
    border-right: 1px solid #D0D0D0;
    background: #F9F9F9;
    overflow-x: hidden;
    overflow-y: scroll;
}

.rightbigpanel {
    display:block;
    position: fixed;
    top:51px;
    right:0px;
    left: 301px;
    bottom: 0px;
    background: #F0F0F0;
    overflow-x: hidden;
    overflow-y: scroll;
}

.header>.logoblock {
    display: inline-block;
    width: 300px;
    height: 50px;
    background-image: url(../source/images/backpatterns/logoback.png);
    overflow: hidden;
}

.header .logotext {
    margin: 5px 0px 5px 0px;
    width: 100%;
    text-align: center;
    font-size: 36px;
}

.header>.subblock {
    display: inline-block;
    position: absolute;
    top:0;
    right:250px;
    left:301px;
    height: 50px;
    overflow: hidden;
    margin: 0PX;
}

.errorelement {
    display: block;
    text-align: left;
    margin: 0px;
    padding: 8px 15px;
    color: #ffffff;
    background: #d63031;
    border-radius: 5px;
}

.content-full {
    display:block;
    position: fixed;
    top:51px;
    left:0px;
    right:0px;
    bottom:0px;
    background: #F4F4F4;
    overflow-y: scroll;
}

.bigmenu-item_loading {
    position: relative;
    color: #000000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bigmenu-item_loading::after {
    content: "";
    position: absolute;
    left: 200%;
    top: -50%;
    width: 200%;
    height: 250%;
    background: linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.5) 45%,rgba(255,255,255,.5) 55%,rgba(255,255,255,.5) 80%,rgba(255,255,255,0) 100%);
    transform: matrix(.47,-.97,.77,.53,0,0);
    animation: blink 1s infinite ease-in-out;
}

hr {
    background: #D0D0D0;
    border: 2px solid #D0D0D0;
    border-radius: 5px;
}

.leftpanel-top {
    display:block;
    position: fixed;
    top:51px;
    left:0px;
    height:50%;
    width: 300px;
    border-right: 1px solid #D0D0D0;
    background: #F9F9F9;
    overflow-x: hidden;
    overflow-y: scroll;
}

.leftpanel-bottom {
    display:block;
    position: fixed;
    bottom:0px;
    left:0px;
    height:45%;
    width: 300px;
    border-right: 1px solid #D0D0D0;
    border-top: 1px solid #D0D0D0;
    background: #F9F9F9;
    overflow-x: hidden;
    overflow-y: scroll;
}


.calendar-day-preset-block {
    margin:0px 0px 10px 0px;
    padding: 10px;
    font-size: 28px;
    background:#ffffff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #E0E0E0;
    color:#000000;
}

.calendar-day-preset-block-gray {
    margin:0px 0px 10px 0px;
    padding: 10px;
    font-size: 28px;
    background:#D0D0D0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #E0E0E0;
    color:#000000;
}

.content_screens {
    display: block;
    position: fixed;
    z-index: 1000000;
    top:51;
    left:0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.2);
}

.content_screens > div[bscreen="true"] {
    display: block;
    position: fixed;
    top: 51px;
    right: 0px;
    width: 618px;
    bottom: 0px;
    background: #ffffff;
}