@font-face {
    font-family: "InterRegular";
    src: url("../font/Inter/InterRegular.ttf")
}
@font-face {
    font-family: "InterBold";
    src: url("../font/Inter/InterBold.ttf")
}
@font-face {
    font-family: "InterLight";
    src: url("../font/Inter/InterLight.ttf")
}


html,
body {
    height: 100%;
    font-family: "InterRegular";
    background-color: #F7F7F7;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

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

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.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 {
    padding: 15px;
    border: none;
}

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

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

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



/* ############################################# */
/* ############################################# */
/* ############################################# */
/* ############################################# */
/* ############################################# */
/* ############################################# */

.all-panels {
    /* height: 100vh; */
    display: grid;
    grid-template-columns: 5% 35% 60%;
}

.left-panel {
    height: 100vh;
    background-color: #C0C0C0;
    overflow-y: auto;
}
.left-panel::-webkit-scrollbar {
    width: 0;
}
.all-chats {
    height: 100vh;
    background-color: #DDDDDD;
    overflow-y: auto;
}
.all-chats::-webkit-scrollbar {
    width: 0;
}
.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}
.chat {
    height: 100vh;
    background-color: #F7F7F7;
}

.elem-left-panel {
    margin-bottom: 10px;
    width: 100%;
    height: 5em;
    /* aspect-ratio: 1 / 1; */

    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.title-folder {
    font-family: "InterLight";
    color: #F7F7F7;
    font-size: small;
    margin-top: -20px;
}

.nav-left-panel {
    width: 100%;
    height: 100%;

    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.elem-all-chats-panel {
    width: 100%;
    height: 5em;

    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
}



.search-input {
    border-radius: 100px;
    border: 0;
    padding: 0.6rem 1.3rem;
    width: 100%;
    height: 50%;
}
.search-input::placeholder {
    font-family: "InterLight";
}






/* ВСЕ ЧАТЫ */
.img-chats {
    border-radius: 100%;
    width: 5em;
    height: 5em;
    
    /* aspect-ratio: 1 / 1; */
}

.all-chats-panel {
    /* padding-bottom: 10px; */
    /* width: 100%; */
    height: 6.5em;
    padding: 10px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}
/* .elems-chat {
    width: 100%;
    display: grid;
    grid-template-columns: 18% 62% 20%;
} */
.all-chats-panel:hover {
    background-color: #F7F7F7;
}



.elems-chat {
    width: 100%;
    display: grid;
    grid-template-columns: 70% 30%;
}
.elems-chat-left {
    display: flex;
    /* height: auto; */
}
.elems-chat-right {
    width: 100%;
}
.elems-chat-left > img {
    margin-right: 2em;
}



.main-info-part {
    display: grid;
    grid-template-rows: 45% 40%;
    gap: 10%;

    overflow: hidden;
    text-overflow: ellipsis;

    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -o-pre-wrap; /* Opera */
    white-space: nowrap; /* Chrome */
    word-wrap: break-word; /* IE */
}
.title-chat {
    display: flex;
    align-items: end;
    font-family: "InterBold";
}
.title-chat, .last-message {
    width: 100%;
    font-size: medium;
    color: black;
    overflow: hidden;
    text-overflow: ellipsis;

    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -o-pre-wrap; /* Opera */
    white-space: nowrap; /* Chrome */
    word-wrap: break-word; /* IE */
}
.last-message {
    font-family: "InterLight";
}
.minor-info-part {
    height: 100%;
    display: grid;
    grid-template-rows: 45% 45%;
    gap: 10%;
}
.time-last-message {
    display: flex;
    align-items: end;
    justify-content: end;
    text-align: right;

    font-family: "InterLight";
    color: black;
    
    /* overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; */
}
.count-message {
    display: flex;
    justify-content: end;
}
.circle {
    width: 2.2rem; 
    height: 2.2rem;
    background: #C0C0C0;
    border-radius: 50%;
    font-family: "InterLight";
    font-size: small;
    color: #F7F7F7;

    display: flex;
    justify-content: center;
    align-items: center;
}
.add-chat {
    width: 1em;
    height: 1em;
    background-color: red;
}









/* .btn {
	display: inline-block;	
	box-sizing: border-box;
	padding: 0 25px;
	outline: none;
	border: 1px solid #fff;
	border-radius: 50px;
	height: 46px;
	line-height: 46px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #444;
	background-color: #fff;
	box-shadow: 0 4px 6px rgb(65 132 144 / 10%), 0 1px 3px rgb(0 0 0 / 8%);
	cursor: pointer;
	user-select: none;
	appearance: none;
	touch-action: manipulation;  
	vertical-align: top;
	transition: box-shadow 0.2s;
}
.btn:focus-visible {
	border: 1px solid #4c51f9;
	outline: none;
}
.btn:hover {
	transition: all 0.2s;
	box-shadow: 0 7px 14px rgb(65 132 144 / 10%), 0 3px 6px rgb(0 0 0 / 8%);
}
.btn:active {
	background-color: #808080;
} */







.chat-panel {
    height: 5em;
    padding: 0px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #E9E9E9;
}
.chat-panel-left {
    display: flex;
    justify-content: flex-start;
}
.chat-panel-left > img {
    margin-right: 2em;
}
.chat-panel-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.info-chat {
    width: 100%;
    display: grid;
    grid-template-columns: 90% 10%;
}
.name-chat {
    display: flex;
    align-items: center;
    font-size: medium;
    font-family: "InterRegular";
}
.settings-chat {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    vertical-align: middle;
}
.img-chat {
    border-radius: 100%;
    width: 4em;
    height: 4em;
}
.clip {
    max-width: 2em;
}
.box-clip {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: flex-start;
}





.messages {
    width: 100%;
    height: calc(100vh - 10em);
    background-color: #F7F7F7;
    padding: 0px 20px;
    
    display: flex;
    align-items: flex-end;
    flex-direction: column;

    overflow-y: auto;
}
.message {
    width: 100%;
    /* min-height: 5em; */
    /* background-color: #4c51f9; */

    padding: 10px 0px;
    padding-left: 4.5em;

    display: flex;
    
}
.recipient {
    border-radius: 2em 2em 2em 0;   
}
.sender {
    border-radius: 2em 2em 0 2em;
}
.back-message {
    min-width: 100px;
    max-width: 70%;
    height: 100%;
    background-color: #E9E9E9;

    
    padding: 10px 30px;
    /* display: flex;
    justify-content: center;
    align-items: center; */
}
.message-time {
    display: flex;
    flex-direction: row-reverse;

    font-family: "InterLight";
    font-size: small;
    color: #a1a1a1;
}
.img-user-chat {
    border-radius: 100%;
    max-width: 4em;

    position: sticky;
    bottom: 0px;

    margin-top: -7em;
}
.group-messages {
    width: 100%;
}
.message-sender {
    width: 100%;
    /* min-height: 5em; */
    /* background-color: #4c51f9; */

    padding: 10px 0px;
    /* padding-left: 4.5em; */
    border-radius: 2em 2em 0 2em;

    display: flex;
    flex-direction: row-reverse;
}
.message-username {
    font-family: "InterLight";
    font-size: small;
    color: #a1a1a1;
}
.message-text {
    font-family: "InterLight";
    color: black;
}
.message-text > span{
    text-align: justify;
}





#all-chats-panel-active {
    background-color: #F7F7F7;
}
.all-chats-panel-other {
    /* padding-bottom: 10px; */
    /* width: 100%; */
    height: 6.5em;
    padding: 10px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}



.input-send-message {
    border: 0px;
    background-color: #E9E9E9;
    width: 100%;
}
.input-send-message:active, .input-send-message:focus {
    border: 0px;
    outline: none;
}
.send-chat {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: medium;
    font-family: "InterRegular";
}

.active-folder {
    background-color: #DDDDDD;
}
.hide-chat-by-folder, .hide-chat-by-search {
    display: none;
}
.image-upload>input {
    display: none;
    /* position: absolute; */
}
.image-upload > label {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}
.image-upload {
    width: 10em;
    margin-right: 2em;
}


.message-form {
    width: 100%;
    height: 100%;
    height: 5em;


    background-color: #E9E9E9;
}
.field-message-file {
    top: -100%;
    position: relative;
}
#message-file {
    display: none;
}
.form-group.field-message-text {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}
.form-group {
    margin-bottom: 0px;
}


