@font-face {
    font-family: "NunitoRegular";
    src: url("/fonts/NunitoSans/NunitoSans-Regular.woff") format("woff");
}


@font-face {
    font-family: "NunitoBlack";
    src: url("/fonts/NunitoSans/NunitoSans-Black.woff") format("woff");
}


@font-face {
    font-family: "NunitoLight";
    src: url("/fonts/NunitoSans/NunitoSans-Light.woff") format("woff");
}


@font-face {
    font-family: "NunitoItalic";
    src: url("/fonts/NunitoSans/NunitoSans-Italic.woff") format("woff");
}


body {
    font-family: "NunitoRegular";
    font-size: 1rem;
    background-color: #F4F9FD;
}

.myLink {
    color: inherit;
    text-decoration: none;
}

.b {
    font-weight: bold;
}

.bb {
    font-family: "NunitoBlack";
}

.l {
    font-family: "NunitoLight";
}

.nav-link {
    display: inline-block;
    color: #7D8592;
    /*font-weight: bold;*/
    font-size: 1.1rem;
    padding-bottom: 0;
    padding-left: 0.5em;
}

.spinnerButton {
    width: 20px;
    height: 20px;
    margin-left: 0.2em;
}

.hiddenBlock {
    display: none;
}

.nav {
    display: block;
    padding: 0.6em;
    background-color: white;
    height: 100%;
    border-radius: 0.6em;
}

.nav-wrap {
    width: 100%;
}

.menu-item {
    display: block;
    width: 100%;
    margin-bottom: 0.2em;
    /*padding: 0.6em;*/
    padding-right: 0.7em;
}

.menu-inner {
    width: 100%;
    padding: 0.5em;
}

.menu-item:hover {
    border-right: 5px solid #FFF;
}

.menu-inner:hover {
    background-color: #f0f1f2 !important;
    border-radius: 0.8em;

}

.menu-item.active {
    border-right: 5px solid #3F8CFF;
}

.menu-item.active .menu-inner {
    background-color: #ECF3FF !important;
    border-radius: 0.8em;
}

.menu-item.active a {
    /*border-radius: 1em;*/
    font-weight: bold;
    color: #3F8CFF;
}

.menu-item.active svg path {

    fill: #3F8CFF;
}

.svg-menu {
    vertical-align: 5px;
}

.sidebar {
    background: none;
    height: 100vh;
    width: 280px;
    position: fixed;
    left: 0;
    transition: all 0.3s;
    z-index: 100;
    padding: 0.7em;
}

.lastItem {
    margin-bottom: 1em;
    margin-top: 2em;
    vertical-align: 10px;
}

.main-content {
    margin-left: 280px;
    transition: all 0.3s;
    padding-top: 1em !important;
}

.nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.project-card {
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-medium {
    background: #ffe082;
}

.status-low {
    background: #c8e6c9;
}

.nav {
    display: flex;
    /*flex-direction: column;*/
    height: 100%; /* Занимает всю высоту родителя */
    max-width: 100%;
    position: relative; /* Для корректного позиционирования дочерних элементов */
    overflow: auto;
    padding: 0.5em;
    padding-right: 0;
}

.lastItem {
    margin-top: auto; /* Прижимает элемент к низу */
    margin-bottom: 3em; /* Убираем лишний отступ */
}

.item-logout {
    color: #7D8592;
}


.btn-primary {
    box-shadow: 0px 6px 12px 0px rgba(63, 140, 255, 0.2637);

}

.btn-success {
    box-shadow: 0px 6px 12px 0px rgba(71, 255, 66, 0.18);

}

.btn-secondary {
    box-shadow: 0px 6px 12px 0px rgba(104, 104, 104, 0.36);

}

.btn-danger {
    box-shadow: 0px 6px 12px 0px rgba(255, 69, 92, 0.26);

}


.btn-warning {
    box-shadow: 0px 6px 12px 0px rgba(255, 142, 47, 0.26);

}


.form-label {
    font-family: NunitoLight;
    font-size: 0.8rem;
    color: #505050;
    margin-left: 1em;
}

.modal-content {
    padding: 1.5em;
}

.modal-title {
    font-weight: bold;
}

.wide .form-control, .wide .form-select {
    padding: 0.8em;
    border-radius: 0.7em;
}

.modal-footer {
    border-top: none;
    padding-top: 2em;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 2em;
}

.employeeBlock {
    padding: 1em;
    width: 100%;
    height: auto;
    background-color: white;
    border-radius: 0.9em;
}

.roleBlock {
    border: 1px solid grey;
    padding: 0.2em 0.8em;
    font-size: 0.7rem;
    border-radius: 0.3em;
    display: block;
    width: min-content;
    text-align: center !important;
    margin-right: auto;
    margin-left: auto;
}

.position {
    font-size: 0.8em;
}

.employee-name {
    font-size: 0.9em;
}

.user_img {
    width: 50%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.picture {
    max-width: 100%;
    border-radius: 10em;
    border: 3px solid #CD853F;
    padding: 0.2em;
}


.your-picture {
    max-width: 100%;
    border-radius: 10em;
    border: 4px solid #B8860B !important;
    padding: 0.2em;
}

.user_img-modal {
    width: 7em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/*.your-profile {*/
/*    border: 4px solid #B8860B;*/
/*    transition: 0.5s;*/
/*    background-color: #F5F5DC !important;*/
/*}*/

.registration_info {
    background-color: #FFEFD5;
    padding: 0.7em;
}

.unregistered {
    background-color: #DCDCDC;
}

.employees-profile {
    padding: 1em;
    border-radius: 1em;
    background-color: white;
}

.user_img-profile {
    width: 50%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.modal .form-control, .modal .form-select {
    padding: 0.8em;
}

.main-info-block {
    margin-bottom: 0.5em;
}

.button-img {
    max-width: 30px;
}

.user-info {
    /*margin-top: 1em;*/
    padding: 0.5em;
    /*border: 1px solid gray;*/
    background-color: #F8F8FF;
    border-radius: 0.8em;
}

.code-info {
    font-size: 0.8rem;
}

.main-info-input {
    padding: 0.5em;
    border: 1px solid gray;
    border-radius: 0.3em;
}

.changedBlock {
    cursor: pointer;
}

.changedBlock {
    color: #191970;
    transition: 1s;
}

.changedBlock:hover {
    color: #B8860B;
    font-weight: bold;
    transition: 0.3s;
}

img.changedBlock:hover {
    border-color: #DAA520;
    transition: 0.3s;
}

img.changedBlock {
    transition: 1s;
}

.current-positions {
    padding: 1em;
    background-color: #ededed;
    border-radius: 0.5em;
}

.trashButton:hover {
    color: red !important;
    font-weight: bolder;
}

.nav-tabs .nav-link.active {
    background-color: transparent !important;
    font-weight: bold;
}

.form-label {
    margin-left: 0;
}

.project-wrap {
    padding: 0 1em;
    padding-bottom: 0.5em;
    padding-top: 1em;
}

.oneProjectBlock > .wrap {
    background-color: white;
    margin-bottom: 2em;
}

.progress, .progress-stacked {
    --bs-progress-height: 0.7rem;
    --bs-progress-font-size: 0.6rem;
    --bs-progress-bar-bg: #0d6efd;
    --bs-progress-bar-transition: width 0.6s ease;
    height: var(--bs-progress-height);
    overflow: hidden;
    border-radius: 0;
}

.img-project-icon {
    width: 7em;
    height: 5em;
}


.project-icon {
    max-width: 100%;
    height: auto;
}

.project-values {
    color: #b5b6b7;
}

.value-name {
    font-size: 0.8rem;
}

.status-layout {
    border-radius: 0.6em;
    padding: 0.5em 1.5em;
}

.status-created {
    background-color: #e7e7e7;
    color: #505050;
}

.status-at_work {
    background-color: #d8e8ff;
    color: #003bff;
}

.status-paused {
    background-color: #f0efb6;
    color: #df6400
}

.status-changes {
    background-color: #F9E6FC;
    color: #C418E6;
}

.status-completed {
    background-color: #c1ffb3;
    color: #272727;
}

#project-properties .wrap,
#project_full_images .wrap {
    background-color: white;
    padding: 1em;
    border-radius: 0.6em;
}

.employees-section {
    border: #b5b6b7 1px solid;
    border-radius: 0.7em;
    padding: 1em;
}

.table > thead {
    border-bottom: 2px solid black;
}

.dropdown-toggle {
    padding: 0.8em;
}

.btn-dropdown {
    border: 1px solid lightgray;
    width: 100%;
    text-align: left !important;
    overflow: hidden;
}

.btn-dropdown:hover {
    border: 1px solid lightgray;
}

.drop-drop li:hover {
    background-color: black !important;
}

.btn-dropdown.show {
    border: 1px solid lightgray !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #e1e2e3 !important;
}


.btn-dropdown:active {
    border: 1px solid lightgray !important;
}

.list-picture {
    width: 25px;
    height: auto;
}

.employee-list {
    font-size: 1rem;
    padding-left: 1em;
    width: max-content;
    padding-right: 1em;
}

.my-drop {
    padding: 0.5em 1em;
    border-bottom: #b5b6b7 1px solid;
}

.dropdown-menu.show {
    padding: 0;
}

.table-light {
    --bs-table-color: #000;
    --bs-table-bg: #fff;
}

.del-performer:hover {
    font-family: NunitoBlack;
}

.mini {
    width: 20px;
    height: 20px;
    border-radius: 2em;
}

.mini-men {
    width: 30px;
    height: 30px;
    /*border-radius: 2em;*/
}


.mini-project {
    width: 30px;
    height: auto;
}

.mini-for-task {
    width: 50px;
    height: 50px;
}

.min-photo {
    width: 20px !important;
    margin-left: -0.5em;
}


.only-participant {
    background-color: #DCDCDC !important;
}


.table-only-participant {
    --bs-table-bg: #DCDCDC !important;
}

.only-participant .project-values {
    color: #000;
}

.dropdown-menu {
    top: 100% !important; /* Чтобы меню шло сразу под кнопкой */
    left: 0 !important; /* Выравниваем по левому краю кнопки */
    transform: none !important; /* Отключаем стандартные сдвиги */
    max-width: max-content;
}


.progress-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(
        #007bff var(--progress, 0%),
        #e6e6e6 var(--progress, 0%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
}

.progress-circle::before {
    content: "";
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.task-wrap {
    background-color: white;
    padding: 0.7em 1.2em;
    border-radius: 1.3em;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.property-title {
    color: dimgray;
    font-size: 0.85rem;
}

.opening {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.5s ease;
}

.opening.visible {
    max-height: 500px; /* Укажи максимальную высоту, которая подходит для твоего блока */
    overflow: auto;
    opacity: 1;
}


.wrap-one-project {
    background-color: white;
}

.wrap-one-project img {
    max-width: 100%;
}

.section {
    padding: 1em;
}

.buttons-block {
    display: flex;
    justify-content: space-around;
    padding: 0;
    background-color: #ebebeb;
    border-radius: 10em;
    max-width: max-content;
    margin: 0 auto;
}

.select-button, .select-button-all_tasks, .select-project-button {
    padding: 0.5em 3em;
    font-size: 16px;
    color: #000;
    background-color: transparent;
    border: none;
    border-radius: 5em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
}

.select-button.active-button,
.select-project-button.active-button,
.select-button-all_tasks.active-button {
    background-color: #3F8CFF;
    color: #fff;
}

.notification-link {
    display: inline-block;
    font-weight: bold;
    text-align: center;
    color: white !important;
    font-size: 0.8rem;
    min-width: 2.5em;
    min-height: 2em;
    border-radius: 3em;
    padding: 0.5em;
    background-color: #2E8B57;
    /*border: 1px solid #32CD32;*/
}


.messages-link {
    position: absolute;
    top: -1em;
    left: -0.5em;
    display: inline-block;
    font-weight: bold;
    text-align: center;
    color: white !important;
    font-size: 0.8rem;
    min-width: 2.5em;
    min-height: 2em;
    border-radius: 3em;
    padding: 0.5em;
    background-color: #FF8C00;
    /*border: 1px solid #32CD32;*/
}

/* Основные стили */
#the_task_comments {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

.comments-section {
    margin-top: 30px;
}

.comment {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.comment-meta {
    margin-left: 10px;
    font-size: 12px;
    color: #888;
}

.comment-edited {
    font-style: italic;
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.5;
    padding: 5px 0;
    color: #333;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.reply-btn {
    background: none;
    border: none;
    color: #4a89dc;
    font-size: 12px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.reply-btn:hover {
    background: #f0f4f8;
    color: #3a70c2;
}

.reply-btn i {
    margin-right: 5px;
}

/* Для вложенных комментариев */
.replies {
    margin-left: 30px;
    margin-top: 15px;
    border-left: 2px solid #eee;
    padding-left: 15px;
}

/* Форма добавления комментария */
.add-comment {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.add-comment textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
}

.add-comment button {
    background: #4a89dc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.add-comment button:hover {
    background: #3a70c2;
}

.replayed-comment {
    background-color: #efefef;
    padding: 0.5em;
}


.invisibility {
    font-weight: bold;
    text-decoration: underline;
    color: #800000;
}

.newComments {
    display: inline-block;
    font-weight: bold;
    text-align: center;
    color: white !important;
    font-size: 0.8rem;
    min-width: 2.0em;
    min-height: 1.8em;
    border-radius: 3em;
    padding: 0.2em;
    background-color: #FF8C00;
    position: absolute;
    right: 0;
    top: -0.5em;
    z-index: 1000;
}

/* Основные стили мессенджера */
.messenger-container {
    display: flex;
    height: calc(100vh - 120px);
    background: #fff;
    border-radius: 0.6em;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contacts-sidebar {
    width: 300px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.contacts-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-item:hover, .contact-item.active {
    background: #87CEFA;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-name {
    font-size: 0.95rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-last-msg {
    font-size: 0.8rem;
    color: #7D8592;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-time {
    font-size: 0.75rem;
    color: #7D8592;
    margin-left: 10px;
}

/* Область чата */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    background: #fff;
}

.back-button {
    background: none;
    border: none;
    margin-right: 10px;
    font-size: 1.2rem;
    color: #3F8CFF;
    cursor: pointer;
    display: none;
}

.chat-partner {
    display: flex;
    align-items: center;
}

.partner-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.partner-name {
    font-size: 1rem;
}

.messages-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #e5ddd5;
    /*background-image: url('https://web.telegram.org/img/pattern.png');*/
    background-attachment: fixed;
}

.message {
    max-width: 70%;
    width: 45%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    word-break: break-word;
}

.message.incoming {
    background: #fff;
    margin-right: auto;
    border-top-left-radius: 0;
}

.message.outgoing {
    background: #dcf8c6;
    margin-left: auto;
    border-top-right-radius: 0;
}

.message-time {
    font-size: 0.7rem;
    color: #7D8592;
    text-align: right;
    margin-top: 3px;
}

.message-input-container {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.message-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 25px;
}

.message-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    resize: none;
    outline: none;
    transition: border 0.3s;
    min-height: 40px;
    max-height: 120px;
}
.send-button {
    background: #3F8CFF;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.send-button:hover {
    background: #2a7ae9;
}

.message-input:focus {
    border-color: #3F8CFF;
}

.attach-button {
    background: #f0f0f0;
    color: #555;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.attach-button:hover {
    background: #e0e0e0;
    color: #3F8CFF;
}

.send-button {
    background: #3F8CFF;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.send-button:hover {
    background: #2a7ae9;
}

#error-message {
    padding-left: 15px;
    font-size: 14px;
}


.unregistered {
    background-color: #d7d8d9;
}

.blocked {
    background-color: #FFE4B5;
}


.fired {
    background-color: #ffb7b7;
}

tr.blocked {
    background-color: #FFE4B5;
}