#message-text {
    border: 0px;
    background-color: #E9E9E9;
}


.btn-send-message {
    width: 100%;
    height: 100%;
    background-color: #E9E9E9;
    border: 0px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.chat-img {
    margin-top: 20px;
}










/* #################################### */
/* #################################### */
/* #################################### */
/* ################вёрстка сайта############ */
/* #################################### */
/* #################################### */
/* меню навигации */
.nav-top {
    background-color: #E9E9E9;
    border-bottom: 2px solid #d8d8d8;
}
.nav-top > a {
    color: #234997;
}
.nav > li > a:hover {
    color: #234997;
}
.icon-bar {
    background-color: #234997;
}

/* кнопки */
a.btn-blue {
    background-color: #234997;
    color: #FFFFFF;
    border-radius: 100px;
    font-size: medium;
    padding: 10px 30px;
}
a.btn-blue:hover {
    border: 1px solid #234997;
    background-color: #F7F7F7;
    color: #234997;
    font-size: medium;
}
a.btn-blue:focus {
    border: 1px solid #234997;
    background-color: #F7F7F7;
    color: #234997;
    font-size: medium;
}
.jumbotron .btn {
    font-size: medium;
    padding: 10px 30px;
}


/* текст заголовоки */
.jumbotron > .lead {
    font-size: large;
    color: #234997;
}
.jumbotron > h2 {
    font-family: "InterBold";
    color: #234997;
}


/* инфографика */
.infograf {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #E9E9E9;
    padding: 30px 0px;
    border: 2px solid #d8d8d8;
    border-radius: 5px;
    margin-bottom: 100px;
}
.infograf > img {
    width: 30px;
}
.infograf > .mess-info {
    width: 70px;
}

/* О приемуществах */
.advantages {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.advantages > h2 {
    font-family: "InterBold";
    color: #234997;

    text-align: center;
    width: 70%;
}
.advantages > .main-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    margin-top: 20px;
    margin-bottom: 50px;
}
.advantages > .main-block > .block {
    background-color: #E9E9E9;
    color: #234997;
    border-radius: 20px;
    width: 22em;
    height: 20em;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.advantages > .main-block > .block > img {
    width: 100px;
    margin-bottom: 40px;
}
.advantages > .main-block > .block > .choose-info {
    width: 150px;
}

/* Ноги */
.footer {
    background-color: #E9E9E9;
    color: #234997;
}

/* ШАПКА */
#keel {
    border: 1px solid #234997;
    border-radius: 20px;
    padding: 5px 25px;
}
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ФОрма регистрации */
.original-form {
    display: flex;
    justify-content: center;
    align-items: center;
}
.title {
    color: #234997;
    font-family: "InterBold";
    text-align: center;
    margin-bottom: 60px;
}
.regular-form {
    width: 40em;
}
.regular-form > div > input[type='file'] {
    display: none;
}
.regular-form > div > textarea {
    border-radius: 20px;
    background-color: #E9E9E9;
    /* margin-bottom: 30px; */
    padding: 10px 20px;
    resize: none;
}
.regular-form > div > input {
    border-radius: 100px;
    background-color: #E9E9E9;
    
    padding: 20px 20px;
}
.regular-form > div > select {
    border-radius: 100px;
    background-color: #E9E9E9;
    color: #555555;

}
.regular-form > .search > div > input {
    border-radius: 100px;
    background-color: #E9E9E9;
    
    padding: 20px 20px;
}
.regular-form > div {
    margin-bottom: 30px;
}
.all-check {
    display: flex;
    align-items: center;
}
.toggler-wrapper {
    margin-right: 20px;
}

.btn-original {
    width: 100%;
    background-color: #234997;
    color: #FFFFFF;
    border-radius: 100px;
    font-size: small;
    padding: 10px 30px;
}
.btn-original:hover {
    border: 1px solid #234997;
    background-color: #F7F7F7;
    color: #234997;
    font-size: small;
}
.btn-original:focus {
    border: 1px solid #234997;
    background-color: #F7F7F7;
    color: #234997;
    font-size: small;
}


/* ЧЕКБОКС */

.toggler-wrapper input[type="checkbox"]:checked+.toggler-slider:after {
	/* content: 'On'; */
}

.toggler-wrapper input[type="checkbox"]:checked+.toggler-slider .toggler-knob {
	left: calc(100% - 19px - 3px);
}

.toggler-wrapper .toggler-slider:after {
	/* content: 'Off'; */
	position: absolute;
	top: 50%;
	right: -25px;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	font-size: 75%;
	text-transform: uppercase;
	font-weight: 500;
	opacity: 0.7;
}

.toggler-wrapper .toggler-knob {
	width: calc(25px - 6px);
	height: calc(25px - 6px);
	border-radius: 50%;
	left: 3px;
	top: 3px;
	background-color: #fff;
}
.toggler-wrapper {
	display: block;
	width: 47px;
	height: 27px;
	cursor: pointer;
	position: relative;
}

.toggler-wrapper input[type="checkbox"] {
	display: none;
}

.toggler-wrapper input[type="checkbox"]:checked+.toggler-slider {
	background-color: #234997;
    border: 2px solid #234997;
}

.toggler-wrapper .toggler-slider {
	background-color: #E9E9E9;
	position: absolute;
	border-radius: 100px;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-transition: all 300ms ease;
	transition: all 300ms ease;
    border: 2px solid #DDDDDD;
}

.toggler-wrapper .toggler-knob {
	position: absolute;
	-webkit-transition: all 300ms ease;
	transition: all 300ms ease;
}

#logo {
    width: 90px;
    height: 90px;
    margin-top: -35px;
}
#img_in_chats {
    width: 50px;
}
a.btn-in_chats {
    font-size: medium;
}
a.btn-in_chats {
    color: #234997;
    text-decoration: none; /* no underline */
  }


/* ПРОФИЛЬ */
.profile {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info_profile {
    width: 750px;
    height: 200px;
    background-color: #FFFFFF;
    font-family: "InterRegular";
    color: #234997;
    border-radius: 20px;
    border: 2px solid #E9E9E9;
    font-size: large;

    display: flex;
    /* flex-direction: column;
    justify-content: center; */
    padding: 25px;
}
.profile-img {
    border-radius: 100%;
    width: 25em;
    height: 25em;
    border: 2px solid #E9E9E9;
}
.left-side-profile {
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
#pencil {
    width: 30px;
}


/* ВЫБРАТЬ ФАЙЛ */
.input-file {
	position: relative;
	display: inline-block;
    width: 100%;
}
.input-file span {
	position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	text-decoration: none;
	font-size: 14px;
	vertical-align: middle;
	color: #555555;
	text-align: center;
	border-radius: 4px;
	background-color: #E9E9E9;
	line-height: 22px;
	height: 40px;
	padding: 10px 20px;
	box-sizing: border-box;
	border: none;
	margin: 0;
	transition: background-color 0.2s;


    border-radius: 100px;
    background-color: #E9E9E9;
    width: 100%;
}
.input-file input[type=file] {
	position: absolute;
	z-index: -1;
	opacity: 0;
	display: block;
	width: 0;
	height: 0;
}
.field-editprofile-img {
    width: 100%;
}



/* РАБМЕСТО */
.btn-menu-w {
    width: 100%;
    height: 100%;
    padding: 200px 200px;
}
.search {
    display: flex;
    justify-content: center;
}



/* Список */
.list_of {
    /* height: 700px; */
    font-family: "InterRegular";
    color: #234997;
}
.elem_of_list {
    width: 100%;
    height: 8em;
    display: flex;
    justify-content: space-between;
    background-color: #FFFFFF;
    margin-bottom: 30px;
    border-radius: 100px;
    border: 2px solid #E9E9E9;
    padding-right: 50px;
}
.elem_of_list_p {
    width: 100%;
    height: 8em;
    display: flex;
    justify-content: space-between;
    background-color: #FFFFFF;
    margin-bottom: 30px;
    border-radius: 100px;
    border: 2px solid #E9E9E9;
    padding-right: 50px;
    padding-left: 50px;
}
.list-img {
    width: 7em;
    height: 7em;
    border-radius: 100px;
    border: 2px solid #E9E9E9;
    margin-right: 30px;
}
.left_side_elem_list {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: medium;
}
.right_side_elem_list {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 15em;
}
.btn-dange {
    width: 100%;
    color: #972325;
    border-radius: 100px;
    font-size: small;
    border: 1px solid #972325;
    padding: 10px 30px;
}
.btn-dange:hover {
    background-color: #972325;
    color: #F7F7F7;
    font-size: small;
}
.btn-dange:focus {
    background-color: #972325;
    color: #F7F7F7;
    font-size: small;
}
.pag {
    display: flex;
    justify-content: center;
}
ul.pagination > li > span, ul.pagination > li > a {
    border-radius: 100px;
    margin-right: 10px;
    background-color: #F7F7F7;
    border: 1px solid #234997;
    color: #234997;
}
ul.pagination > li > span:hover, ul.pagination > li > a:hover {
    background-color: #234997;
    border: 1px solid #234997;
    color: #F7F7F7;
}
ul.pagination > li.active > a {
    background-color: #234997;
    border: 1px solid #234997;
    color: #F7F7F7;
}
ul.pagination > li.active > a:hover {
    background-color: #234997;
    border: 1px solid #234997;
    color: #F7F7F7;
}

.members {
    background-color: #C0C0C0;
    border: 0px;
}
.people {
    width: 4em;
}
.first-message {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}
.ls {
    display: flex;
    justify-content: space-between;
}

.btn-original-mini {
    /* width: 100%; */
    background-color: #234997;
    color: #FFFFFF;
    border-radius: 100px;
    font-size: small;
    padding: 5px 15px;
    border: 1px solid #234997;
}
.btn-original-mini:hover {
    border: 1px solid #234997;
    background-color: #F7F7F7;
    color: #234997;
    font-size: small;
}
.btn-original-mini:focus {
    border: 1px solid #234997;
    background-color: #F7F7F7;
    color: #234997;
    font-size: small;
}


.btn-dange-mini {
    color: #972325;
    border-radius: 100px;
    font-size: small;
    border: 1px solid #972325;
    padding: 5px 15px;
}
.btn-dange-mini:hover {
    background-color: #972325;
    color: #F7F7F7;
    font-size: small;
}
.btn-dange-mini:focus {
    background-color: #972325;
    color: #F7F7F7;
    font-size: small;
}


/* mob */
/* Главная */
@media (width < 1000px) {
    .advantages > .main-block {
        flex-wrap: wrap;
    }
    .advantages > .main-block > .block {
        margin-bottom: 20px;
    }
}
@media (width < 640px) {
    .advantages > .main-block > .block {
        width: 100%;
    }
}
/* Профиль */
@media (width < 1000px) {
    .profile {    
        flex-wrap: wrap;
        justify-content: center;
    }
}
@media (width < 640px) {
    .profile-img {
        width: 50vw;
        height: 50vw;
    }
}
@media (width < 768px) {
    .vertical-menu {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
    }
    
    .vertical-menu li {
        margin-bottom: 10px;
    }
}
/* Заявки */
.req {
    display: grid;
    /* Пропорции колонок: 0.3 : 2.1 : 0.4 (сумма = 2.8) */
    grid-template-columns: 0.3fr 1fr 0.4fr;
    gap: 0px; /* Отступ между элементами */
    align-items: center; /* Выравнивание по вертикали */

    font-family: "InterRegular";
    color: #234997;
    font-size: medium;   

    width: 100%;
    /* height: 8em; */
    background-color: #FFFFFF;
    margin-bottom: 30px;
    border-radius: 100px;
    border: 2px solid #E9E9E9;

    min-height: 120px;
}
.pl {
    padding-left: 50px;
}
.btns {
    height: 100%;
    padding-right: 50px;

    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: left;
}
.img_in_list {
    width: 7em;
    height: 100%;
    border-radius: 100px;
    border: 2px solid #E9E9E9;
    margin-right: 30px;
}

/* Мобильная версия */
@media (max-width: 500px) {
    .req {
        /* Меняем структуру сетки */
        grid-template-columns: 1fr 1fr; /* Первая колонка сохраняет пропорцию */
        grid-template-rows: auto auto;      /* Две строки для второго и третьего элементов */
        padding-top: 5px;
        padding-bottom: 5px;
        gap: 10px;

        border-radius: 20px;

        min-height: 170px;
    }
    .pl {
        padding-left: 10px;
    }

    .img {
        grid-row: span 2; /* Занимает обе строки */
        height: 100%;     /* Растягиваем на всю высоту контейнера */
    }
    
    .info {
        grid-column: 2;   /* Вторая колонка */
        grid-row: 1;      /* Первая строка */
        width: 100%;      /* Занимает всю ширину колонки */
        overflow: scroll;
        max-height: 70px;
    }

    .btns {
        grid-column: 2;   /* Вторая колонка */
        grid-row: 2;      /* Вторая строка */
        width: 100%;      /* Занимает всю ширину колонки */
        padding-right: 5px;
    }
    .btns > a {
        /* font-size: x-small; */
        padding: 10px 10px;
    }
    .img_in_list {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        border: 2px solid #E9E9E9;
        object-fit: cover;
        margin-right: 0px;
    }

    
    .btn-menu-w {
        width: 100%;
        height: 100%;
        padding: 0px 0px;
    }
}

/* Чаты */

@media (width < 1000px) {
    .all-panels {
        grid-template-columns: 15% 85% 0%;
    }
    #send_message {
        width: 50px;
        height: 50px;
    }
    #img-back {
        display: block!important;
        margin-right: 0px;
    }



    .last-message {
        display: none;
    }
    .count-message {
        display: none;
    }
    .minor-info-part {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .main-info-part, .minor-info-part {
        display: flex;
        align-items: center;
    }
    .chat {
        display: none;
    }
}
#img-back {
    display: none;
}


/* Подчёркивание скрепки при плохой валидации */
.error {
    border-bottom: 4px dashed #972325;
    box-sizing: border-box;
}



.introjs-tooltipReferenceLayer * {
    font-family: "InterBold";
    color: #234997;
    font-size: large;
}

.introjs-button, .introjs-button:hover, .introjs-button:focus {
    background-color: #234997;
    color: #FFFFFF;
    border-radius: 5px;
    font-size: small;
    padding: 5px 15px;
    text-shadow: none;
}

/* Загрузочный экран */
#load {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgb(255, 255, 255); /* Пример фона для наглядности */

    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    color: #234997;
    font-size: 10px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    animation: mulShdSpin 1.3s infinite linear;
    transform: translateZ(0);
    }

    @keyframes mulShdSpin {
    0%,
    100% {
        box-shadow: 0 -3em 0 0.2em, 
        2em -2em 0 0em, 3em 0 0 -1em, 
        2em 2em 0 -1em, 0 3em 0 -1em, 
        -2em 2em 0 -1em, -3em 0 0 -1em, 
        -2em -2em 0 0;
    }
    12.5% {
        box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 
        3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, 
        -2em 2em 0 -1em, -3em 0 0 -1em, 
        -2em -2em 0 -1em;
    }
    25% {
        box-shadow: 0 -3em 0 -0.5em, 
        2em -2em 0 0, 3em 0 0 0.2em, 
        2em 2em 0 0, 0 3em 0 -1em, 
        -2em 2em 0 -1em, -3em 0 0 -1em, 
        -2em -2em 0 -1em;
    }
    37.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
        3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, 
        -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }
    50% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
        3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, 
        -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }
    62.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
        3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, 
        -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
    }
    75% {
        box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 
        3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, 
        -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
    }
    87.5% {
        box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 
        3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, 
        -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
    }
    }

/* Стили модального окна */
/* Отключаем стандартный бэкдроп */
.modal-backdrop {
    display: none !important;
}

/* Главный контейнер модалки */
.left-side-modal .modal-dialog {
    margin: 0 !important;
    width: 40%;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    position: fixed;
    left: 0;
    top: 0;
}
.right-side-modal .modal-dialog {
    margin: 0 !important;
    width: 60%;
    height: 100vh;
    transform: translateX(+100%);
    transition: transform 0.3s ease-out;
    position: fixed;
    left: 40%;
    top: 0;
}
.modal-body {
    max-height: 100%;
    overflow-y: scroll;
}

/* Анимация открытия */
.left-side-modal.show  .modal-dialog {
    transform: translateX(0) !important;
}
.right-side-modal.show  .modal-dialog {
    transform: translateX(0) !important;
}

/* Стилизация контента */
.left-side-modal .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    /* box-shadow: 4px 0 15px rgba(0,0,0,0.2); */
}
.right-side-modal .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    /* box-shadow: 4px 0 15px rgba(0,0,0,0.2); */
}

.modal-backdrop.show {
    opacity: 0.5 !important;
    background-color: #000 !important;
}

.left-side-modal .modal-dialog {
    z-index: 1050; /* Должен быть выше чем у бэкдропа (1040) */
}
.right-side-modal .modal-dialog {
    z-index: 1050; /* Должен быть выше чем у бэкдропа (1040) */
}

.left-side-modal .modal-dialog {
    transition: transform 0.3s ease-out !important; /* Добавляем переход */
    /* Остальные стили остаются как раньше */
}
.right-side-modal .modal-dialog {
    transition: transform 0.3s ease-out !important; /* Добавляем переход */
    /* Остальные стили остаются как раньше */
}

/* Добавляем отдельный класс для анимации закрытия */
.left-side-modal.closing .modal-dialog {
    transform: translateX(-100%) !important;
}
.right-side-modal.closing .modal-dialog {
    transform: translateX(+100%) !important;
}

/* Адаптив для мобилок */
@media (width < 1000px) {
    .left-side-modal .modal-dialog {
        width: 100% !important;
    }
    .right-side-modal .modal-dialog {
        width: 100% !important;
        left: 0;
    }
}

.chat_change {
    background: none;
    border: none;

    max-width: 40px;
}
.member-in-list {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;

    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -o-pre-wrap; /* Opera */
    white-space: nowrap; /* Chrome */
    word-wrap: break-word; /* IE */
}