﻿@import url('vars.css');
@import url('ui_replace.css');
@import url('scroll-style.css');
@import url('basic_elem.css');



#webCamPanel {
    width: 38%;
    /* height: 50%; */
    position: absolute;
    top: 10px;
    left: 10px;
    border: dotted 3px var(--color-red);
    border-radius: 19px;
    padding: 10px;
}
#webCamPanel canvas {
    display: block;
    width: 100%;
    height:100%;
}
    #webCamPanel video {
        display: block;
        width: 100%;
    }
#webCamPanel input {
    position: absolute;
    margin: auto;
    width: 100%;
    height: 100%;
    top: 0;
    cursor: pointer;
    border: none;
}
.version_info {
    font-weight: 600;
    margin-left:20px;
}
.workplace {
}
    .workplace > .wrapper {
        width: 100%;
        height: 100%;
        display: block;
        position: fixed;
        top: 0;
        z-index: -1;
    }
.sale_begin_button {
    background-color: var(--theme-lera-color-yellow);
    color: black;
    position: relative;
    text-align: right;
    font-size: 92%;
    max-width: 130px;
}
    .sale_begin_button:before {
        content: "";
        background-image: url(img/shopping_cart.png);
        background-size: 30px;
        position: absolute;
        width: 32px;
        height: 32px;
        left: -3px;
        top: 3px;
        background-repeat: no-repeat;
    }
    .sale_begin_button:hover{
        color:initial;
    }

#saletarget_panel {
    position: absolute;
    display: block;
    top: 0px;
    margin: auto;
    width: 100%;
    /* background-color: var(--theme-background-color); */
    font-size: 140%;
    text-align: center;
    font-size: 105%;
    padding: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

/*---- TWOAUTH  */
.overlay .container.modal.center.TwoAuthCode {
    max-width: 90%;
    padding: 40px 35px 35px;
    background: linear-gradient(145deg, var(--background-color) 0%, var(--theme-background-color-lite) 50%, var(--background-color) 100%);
    background: linear-gradient(145deg, #2b2c2f 0%, #832c2c 50%, #2b2c2f 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: dotted 1px var(--border-color);
    border-radius: var(--border-radius-default);
    animation: modalSlideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* height: 280px; */
    background-color: #ffd7001a;
    opacity: 0.7;
    backdrop-filter: var(--backdrop-filter);
}

    .overlay .container.modal.center.TwoAuthCode input {
        text-align: center;
        font-size: 32px;
        width: 116px;
        border: none;
    }
        .overlay .container.modal.center.TwoAuthCode input:focus-visible {
            border: none;
            outline: none;
        }
        /* Стиль для label */
        .overlay .container.modal.center.TwoAuthCode .label {
            text-transform: uppercase;
        }


/* Анимация появления - всплытие сверху с эффектом пружины */
@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-80px);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(8px);
    }

    80% {
        transform: translate(-50%, -50%) translateY(-4px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .overlay .container.modal.center.TwoAuthCode {
        width: 92%;
        padding: 30px 20px 25px;
    }

        .overlay .container.modal.center.TwoAuthCode .text-field__input {
            max-width: 200px;
            font-size: 20px;
            padding: 12px 14px;
            letter-spacing: 6px;
        }
}


.no_connect_banner {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 100%;
    height: 100%;
    display: block;
    /* margin: auto; */
    /* top: 50%; */
    background-color: white;
    background-image: url('img/no_connect.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30%;
    opacity: 0.3;
    z-index: 9999999;
}

    .no_connect_banner:before {
        content: "internet no connected";
        text-align: center;
        display: block;
        top: 100px;
        margin: auto;
        margin-top: 20%;
        color: black;
        font-size: 71px;
    }

/*Auth*/


.authorization {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    padding: 0px;
}


.authorization .auth_form {
    width: 100%;
    max-width: 340px;
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: white;
    overflow: hidden;
    top: 10px;
    left: 10px;
    position: absolute;
}

        .authorization .auth_form input {
            width: 80%;
            padding: 10px 20px;
            margin-bottom: 5px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            font-size: 15px;
      
            transition: all 0.3s ease;
        }

            .authorization .auth_form input::placeholder {
                color: #94a3b8;
            }

            .authorization .auth_form input:focus {
                outline: none;
                border-color: #60a5fa;
                background: rgba(255, 255, 255, 0.1);
                box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
            }

    .authorization .auth_form .button {
        width: 80%;
        padding: 16px;
        background-color: var(--color-meta);
        color: white;
        font-size: 16px;
        cursor: pointer;
        margin: auto;
        margin-top: 10px;
    }


    /* Анимация появления */
    .authorization .auth_form {
        animation: slideUp 0.5s ease-out;
    }



@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ссылки */
.auth-links {
    margin-top: 20px;
    text-align: center;
}

    .auth-links a {
        color: #3b82f6;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s ease;
    }

        .auth-links a:hover {
            color: #2563eb;
        }

/* Разделитель */
.auth-divider {
    margin: 25px 0;
    position: relative;
    text-align: center;
    color: #94a3b8;
}

    .auth-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e2e8f0;
    }

    .auth-divider span {
        background: white;
        padding: 0 15px;
        position: relative;
    }
/**------*/

.auth_page .password_change_form {
    overflow: clip;
    width: 30%;
    padding: 2% 4%;
    min-width: 400px;
    border-radius: var(--border-radius-default);
}
/* Общие стили для контейнера */
    .auth_page .password_change_form .password_change_form {
        max-width: 400px;
        margin: 0 auto;
        padding: 30px;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

/* Стили для полей ввода */
    .auth_page .password_change_form .text-field__input {
        width: 100%;
        padding: 15px 20px;
        margin-bottom: 20px;
        border: var(--border);
        border-radius: 10px;
        background-color: white;
        font-size: 16px;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

        .auth_page .password_change_form .text-field__input:focus {
            outline: none;
            border-color: #4a6cf7;
            box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
        }

        .auth_page .password_change_form .text-field__input::placeholder {
            padding: 2%;
            overflow: clip;
        }

/* Стили для кнопки */
    .auth_page .password_change_form .button.save {
        width: 100%;
        padding: 16px 20px;
        background: linear-gradient(135deg, #4a6cf7 0%, #3a56d4 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: relative;
        overflow: hidden;
    }

    /* Иконка для кнопки (если нужно) */
        .auth_page .password_change_form .button.save::before {
            content: '✓';
            font-size: 18px;
            font-weight: bold;
        }

        .auth_page .password_change_form .button.save:hover {
            background: linear-gradient(135deg, #3a56d4 0%, #2a46c4 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(58, 86, 212, 0.3);
        }

        .auth_page .password_change_form .button.save:active {
            transform: translateY(0);
        }

    /* Анимация загрузки для кнопки */
        .auth_page .password_change_form .button.save.loading {
            pointer-events: none;
            opacity: 0.8;
        }

            .auth_page .password_change_form .button.save.loading::after {
                content: '';
                position: absolute;
                width: 20px;
                height: 20px;
                border: 2px solid white;
                border-top-color: transparent;
                border-radius: 50%;
                animation: spin 0.8s linear infinite;
            }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Дополнительные стили для сообщений */
.auth_page .password_change_form .password_change_form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a6cf7, #3a56d4);
    border-radius: 15px 15px 0 0;
}

/* Адаптивность */
@media (max-width: 480px) {
    .password_change_form {
        padding: 20px;
        margin: 20px;
    }

    .text-field__input,
    .button.save {
        padding: 14px 16px;
    }
}

/* Дополнительный эффект при фокусе */
.auth_page .password_change_form .text-field__input:focus {
    transform: translateY(-1px);
}

/* Стиль для отключенного состояния */
.auth_page .password_change_form .button.save:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Анимация появления формы */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth_page .password_change_form .password_change_form {
    animation: fadeIn 0.5s ease-out;
}

/* CSS для иконок */
.auth_page .password_change_form .input-with-icon {
    position: relative;
    margin-bottom: 4px;
}

    .auth_page .password_change_form .icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 18px;
    }
/*----------------------------*/

.home_menu_container {

}
    .home_menu_container .button {
        display: inline-block;
        width: 200px;
        background-color: var(--modal-background-color);
    }
/*--DATAGRID---*/
.workplace {
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
    top:0px;
}
            .workplace .workplace_left_menu_panel {
               /* background:var(--background-color-left-panel);*/
                display: block;
                position: relative;
                top: 0px;
                width: 42px;
                /*border: var(--border);
                border-width: 0px 1px 0px 0px;*/
                height: 100%;
                z-index: 1000;
            }
                .workplace .workplace_left_menu_panel .button {
                    width: 34px;
                    height: 34px;
                    position: relative;
                    left: -1px;
                    margin-top: 3px;

                    margin-bottom: 4px;
                }
                    .workplace .workplace_left_menu_panel .button.home {
                        background-image: url('img/home.png');
                    }
                .workplace .workplace_left_menu_panel .common_group_action_add {
                    background-image: url('img/a.png');
                    background-size: 32px;
                }
.workplace .workplace_left_menu_panel .button.contragent_add {
    background-image: url('img/contragent_add.png');
}
                    .workplace .workplace_left_menu_panel .button.contragent_find {
                        background-image: url('img/contragent_find.png');
                    }
                    .workplace .workplace_left_menu_panel .button.browser_payment {
                        background-image: url('img/payment.png');
                        background-size: 28px;
                    }
                    .workplace .workplace_left_menu_panel .button.browser_nto {
                        background-image: url('img/cart.png');
                        background-size: 38px;
                    }
                    .workplace .workplace_left_menu_panel .button.crm_funnels{
                        background-image: url('img/funnel.png');
                        background-size: 26px;
                    }
                    .workplace .workplace_left_menu_panel .button.messages {
                        background-image: url('img/massage_task.png');
                        background-size: 27px;
                    }
                    .workplace .workplace_left_menu_panel .button.contragents {
                        background-image: url('img/clients.png');
                        background-size: 28px;
                    }
                    .workplace .workplace_left_menu_panel .button.cont {
                        background-image: url('img/massage_task.png');
                        background-size: 28px;
                    }
                    .workplace .workplace_left_menu_panel .button.browser_scanevents {
                        background-image: url('img/directions.png');
                        background-size: 32px;
                    }
                    .workplace .workplace_left_menu_panel .button.browser_workeruseds {
                      
                        background-image: url('img/train.png');
                        background-size: 26px;
                    }
                .workplace .workplace_left_menu_panel .button.browser_auditevents {
                    background-image: url('img/audit.png');
                    background-size: 28px;
                }
                .workplace .workplace_left_menu_panel .button.browser_sipevents {
                    background-image: url('img/sip_events.png');
                    background-size: 28px;
                }
.workplace .workplace_left_menu_panel .button.current_user_settings {
    background-image: url('img/tools3.png');
    background-size: 26px;
}
                    .workplace .workplace_left_menu_panel .button.presencemonitor {
                        background-image: url('img/presence.png');
                        background-size: 26px;
                    }
                    .workplace .workplace_left_menu_panel .button.reports {
                        background-image: url('img/report.png');
                        background-size: 32px;
                    }
.workplace .workplace_bottompanel {
    position: fixed;
    bottom: 0px;
    display: flex;
    min-width: 101%;
    padding: 0;
    height: 467px;
    left: 0;
    z-index: 3;
}

    .workplace .workplace_bottompanel .datagrid .table_container {
        max-width: 80%;
    }
                .workplace .workplace_bottompanel .cssload-container {
                    top: 160px;
                }
        .workplace .workplace_bottompanel .slider {
                    position: absolute;
                    width: 100%;
                    padding: 2px 3px;
                    top: -19px;
                    text-align: center;
                    color: #fff;
                    cursor: pointer;
                    /* height: 24px; */
                    display: block;
                    text-transform: uppercase;
                    /* TODO: отключил пока slider */
                    display:none;
                }
.slider {
    background-color: transparent;
}
                    .slider:hover{
                        background-color:var(--theme-background-color);
                        cursor:pointer;
                    }
.workplace .workplace_bottompanel {
    position: relative;
    bottom: 0px;
    display: flex;
    min-width: 101%;
    padding: 0;
    height: 467px;
    left: 0;
    z-index: 3;

    border: var(--border);
}
.workplace .workplace_bottompanel:before {
    content:"";
    background-color: var(--background-color-blur2);
    backdrop-filter: var(--backdrop-filter);
    width:100%;
    height:100%;
    position:absolute;
}

                .workplace .workplace_bottompanel > div {
                    padding: 5px;
                    border: var(--border);
                    border-width: 0px 0px 0px 0px;
                }

                .workplace .workplace_bottompanel .coll1 {
                    width: 24%;
                }
                    .workplace .workplace_bottompanel .coll1 .local_settings td {
                        border-width: 0px 0px 1px 0px;
                    }
.workplace .workplace_bottompanel .coll2 {
    width: 76%;
    position: relative;
}
                    .workplace .workplace_bottompanel .coll2.datagrid > div.tools {

                    }
                        .workplace .workplace_bottompanel .coll2.datagrid > div.tools .filter_extend_open_icon.filter {
                            position: absolute;
                            top: 2px;
                            left: 378px;
                        }
                        .workplace .workplace_bottompanel .coll2.datagrid > div.tools .filter_extend_savetemplate_icon {
                            position: absolute;
                            top: -3px;
                            left: 398px;
                        }

.workplace .workplace_bottompanel .workplace_left_treeview_panel_wiget_tooglebuttons {
    position: absolute;
    top: 1px;
    left: 297px;
    display: block;
    width: 88px;
    height: 26px;
}
        .workplace .workplace_bottompanel .workplace_left_treeview_panel_wiget_tooglebuttons .toggle {
            width: 32px;
            height: 39px;
            display: inline-block;
            background-color: transparent;
            background-size: 24px;
            background-position: center;
            background-color: var(--button-animate-bg-color);
        }
            .workplace .workplace_bottompanel .workplace_left_treeview_panel_wiget_tooglebuttons .toggle.active {
                border: 1px solid var(--theme-color-1);
                border-width: 0px 0px 2px 0px;
                border-radius: 0;
            }
 
    .workplace .workplace_bottompanel .workplace_left_treeview_panel_wiget_tooglebuttons .toggle{

    }
        .workplace .workplace_bottompanel .workplace_left_treeview_panel_wiget_tooglebuttons .toggle:nth-child(1) {
            background-image: url(img/peoples.png);
        }
        .workplace .workplace_bottompanel .workplace_left_treeview_panel_wiget_tooglebuttons .toggle:nth-child(2) {
            background-image: url(img/goods.png);
            background-size: 30px;
        }
        .workplace .workplace_bottompanel .coll2 .tools .pager {
    display: inline-block;
}

                    .workplace .workplace_bottompanel .coll2 .tools .filter_container {
                        display: inline-block;
                        width: 50%;
                    }
    .workplace .workplace_bottompanel .coll2 .tools .button.add, .form_browser_basic_tables .button.add {
        display: inline-block;
        /* background-color: transparent; */
        position: relative;
        top: 1px;
    }

    .workplace .workplace_bottompanel .coll2 .tools .filter_container .find_input, .form_browser_basic_tables .find_input{
        width: 260px;
        display:inline-block;
    }


.workplace .dashboard_workplace {
    position: absolute;
    top: 0px;
    right: 0%;
    display: block;
    width: 70%;
    overflow: auto;
    max-height: 64%;

}
    .workplace .dashboard_workplace .card {
        width: 300px;
        float: left;
        margin: 3px;
        overflow: auto;
        height: 286px;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 6px #0000004d;
        height: 280px;
        background-color: var(--dashboard-card-bacground-color);
        /* opacity: 0.7; */
        backdrop-filter: var(--backdrop-filter);
      
    }

        .workplace .dashboard_workplace .card.systemevents {
        }
    .workplace .dashboard_workplace .value, .content.dashboard .value {
        font-size: 100%;
        margin: 0px;
        padding: 0px;
        color: var(--fore-color);
        font-weight: normal;
    }
    .workplace .dashboard_workplace .progress-bar, .content.dashboard .progress-bar {
        height: 5px;
        padding: 0px;
        margin: 4px;
        background-color: #80808029;
    }

            /*  ###################  activity_monitor_service ###############################################*/
            .workplace .dashboard_workplace .card.activity_monitor_service {
            }
            .workplace .dashboard_workplace .card.activity_monitor_service .current_user_tools {
                width: 100%;
                height: min-content;
                display: block;
            }

                .workplace .dashboard_workplace .card.activity_monitor_service .current_user_tools > span {
                    display: inline-block;
                    width: 80%;
                    padding: 0px;
                    position: relative;
                    top: -10px;
                    color: var(--color-blue);
                    font-size: 16px;
                    /* opacity: unset; */
                    font-weight: bold;
                }
            .workplace .dashboard_workplace .card.activity_monitor_service .current_user_tools .logout {
                background-image: url('img/exit.png');
                width: 28px;
                height: 28px;
                display: inline-block;
            }
                .workplace .dashboard_workplace .card.activity_monitor_service .item {
                    display:block;
                
                }
    .workplace .dashboard_workplace .card.activity_monitor_service .item > span {
        display: inline-block;
        width:40%;
    }
                    .workplace .dashboard_workplace .card.activity_monitor_service .item .meta_container {
                        display: inline-block;
                        width: 60%;
                    }
    .workplace .dashboard_workplace .card.activity_monitor_service .meta_container .meta {
        font-size: 11px;
    }
    .workplace .dashboard_workplace .card.activity_monitor_service .meta_container .date {
  
    }
    .workplace .dashboard_workplace .card.activity_monitor_service .meta_container .ip {
    }
        .workplace .dashboard_workplace .card.activity_monitor_service .meta_container .ip:before {
            content: "IP";
            color: var(--theme-lera-color-yellow);
            margin-left:3px;
     
        }

        .workplace .dashboard_workplace .card.localsettings .onoff-box-main {
            display: inline-block;
        }
/*  ###################  end activity_monitor_service ###############################################*/
.modal.container.control_commongroup_selector > .button {
    width: min-content;
    margin: auto;
    margin-top: 10px;
}
/*---------------мини обозреватель-----------------*/
.form_browser_basic_tables .treeview_panel {
    display: inline-block;
    float: left;
    width: 20%;
    border: var(--border);
    border-width: 0px 1px 0px 0px;
    overflow: auto;
    height: 94%;
}
.form_browser_basic_tables .grid_panel {
    top:0px;
    width: 80%;
    height: 94%;
    display: inline-block;
    position: absolute;
}
    .form_browser_basic_tables .grid_panel .table_container {
        max-width: 92%;
        min-height: 80%;
    }
    .form_browser_basic_tables .grid_panel .fht-tbody {
     
    }
    .form_browser_basic_tables .grid_panel.datagrid .tools .pager {
        position: absolute;
        top: 12px;
        left: 60%;
    }
    .form_browser_basic_tables .grid_panel .tools .filter_container .filter_extend_open_icon {
        position: absolute;
        top: 2px;
        left: 300px;
    }

.logviewer .table_container {
    height: 90%;
}
/*----------------------------LEFT TREEVIEW PANEL------------------------------*/
.workplace_left_treeview_panel {
    position: fixed;
    top: 0;
    min-height: 526px;
    height: 105%;
    z-index: 11;
    padding-left: 0px;
    background-color: var(--background-color-blur);
    backdrop-filter: var(--backdrop-filter);
    min-width: 288px;
    border: var(--border);
    border-width: 0px 1px 0px 0px;
   
}
    .workplace_left_treeview_panel .slider {
        position: absolute;
        right: -21px;
        display: block;
        height: 100%;
        width: 19px;
        /* TODO: отключил пока slider */
        display:none;
        
    }
        .workplace_left_treeview_panel .slider:hover {
            
            
        }
    .workplace_left_treeview_panel .tools {
        width: 100%;
        text-align: center;
    }
        .workplace_left_treeview_panel .tools .toggle.active {
            color: var(--fore-color);
            border: 1px solid var(--theme-color-1);
            border-width: 0px 0px 2px 0px;
        }
        .workplace_left_treeview_panel .tools .button {
            width: 62px;
            height: 48px;
            display: inline-block;
            background-color: transparent;
            background-size: 30px;
            background-position: center;
            background-color: var(--button-animate-bg-color);
            border-radius: 0;
        }
        .workplace_left_treeview_panel .tools .button:nth-child(1) {
            background-image: url('img/peoples.png');
        }
            .workplace_left_treeview_panel .tools .button:nth-child(2) {
                background-image: url('img/goods.png');
                background-size:37px;
            }

    .workplace_left_treeview_panel .sheet.treeview_container {
        display: block;
        width: 87%;
        float: right;
        overflow: auto;
        padding: 0px;
        height: 88%;
    }
    /*----------------------------/LEFT TREEVIEW PANEL------------------------------*/
input[type=text].phone {
    width: 140px;
    font-size: 106%;
    color: var(--theme-color-1);
}


.form_contragent{

}
.ui-dialog .form_contragent_static_panel1 {
    position: absolute;
    width: 0px;
    left: -42px;
    top: 0px;
}
    .ui-dialog .form_contragent_static_panel1 .button {
        width: 28px;
        height: 28px;
        cursor:pointer;
    }
    .ui-dialog .form_contragent_static_panel1 .button.chat {
        background-image: url('img/chat2.png');
    }

.form_contragent .onoff-box-main {
    display: block;
}
    .form_contragent .container {
        margin: 3px;
        float: left;
    }
        .form_contragent .container.contacts {
          max-width:270px;
          position:relative;

        }
            .form_contragent .container.contacts .sip_button_call {
                display: block;
                width: 32px;
                height: 32px;
                position: absolute;
                top: -2px;
                right: 6px;
            }
            .form_contragent .container.contacts .sip_button_call::before {
                display:block;
                content: "📞";
                width:32px;
                height:32px;
            }
            
.form_contragent .link.path {
    display: flex;
    width: 100%;
}
.form_contragent .contents_container .info_midle {
    width:90%;
}
    .form_contragent .contents_container .info_midle [data-sysname=DescriptionInfo] textarea {
        height:50px;
    }
    .form_contragent .contents_container .info_midle input[type=number].ReservationSum {
        width: 100px;
    }
    .form_contragent .contents_container .info_midle .label.ReservationSum {
        display: inline-block;
    }
        

.form_contragent .container .related_rell_container {
}
    .form_contragent .container .related_rell_container .item {
    }
  
.form_contragent .panel1, .form_nto .panel1 {
    /* display: inline-table; */
    height: 98%;
    /* float: left; */
    width: 178px;
    position: absolute;
    top: 0px;
    left: 0px;
}
    .form_contragent .panel1 .file_upload {
        position: absolute;
        background-color: var(--background-color-left-panel);
        top: 10px;
        display: block;
        width: 32px;
        z-index: 10;
    }
.form_nto .panel1 .button_container {
    position: relative;
    top: 16px;
}
    .form_contragent .panel1 .button_container .debt_info, .form_nto .panel1 .button_container .debt_info {
        margin: 0px;
        position: relative;
        margin: 6px auto;
    }
    .form_nto .panel1 .account_balance {
        position: absolute;
        bottom: 10px;
        margin-left: 10px;
        cursor:pointer;
    }
    .form_nto .panel1 .account_balance:hover {
    color:var(--color-blue);
    }
    /*------------------------------------------------------*/
/* ===== CRM TOOLS (блок кнопок) ===== */
.contragent_crm_tools {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
    user-select: none;
}

    .contragent_crm_tools .button {
        padding: 13px 0px;
        border: none;
        border-radius: 60px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid rgba(255, 255, 255, 0.06);
        /* background: rgba(255, 255, 255, 0.03); */
        color: #d3def0;
        background-size: 25px;
        background-repeat: no-repeat;
        background-position: center;
        display: block;
        height: 26px;
        width: 36px;
        position: relative;
        margin: 0;
    }

.form_nto .contragent_crm_tools {
    position: relative;
    /* top: 130px; */
    left: 4px;
}
.form_contragent .contragent_crm_tools {
    position: absolute;
    top: 130px;
    left: -6px;
}

.contragent_crm_tools .button:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.15);
}

        /* ===== ИКОНКИ ДЛЯ КНОПОК ===== */

        /* IP телефония */


        .contragent_crm_tools .button.sip_call_icon {
           
            border-color: rgba(60, 180, 255, 0.2);
        }


            .contragent_crm_tools .button.sip_call_icon:hover {
                border-color: rgba(60, 180, 255, 0.4);
                background: rgba(60, 180, 255, 0.1);
            }

        /* Комментарии и задачи */
        .contragent_crm_tools .button.comments_open_icon {
   
            border-color: rgba(255, 215, 0, 0.2);
        }

            .contragent_crm_tools .button.comments_open_icon:hover {
                border-color: rgba(255, 215, 0, 0.4);
                background: rgba(255, 215, 0, 0.1);
            }

        /* Покупки (NTO) */
.contragent_crm_tools .button.nto_icon {
    background-image: url(img/cart.png);
    border-color: rgba(255, 175, 0, 0.15);
    background-size: 22px;
        }

            .contragent_crm_tools .button.nto_icon:hover {
                border-color: rgba(255, 175, 0, 0.3);
            }

        /* Сеансы и чеки */
        .contragent_crm_tools .button.workeruseds_icon {
           
            border-color: rgba(53, 217, 48, 0.15);
        }

            .contragent_crm_tools .button.workeruseds_icon:hover {
                border-color: rgba(53, 217, 48, 0.3);
                background: rgba(53, 217, 48, 0.1);
            }

/* ===== ПОЗИЦИОНИРОВАНИЕ ===== */

.form_nto .contragent_crm_tools :before, .form_contragent .contragent_crm_tools :before {
    left: 8px;
}
.form_nto .contragent_crm_tools :before, .form_contragent .contragent_crm_tools :before {
    
}
.form_nto .contragent_crm_tools .workeruseds_icon:before, .form_contragent .contragent_crm_tools .workeruseds_icon:before {

    font-size: 16px;
    margin-top: -2px;
    margin-left: -3px;
}

.table_container .contragent_crm_tools {
    width: 125px;
    margin: 0px;
    padding: 0px;
    gap: 1px;
    left: -5px;
}
    .table_container .contragent_crm_tools .button {
        width: 22px;
        height: 22px;
        border: none;
        position: relative;
        top: -1px;
        margin-left: 8px;

    }
        .table_container .contragent_crm_tools .button::before {
            left: 2px;
        }
        .table_container .contragent_crm_tools .button.sip_call_icon::before {
            left: 8px;
        }

.form_crm_funnels .wrapper .funnel .stack .funnel_item.worktask .contragent_crm_tools {
    top: -8px;
    margin: auto;
    gap: 3px;
    left: 5px;
}
    .form_crm_funnels .wrapper .funnel .stack .funnel_item.worktask .contragent_crm_tools .button {
        width: 50px;
        margin: 0;
    }
        .form_crm_funnels .wrapper .funnel .stack .funnel_item.worktask .contragent_crm_tools .button::before {
            left: 16px;
        }
.form_crm_funnels .wrapper .funnel .stack .funnel_item .contragent_crm_tools {

}

    .form_crm_funnels .wrapper .funnel .stack .funnel_item .contragent_crm_tools .button {
        width: 27px;
        left: 5px;
    }
.form_crm_funnels .wrapper .funnel .stack .funnel_item:not(.worktask) .contragent_crm_tools {
    left: 4px;
}
.form_crm_funnels .wrapper .funnel .stack .funnel_item:not(.worktask) .contragent_crm_tools .button::before {
    left: 4px;
  
}


/* ===== АДАПТИВ ДЛЯ CRM TOOLS ===== */
/* Средние экраны */
@media (max-width: 860px) {
    .contragent_crm_tools .button {
        padding: 6px 18px;
        height: 28px;
        width: 56px;
        background-size: 26px;
        font-size: 13px;
    }

    .contragent_crm_tools {
        gap: 6px;
    }
}

/* Маленькие экраны */
@media (max-width: 560px) {
    .contragent_crm_tools .button {
        padding: 5px 14px;
        height: 24px;
        width: 48px;
        background-size: 22px;
        font-size: 12px;
    }

    .contragent_crm_tools {
        gap: 5px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
    .contragent_crm_tools .button {
        padding: 4px 12px;
        height: 20px;
        width: 40px;
        background-size: 18px;
        font-size: 10px;
    }

    .contragent_crm_tools {
        gap: 4px;
    }
}
        /*----------------------------*/

.form_contragent .panel1 .button_container {
    display: block;
    position: absolute;
    top: 172px;
    left: 20px;
}

            .form_contragent .panel1 .button_container .button, .form_nto .panel1 .button_container .button {
                width: 130px;
                margin: 4px auto;
                margin-top: 3px;
            }

        .form_nto .panel1 .button_container .sale_begin_button {
            background-color: transparent;
            color: var(--fore-color);
        }

        .form_nto .panel1 .button_container .button.prolongation {
            background-color: var(--color-yellow);
            color: black;
            position: relative;
        }

            .form_nto .panel1 .button_container .button.prolongation::before {
                content: "♻";
                color: var(--background-color);
                font-size: 24px;
                position: absolute;
                top: 0px;
                left: 6px;
            }

        .form_nto .panel1 .button_container .buttons_direction_event {
            text-align: center;
            margin: 3px;
            background-image: url(img/directions.png);
            /* background-color: greenyellow; */
            background-position: left;
            background-size: 28px;
        }

        .form_nto .panel1 .button_container .buttons_direction_event {
            border: var(--border);
            margin: auto;
        }

            .form_nto .panel1 .button_container .buttons_direction_event:hover {
                cursor: pointer;
                background-color: var(--theme-lera-color-yellow);
                color: black;
            }

        .form_contragent .panel2, .form_nto .panel2 {
            display: inline-block;
            width: 100%;
            height: 98%;
            overflow: auto;
            position: relative;
            left: 0px;
            padding-left: 180px;
        }

            .form_nto .panel2 .lockerkeyinfo_container {
                position: absolute;
                top: 100px;
                right: 0px;
                height: 100px;
            }
                .form_nto .panel2 .lockerkeyinfo_container .lockerkeyinfo {
                    position: relative;
                    right: 10px;
                    height: 48px;
                    margin: 20px 5px;
                    border: var(--border);
                    border-radius: var(--border-radius-default);
                    width: 140px;
                    background-color: var(--background-color-blur);
                    backdrop-filter: var(--backdrop-filter);
                }

                    .form_nto .panel2 .lockerkeyinfo_container .lockerkeyinfo::before {
                        position: absolute;
                        top: -20px;
                        text-transform: lowercase;
                        text-align: center;
                    }
                    .form_nto .panel2 .lockerkeyinfo_container .lockerkeyinfo.keytype_1::before {
                        content: "Шкафчик";
                    }
                    .form_nto .panel2 .lockerkeyinfo_container .lockerkeyinfo.keytype_2::before {
                        content: "Ячейка";
                    }
                    .form_nto .panel2 .lockerkeyinfo_container .lockerkeyinfo::after {
                        content: "🔑";
                        font-size: 20px;
                        position: absolute;
                        top: 10px;
                    }

                    .form_nto .panel2 .lockerkeyinfo_container .lockerkeyinfo .header {
                        position: absolute;
                        background-color: var(--color-blue);
                        display: block;
                        width: 64px;
                        text-align: center;
                        /* height: 36px; */
                        top: -21px;
                        left: 64px;
                        color: black;
                        cursor: pointer;
                        font-size: 14px;
                    }

                    .form_nto .panel2 .lockerkeyinfo_container .lockerkeyinfo input[type=text], .form_nto .panel2 .lockerkeyinfo .label.input {
                        position: absolute;
                        font-size: 20px;
                        margin: auto;
                        text-align: center;
                        width: 96px;
                    }

                    .form_nto .panel2 .lockerkeyinfo_container .lockerkeyinfo .save {
                        background-color: var(--color-green);
                        background-image: url(img/save.png);
                        background-size: 18px;
                        text-align: center;
                        width: 95px;
                        left: -2px;
                        position: relative;
                        padding: 11px;
                        top: 34px;
                    }

        .form_contragent .panel2 {
            width: 98%;
        }

            .form_contragent .panel2 .fio {
                display: inline-table;
                width: 160px;
            }

            .form_contragent .panel2 .birth {
                display: inline-table;
                display: block;
                width: 160px;
            }

                .form_contragent .panel2 .birth .sex {
                    width: 72px;
                }

        .form_contragent .tabs {
            border: var(--border);
            border-width: 0px 0px 0px 1px;
        }

        .form_contragent .contragent_photo, .form_nto .contragent_photo {
            display: block;
            width: 172px;
            height: 140px;
            margin: auto;
            border: none;
        }

        .form_contragent .container .relations {
            min-height: 100px;
            min-width: 400px;
        }

        .contragent_photo {
            background-repeat: no-repeat;
        }


            .contragent_photo.webcam:hover {
                background-image: url('img/webcam_icon.png') !important;
                cursor: pointer;
            }
        /*---------------------Nomenclature---------------------------*/

        .form_nomenclature {
            position: relative;
        }

            .form_nomenclature input[type=number] {
                width: 80px;
            }

            .form_nomenclature textarea, .form_nomenclature input {
                max-width: 98%;
                margin: auto;
                display: block;
            }

            .form_nomenclature .path {
                margin: 6px 10px;
            }

            .form_nomenclature .info_names {
                display: block;
                width: 90%;
            }

            .form_nomenclature .price_container {
                display: inline-block;
                width: 260px;
            }
                .form_nomenclature .price_container > div {
                    margin: 3px 0px;
                }
                    .form_nomenclature .price_container > div > .label {
                        min-width: 120px;
                    }
            .form_nomenclature .label {
                display: inline-block;
            }

            .form_nomenclature input[type=number] {
                margin: 0px 10px;
                display: inline-block;
            }

            .form_nomenclature .price_container .price {
                font-weight: bold;
                font-size: 120%;
            }

            .form_nomenclature .price_container .discount_type {
                display: inline-block;
                width: 100px;
            }

            .form_nomenclature .container .relations {
                min-height: 200px;
            }

            .form_nomenclature .info_container .check_container .onoff-box-main {
                display: inline-block;
                border: 1px solid var(--color-meta);
                border-width: 0px 1px 0px 0px;
                padding: 2px 10px;
                min-width: 160px;
            }

        .saleparam_calculate {
            min-width: 440px;
        }

            .saleparam_calculate .wrapper {
                display: block;
                width: 640px;
                margin: auto;
            }

            .saleparam_calculate h2 {
            }

            .saleparam_calculate .label {
                text-align: left;
                text-transform: uppercase;
                font-size: 140%;
                display: inline-block;
                width: 181px;
                position: relative;
                top: -7px;
            }

            .saleparam_calculate span, .saleparam_calculate input {
                font-size: 400%;
                text-align: center;
                width: 240px;
                display: inline-block;
                margin: 3px 20px;
            }

            .saleparam_calculate .label {
                border: none;
                width: 180px;
            }

            .saleparam_calculate .button.submit {
                display: block;
                width: 100px;
                /* margin: 15px 0px; */
                margin: auto;
                margin-top: 20px;
                padding: 12px 0px;
                width: 200px;
                margin-bottom: 10px;
            }

        .saleparam_identifier_input {
            min-width: 400px;
            padding: 20px 0px 20px 0px;
        }

            .saleparam_identifier_input fieldset {
                float: none;
                width: 80%;
                padding: 10px;
                display: block;
                margin: auto;
                margin-top: 10px;
            }

                .saleparam_identifier_input fieldset.personal .label {
                    color: var(--color-meta);
                    width: 100px;
                    display: inline-block;
                }

                .saleparam_identifier_input fieldset.personal .barcode {
                    color: var(--color-green);
                    font-size: 140%;
                    font-weight: bold;
                    position: relative;
                    top: 1px;
                }

            .saleparam_identifier_input input[type=text] {
                width: 280px;
                font-size: 300%;
                text-align: center;
                border: none;
                padding: 16px 0px 16px 0px;
            }

            .saleparam_identifier_input .button.submit {
                display: block;
                width: 100px;
                /* margin: 15px 0px; */
                margin: auto;
                margin-top: 20px;
                padding: 12px 0px;
                width: 200px;
                margin-bottom: 10px;
            }
        /*----------------------------ОРДЕР -----------------------------*/
        .form_order {
        }

            .form_order .tab_info .description_container .update {
                position: absolute;
                right: 20px;
                top: 20px;
            }

            .form_order .tab_info .description_container {
                display: block;
                height: fit-content;
            }

                .form_order .tab_info .description_container table {
                    display: inline-block;
            
                }

                    .form_order .tab_info .description_container table td {
                        padding: 3px 10px;
                    }

                        .form_order .tab_info .description_container table td input {
                        }

                .form_order .tab_info .description_container .contragent_photo {
                    display: inline-block;
                    margin: 0px 10px 0px 0px;
                    width: 79px;
                    height: 52px;
                }


            .form_order .tab_info .table_container {
                display: block;
                width: 100%;
                border: var(--border);
                /* min-height: 257px; */
                position: relative;
                /* max-width: 98%; */
                overflow: auto;
                height: 54%;
            }
            .form_order .tab_info .sale_begin_button {
                display:inline-block;
            }
            .form_order .tab_info .print_order {
                display: inline-block;
                width: max-content;
                border: var(--border);
                position: relative;
                padding-left: 30px;
            }
                .form_order .tab_info .print_order::before {
                    font-size: 22px;
                    position: absolute;
                    padding: 0px;
                    left: 4px;
                    top: 1px;
                }

                .form_order .tab_info .table_container td .checkbox {
                    position: relative;
                }

                .form_order .tab_info .table_container td .sum {
                    font-size: 140%;
                    width: 80px;
                    color: var(--color-green);
                }

                .form_order .tab_info .table_container td .del::before {
                    font-size: 20px;
                    position: relative;
                    top: 0px;
                }

                .form_order .tab_info .table_container td .print {
                    width: 20px;
                    padding: 0px
                }

                    .form_order .tab_info .table_container td .print::before {
                        font-size: 20px;
                        position: relative;
                        top: 0px;
                    }

                .form_order .tab_info .table_container td .sum.red {
                    color: var(--color-red);
                }

            .form_order .tab_info .bottom_container {
                display: block;
                width: 98%;
                position: absolute;
                margin: -10px;
            }

                .form_order .tab_info .bottom_container .button {
                    display: inline-block;
                    width: 114px;
                    margin: 3px;
                    font-size: 90%;
                }

                .form_order .tab_info .bottom_container .total_container {
                }

                    .form_order .tab_info .bottom_container .total_container .label {
                        text-transform: uppercase;
                        color: var(--color-skyblue);
                        font-size: 20px;
                        margin-right: 20px;
                    }

                    .form_order .tab_info .bottom_container .total_container span.return {
                        color: var(--fore-color);
                        font-size: xx-large;
                    }

                    .form_order .tab_info .bottom_container .total_container .sum {
                        display: inline-block;
                        font-size: xx-large;
                        vertical-align: baseline;
                        margin-right: 20px;
                        width: 126px;
                    }

                        .form_order .tab_info .bottom_container .total_container .sum.bad {
                            text-decoration: line-through;
                            color: red;
                        }
                /* Эмодзи для каждой кнопки */
                .form_order .tab_info .bottom_container .button:before {
                    font-size: 24px;
                    position: relative;
                    left: -9px;
                }

                .form_order .tab_info .bottom_container .button.pt_0:before {
                    content: "📄";
                }

                .form_order .tab_info .bottom_container .button.pt_1:before {
                    content: "💵";
                }

                .form_order .tab_info .bottom_container .button.pt_2:before {
                    content: "💳";
                }

                .form_order .tab_info .bottom_container .button.pt_5:before {
                    content: "💰";
                }

                .form_order .tab_info .bottom_container .button.pt_4:before {
                    content: "🔄";
                }

                .form_order .tab_info .bottom_container .button.pt_6:before {
                    content: "📱";
                }
                .form_order .tab_info .bottom_container .button.pt_8:before {
                    content: "🔗";
                }
                /* Эффект при наведении на эмодзи */
                .form_order .tab_info .bottom_container .button:hover:before {
                    transform: scale(1.08); /* уменьшено (было 1.1) */
                }
        /*---------------NTO----------------*/
        .form_nto .tab_info .description_container {
            display: block;
            height: fit-content;
        }

            .form_nto .tab_info .description_container table {
                display: inline-block;
            }

                .form_nto .tab_info .description_container table td {
                    border-width: 0px 0px 1px 0px;
                    padding: 0px 3px;
                }

                    .form_nto .tab_info .description_container table td:nth-child(2) {
                        min-width: 200px;
                    }

                    .form_nto .tab_info .description_container table td .barcode {
                        font-size: 18px;
                        width: 160px;
                    }

                    .form_nto .tab_info .description_container table td .price {
                        font-size: 20px;
                        width: 160px;
                    }

                    .form_nto .tab_info .description_container table td .payment {
                        font-size: 18px;
                        width: 160px;
                    }

        .form_nto .workercomplete_edit_container {
        }

            .form_nto .workercomplete_edit_container .quantity {
                display: inline-block;
                width: 140px;
            }

            .form_nto .workercomplete_edit_container .photo_fio_container .contagent_photo {
            }

            .form_nto .workercomplete_edit_container input {
            }

            .form_nto .workercomplete_edit_container .label_info {
                width: 100px;
            }

            .form_nto .workercomplete_edit_container .container .inline_edit {
                width: 223px;
                display: inline-flex;
            }

            .form_nto .workercomplete_edit_container .photo_fio_container .contragent_photo {
                display: block;
                width: 38px;
                height: 38px;
                border-radius: 35px;
                float: left;
                margin-right: 10px;
            }

        .form_nto .workercomplete_items.datagrid {
            border: var(--border);
            position: absolute;
            top: 196px;
            height: 54%;
            overflow: auto;
            width: 96%;
        }

        .form_nto button.save {
            position: relative;
        }

        .form_nto .paymentschedule {
            position: relative;
        }

            .form_nto .paymentschedule .counter {
                display: table-row-group;
                position: absolute;
                top: 8px;
                width: max-content;
                left: 200px;
                text-transform: uppercase;
                color: var(--color-orangered);
            }

        .worker_selector {
            min-width: 300px;
            padding: 20px;
            overflow: unset;
        }

            .worker_selector .container {
                overflow: auto;
                height: 400px;
                display: block;
            }

            .worker_selector .contragent_photo {
                width: 54px;
                height: 54px;
                margin-top: 21px;
                border-radius: 35px;
                /* border: 2px solid var(--theme-lera-color-yellow); */
                background-size: cover;
                margin-right: 20px;
                margin-left: 5px;
                border: 1px solid #ffffff;
                transition: all 0.2s ease-in-out;
            }

            .worker_selector fieldset {
                padding: 5px;
                float: none;
                max-width: 500px;
                overflow: auto;
                max-height: 400px;
            }

                .worker_selector fieldset legend {
                    text-align: center;
                }

                .worker_selector fieldset .item {
                    display: block;
                    float: left;
                    margin: auto;
                    position: relative;
                    border: var(--border);
                    width: 226px;
                    min-height: 54px;
                    margin: 3px;
                    padding: 3px;
                    border-radius: var(--border-radius-default);
                }

                    .worker_selector fieldset .item:hover {
                        cursor: pointer;
                    }

                    .worker_selector fieldset .item .contragent_photo {
                        display: inline-block;
                        width: 62px;
                        height: 44px;
                        margin-right: 10px;
                        border: none;
                    }

                    .worker_selector fieldset .item .label {
                        position: relative;
                        display: inline-block;
                        top: -2px;
                    }

            .worker_selector .button {
                display: block;
                margin: auto;
                margin-top: 8px;
                width: max-content;
            }

        .account_form_add {
            padding: 20px;
        }

.acount_form_add input {
    border: 1px solid var(--theme-lera-color-yellow);
    width: 200px;
    font-size: 34px;
    text-align: center;
}

        .acount_button {
            background-color: transparent;
            position: relative;
            font-size: 90%;
        }

            .acount_button:before {
                content: "";
                background-image: url('img/wallet_green.png');
                display: block;
                width: 24px;
                height: 24px;
                position: absolute;
                background-size: 22px;
                background-repeat: no-repeat;
                left: 3px;
                top: 5px;
            }
        /*-------------BrowserBase-------*/
        .form_browser_base .datagrid {
            position: relative;
            height: 96%;
        }

            .form_browser_base .datagrid .table_container {
                min-height: 96%;
            }

            .form_browser_base .datagrid .cssload-container {
            }

            .form_browser_base .datagrid td.sum {
                color: var(--color-green);
                font-weight: 600;
                font-size: 110%;
            }

            .form_browser_base .datagrid td.sum {
                color: var(--color-green);
                font-weight: 600;
                font-size: 110%;
            }

                .form_browser_base .datagrid td.sum.type_0 {
                    color: gray;
                }

                .form_browser_base .datagrid td.sum.type_2 {
                    color: yellow;
                }

                .form_browser_base .datagrid td.sum.red {
                    color: var(--color-red);
                }

                .form_browser_base .datagrid td.sum.blue {
                    color: var(--color-blue);
                }
        /*----------------------------------------FUNNEL---------------------------------------------------------------*/
        .form_crm_funnels {
        }

            .form_crm_funnels .contents_container .content.conversion {
            }

                .form_crm_funnels .contents_container .content.conversion table.conversion_table {
                    width: 100%;
                    border-collapse: collapse;
                    font-size: 12px;
                    table-layout: auto;
                }

                    /* Стили для заголовков */
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th {
                        text-align: center;
                        font-weight: 600;
                        font-size: 11px;
                        white-space: nowrap;
                        border: 1px solid var(--color-meta);
                        position: sticky;
                        top: 0;
                        z-index: 1;
                        width: 20px;
                        min-width: 20px;
                        padding: 4px 2px;
                        background-color: var(--background-color-darkyellow);
                        color: white;
                    }
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(2),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table td:nth-child(2){
                            display:none;
                        }
                        /* Длинные названия колонок - перенос слов */
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(3),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(4),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(5),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(6),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(7),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(8),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(9),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(10),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(11),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(13),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(14),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(15),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(16) {
                            font-size: 10px;
                            max-width: 70px;
                            white-space: normal;
                            word-wrap: break-word;
                            line-height: 1.2;
                        }

                        /* Первые две колонки (пустые) - минимальная ширина */
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(1),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(2) {
                            width: 20px;
                            min-width: 20px;
                            padding: 4px 2px;
                        }

                        /* Название строки - фиксированная ширина */
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th:nth-child(3),
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(3) {
                            min-width: 150px;
                            text-align: left;
                            padding-left: 8px;
                        }

                    /* Ячейки с данными */
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td {
                        padding: 3px 6px;
                        text-align: center;
                        border: 1px solid var(--color-meta);
                        font-size: 12px;
                        white-space: nowrap;
                    }

                        /* Названия строк - жирный шрифт */
                        .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(3) {
                            font-weight: 500;
                            text-align: left;
                            white-space: nowrap;
                        }

  

                    /* Итоговые строки - выделение */
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody tr td:nth-child(3):contains("Итого") {
                        font-weight: bold;

                    }

                    /* Числовые значения - моноширинный шрифт для выравнивания */
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(4),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(5),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(6),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(7),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(8),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(9),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(10),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(11),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(12),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(13),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(14),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(15),
                    .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td:nth-child(16) {
                        font-size: 11px;
                    }

/* Адаптация для маленьких экранов */
@media screen and (max-width: 1400px) {
    .form_crm_funnels .contents_container .content.conversion table.conversion_table {
        font-size: 10px;
    }

        .form_crm_funnels .contents_container .content.conversion table.conversion_table thead th {
            font-size: 9px;
            padding: 3px 4px;
        }

        .form_crm_funnels .contents_container .content.conversion table.conversion_table tbody td {
            font-size: 10px;
            padding: 2px 4px;
        }
}

/* Контейнер с прокруткой для таблицы */
.form_crm_funnels .contents_container .content.conversion {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}


                .form_crm_funnels .contents_container .content.conversion .tools {
                    top: 0px;
                    position: relative;
                    border-bottom: var(--border);
                    height: 35px;
                }

            .form_crm_funnels .contents_container .content.conversion {
            }
            .form_crm_funnels .contents_container .content.conversion table{
            }

                .form_crm_funnels .contents_container .content.conversion .tables table tbody td:first-child::before {
                    content: "⇨";
                    color: var(--color-green);
                    font-size: 17px;
                }

            .form_crm_funnels .dashboard {
                display: block;
                width: 100%;
                height: 100%;
            }

                .form_crm_funnels .dashboard .card {
                    display: block;
                    width: 400px;
                    height: max-content;
                    display: grid;
                    float: left;
                    margin: 3px;
                }

            .form_crm_funnels .wrapper {
                height: 100%;
                position: relative;
                padding: 0px;
            }

                .form_crm_funnels .wrapper .funnel {
                    display: inline-block;
                    width: 10%;
                    /* background-color: blue; */
                    margin: 0px 0px;
                    height: 96%;
                    position: relative;
                    top: 0px;
                    border: var(--border);
                    border-width: 0px 1px 0px 0px;
                    padding-top: 30px;
                }

                    .form_crm_funnels .wrapper .funnel .header {
                        position: absolute;
                        top: 0px;
                        width: 100%;
                        height: 50px;
                        text-align: center;
                        word-break: auto-phrase;
                        padding: 8px 0px;
                        white-space: nowrap;
                        /* background: rebeccapurple; */
                        z-index: 3;
                    }

                        .form_crm_funnels .wrapper .funnel .header::before {
                            content: "";
                            background: var(--background-color-blur);
                            backdrop-filter: var(--backdrop-filter);
                            position: absolute;
                            width: 98%;
                            height: 100%;
                            top: 0px;
                            left: 0px;
                        }

                        .form_crm_funnels .wrapper .funnel .header::after {
                            content: attr(data-content);
                            font-size: 88%;
                            position: relative;
                            top: -6px;
                            background: var(--background-color-blur);
                            backdrop-filter: var(--backdrop-filter);
                        }

                        .form_crm_funnels .wrapper .funnel .header .agg {
                            z-index: 2;
                            position: absolute;
                            top: 32px;
                            padding: 2px 5px;
                            width: 100%;
                        }


                            .form_crm_funnels .wrapper .funnel .header .agg span {
                                display: inline-block;
                                text-align: right;
                                width: fit-content;
                            }

                            .form_crm_funnels .wrapper .funnel .header .agg .label {
                                text-align: left;
                                width: max-content;
                                display: block;
                            }

                            .form_crm_funnels .wrapper .funnel .header .agg .val {
                                text-align: right;
                                color: var(--color-blue);
                                font-weight: bold;
                            }

                            .form_crm_funnels .wrapper .funnel .header .agg td {
                                border-width: 0px 0px 1px 0px;
                            }

                        .form_crm_funnels .wrapper .funnel .header .counter {
                            font-size: 90%;
                            color: var(--label-color);
                            position: absolute;
                            left: 29px;
                            top: 17px;
                            z-index: 1;
                            padding: 6px;
                        }

                            .form_crm_funnels .wrapper .funnel .header .counter span {
                                margin-left: 4px;
                            }

                                .form_crm_funnels .wrapper .funnel .header .counter span:nth-child(1) {
                                    color: var(--color-green);
                                }

                                .form_crm_funnels .wrapper .funnel .header .counter span:nth-child(3) {
                                }

                                .form_crm_funnels .wrapper .funnel .header .counter span:nth-child(3) {
                                    color: var(--color-red);
                                }

                        .form_crm_funnels .wrapper .funnel .header .filter_extend_open_icon.filter, .form_crm_funnels .wrapper .funnel .header .filter_extend_savetemplate_icon {
                            top: 15px;
                            /* right: 200px; */
                            left: -3px;
                            box-shadow: none;
                            cursor: pointer;
                            border-radius: 20px;
                            /* border: 1px solid white; */
                            padding: 0px;
                            width: 24px;
                            height: 24px;
                            background-position: center;
                            background-size: 24px;
                            z-index: 3;
                        }
                        .form_crm_funnels .wrapper .funnel .header .filter_extend_savetemplate_icon {
                            left: 14px;
                            top: 17px;
                        }
.form_crm_funnels .wrapper .funnel .stack {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 50px 0px 0px 0px;
}

                        .form_crm_funnels .wrapper .funnel .stack.ui-droppable::before {
                            display: none;
                        }

                        .form_crm_funnels .wrapper .funnel .stack::-webkit-scrollbar {
                            width: 2px;
                        }

                    .form_crm_funnels .wrapper .funnel .droppable_active {
                        background-color: var(--color-darkslateblue) !important;
                        border-width: 0px 1px 0px 1px;
                    }

                    .form_crm_funnels .wrapper .funnel .stack .funnel_item {
                        display: block;
                        height: fit-content;
                        z-index: 1;
                        background-color: var(--funnel-item-background-color);
                        margin: auto;
                        margin: auto;
                        position: initial;
                        padding: 5px 3px;
                        margin-top: 3px;
                        border-radius: 10px;
                        padding-right: 4px;
                        min-height: 100px;
                        border: 1px solid;
                        border-color: var(--theme-background-color-lite);
                    }

        form_crm_funnels .wrapper .funnel .stack .funnel_item:hover {
            border-color: var(--theme-lera-color-yellow);
            box-shadow: 0 0 10px rgba(255, 235, 59, 0.6);
        }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item .fio {
        }

        .pulse {
            -webkit-animation: pulse 1s 2 ease-in-out;
        }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item.pulse {
            /*-webkit-animation: pulse 1.5s infinite ease-in-out;*/
            /*-webkit-animation: pulse 1.5s 3 ease-in-out;*/
        }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item .contragent_photo {
            width: 42px;
            height: 42px;
            float: left;
            margin-right: 5px;
            border: 1px solid #575757;
            cursor: pointer;
            border-radius: 52px;
        }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item .contragent_status {
        }

            .form_crm_funnels .wrapper .funnel .stack .funnel_item .contragent_status::after {
                content: "🢖";
                margin: 0px 3px;
                color: var(--color-meta);
            }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item.moved_today {
            border-color: var(--color-darkslateblue);
            background-color: var(--color-darkslateblue);
        }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item .date {
            display: block;
            margin: 2px 4px;
            color: var(--color-skyblue);
            text-align: right;
            font-size: 90%;
            text-transform: lowercase;
        }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item .date_end {
            color: var(--color-red);
        }


        .form_crm_funnels .wrapper .funnel .stack .funnel_item.srv_moved_today .contragent_photo {
            border-color: #00e400;
        }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item.srv_moved_today .date:before {
            content: "🞋";
            position: relative;
            top: 1px;
            left: -2px;
            font-size: 14px;
        }

        .form_crm_funnels .wrapper .funnel .stack .funnel_item.worktask {
            border-color: var(--background-color-left-panel);
            border-radius: 6px;
            left: -4px;
            margin: 5px;
            top: 12px;
        }

            .form_crm_funnels .wrapper .funnel .stack .funnel_item.worktask .button.worktask_completed {
                border-style: dashed;
                background-color: transparent;
            }

            .form_crm_funnels .wrapper .funnel .stack .funnel_item.worktask .date_interval {
                color: var(--color-skyblue);
                display: block;
                margin: auto;
                /* text-align: center; */
                top: -5px;
                /* position: relative; */
                width: 229px;
                margin-top: 17px;
                margin-bottom: 5px;
            }



            .form_crm_funnels .wrapper .funnel .stack .funnel_item.worktask .button {
                width: 100px;
                padding: 3px 9px;
            }

        .form_crm_funnels .wrapper.type2 .funnel:nth-child(7) .header {
            background: #1acd1a1c;
        }

        .form_crm_funnels .wrapper.type2 .funnel:nth-child(8) .header {
            background: #ff000021;
        }

        .control_formselectbutton.modal.podcast > div:first-of-type {
            color: yellow;
        }
.control_formselectbutton .emoji, .container.modal .emoji {
    text-align:center;
    font-size:64px;
}
.overlay .emoji.large {
    font-size: 300px;
    margin: auto;
}

        /*-----------------------------Задачи и коментарии--------------------------------------*/
        .ui-widget.ui-widget-content.form_message {
            border-radius: 10px;
            border: 1px solid #B8860B;
        }

        .form_message .update {
            position: absolute;
            top: 34px;
            left: 33px;
        }

        .form_message .heads_container {
            border-width: 2px 0px 0px 0px;
        }

        .form_message .contents_container .content {
            overflow: unset;
            height: 90%;
        }

        .form_message .content {
            overflow: unset;
        }

        .form_message .tools {
            display: block;
            height: 20px;
            padding: 0px;
            margin: 0px;
            padding-left: 84px;
        }

       



.form_message .worktask .item .tag {
    width: max-content;
    display: inline-block;
    position: absolute;
    right: 140px;
    top: 8px;
    color: var(--color-yellow);
    font-style: italic;
}

    .form_message .worktask .item .tag::before {
        content: "тег задачи #";
        color:var(--color-meta);
    }
.form_message .item .tags {

}

    .form_message .item .tags .button {
        width: max-content;
        display: inline-block;
        right: 140px;
        bottom: 5px;
        color: var(--color-meta);
        font-style: italic;
        font-size: 12px;
        padding: 4px;
    }
        .form_message .item .tags .button.active {
            background-color: var(--color-yellow);
            color: black;
            font-weight: 500;
        }
        .form_message .item .tags .button::before {
            content: "#";
        }



.form_message .history {
    grid-area: actions;
    /* align-self: start; */
    justify-self: center;
}

    .form_message .history:before {
        content: "📜";
        font-size: 22px;
        position: unset;
    }



.form_message .icon.sip_call_icon {
    grid-area: actions;
    /* align-self: start; */
    justify-self: center;
    width: 26px;
    height: 26px;
    border-radius: 20px;
}



        .form_message .icon.sip_call_icon:before {
            position: relative;
            top: -12px;
            left: -7px;
            font-size: 19px;
        }



        .worktask_completed._0::after {
            color: var(--color-green);
            content: "Открыто";
        }

        .worktask_completed._1::after {
            color: var(--color-red);
            content: "В работе";
        }

        .worktask_completed._2::after {
            color: var(--color-skyblue);
            content: "Выполнено";
        }

        .worktask_completed._3::after {
            color: var(--color-yellow);
            content: "Снята";
        }

       

       

        .form_message .items_container {
            display: block;
            height: 98%;
            overflow-y: auto;
        }

        .ui-dialog > .manager_owner {
            position: absolute;
            margin: auto;
            right: 10px;
            display: block;
            width: max-content;
            text-transform: lowercase;
            right: 7px;
            bottom: 3px;
            color: var(--color-meta);
        }

        .form_message .fio {
            font-size: 1.2rem;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .form_message .date_interval {
            color: var(--color-skyblue);
        }

.form_message .text {
    line-height: 1.5;
    border-left: 3px solid var(--theme-color-1);
    padding: 5px;
    margin-left: 100px;
    width: 74%;
    min-height: 42px;
}


      

        .form_message .items_container > .item {
            border: solid 1px var(--border-color);
            border-width: 0px 0px 1px 0px;
            padding: 5px 0px;
            min-height: 124px;
            position: relative;
            border: var(--message-item-border);
            border-radius: 16px;
            padding: 8px 16px 8px 8px;
            margin-bottom: 5px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
            background: var(--message-item-background);
        }

        .form_message .worktask .items_container > .item {
        }

        .form_message .items_container > .item .completed_percent {
            position: relative;
            top: -12px;
        }

            .form_message .items_container > .item .completed_percent:after {
                content: attr(data-perc);
                font-size: 134%;
                color: gray;
                position: absolute;
                top: -3px;
                left: 12px;
            }

        .form_message .content.comments .items_container > div.today {
            background-color: var(--color-darkslateblue);
        }

        .form_message .items_container > div .contragent_photo, .form_message .items_container > div .nto_icon {
            width: 54px;
            height: 54px;
            margin-top: 21px;
            border-radius: 35px;
            /* border: 2px solid var(--theme-lera-color-yellow); */
            background-size: cover;
            float: left;
            margin-right: 20px;
            margin-left: 5px;
            border: 1px solid #ffffff;
            transition: all 0.2s ease-in-out;
        }



        .form_message .items_container > div span {
            display: block;
        }

        .form_message .items_container .contragent_status {
            color: var(--color-skyblue);
        }



        .form_message .worktask .contragent_status {
            display: inline-block;
            position: absolute;
            top: 21px;
            left: 240px;
            text-transform: lowercase;
            color: var(--theme-lera-color-yellow);
        }

        .form_message .items_container > div span.meta {
            display: block;
            margin-left: 110px;
        }

        .form_message .items_container > div span.answerinfo {
            display: block;
            margin-left: 300px;
            position: absolute;
            top: 26px;
            color: var(--color-meta);
        }



        

        

        .form_message .items_container > div .nto_icon {
            background-image: url('img/cart.png');
            border: none;
            cursor: pointer;
        }

        .form_message .content .edit {
            position: absolute;
            border: none;
            background-color: transparent;
            z-index: 1;
        }

            .form_message .content .edit.new_comment:before {
                top: 4px;
                position:unset;
            }

            .form_message .content .edit.new_comment {
                right: 10px;
                top: 10px;
            }

      

        .form_message .content .edit:before {
            color: var(--fore-color);
            border-radius: 35px;
            width: 34px;
            height: 34px;
            display: block;
        }

        .form_message .content .edit.new_task:before {
            top: 5px;
        }

        .form_message .content .edit.new_task, .form_message .content .edit.new_comment {
            border: 1px solid var(--fore-color);
            border-style: dashed;
            border-radius: 35px;
            background-color: #ff6666;
            color: black;
            /* padding-top: 14px; */
            padding-left: 25px;
            top: 10px;
            right: 10px;
            min-width: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 35px;
        }

        .form_message .content .icon.sip_call_icon.top {
            position: absolute;
            display: block;
            top: 10px;
            left: unset;
            top: 8px;
            right: 148px;
            width: 100px;
            height: 38px;
            border-radius: 16px;
        }

            .form_message .content .icon.sip_call_icon.top:before {
                font-size: 24px;
                left: 0px;
            }

        .form_message .content .edit.new_task.min {
            width: 136px;
            background-color: transparent;
            color: var(--fore-color);
        }

        .form_message .content .edit:before {
            color: var(--fore-color);
            border-radius: 35px;
            width: 34px;
            height: 34px;
            display: block;
        }


        .form_message .worktask .item .tools .edit {
            top: 68px;
        }

            .form_message .worktask .item .tools .edit:before {
                font-size: 17px;
                width: 24px;
                height: 24px;
                position: unset;
            }

      

        .form_message_editor {
            border-radius: var(--border-radius-default);
            background-color: var(--background-color);
        }

            .form_message_editor.chat {
                max-width: 600px;
                min-height: 180px
            }

                .form_message_editor.chat > fieldset .button {
                    display: inline-block;
                }


            .form_message_editor .tags {
                display: inline-block;
                width: 200px;
            }

                .form_message_editor .tags::before {
                    content: "теги для быстрого поиска в комментариях(это образец - добавим какие укажите)";
                    text-align: center;
                    color: var(--color-meta);
                }

                .form_message_editor .tags .button {
                    display: inline-block;
                    width: min-content;
                    text-align: center;
                    font-weight: 500;
                }

                    .form_message_editor .tags .button::before {
                        content: "#";
                    }

                    .form_message_editor .tags .button.active {
                        background-color: var(--color-yellow);
                        color: black;
                    }


            .form_message_editor textarea {
                float: left;
                width: 60%;
                display: block;
                height: 200px;
            }

            .form_message_editor.chat textarea {
                float: left;
                width: 80%;
                height: 100px;
            }


/* ══════════════════════════════════════════════════════════════
   SIP event item — переопределяем базовые стили .item из form_message
   ══════════════════════════════════════════════════════════════ */

.form_message .items_container > .item.sipevent {
    /* сбрасываем то, что мешает */
    position: relative;
    display: grid;
    grid-template-columns: 24px 44px minmax(0, 1fr) auto auto auto auto auto auto;
    grid-template-areas:
        "meta    photo   fio       status  history sip     date    dir     ext"
        ".       .       .         .       .       .       .       .       .";
    align-items: center;
    gap: 4px 10px;
    min-height: unset; /* было 124px */
    padding: 10px 14px;
    margin: 6px 0;
    background: var(--message-item-background, #2b2b2b);
    border: var(--message-item-border, 1px solid rgba(255, 255, 255, 0.10));
    border-radius: var(--border-radius-default, 10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    color: var(--fore-color, #f0f0f0);
    font-size: inherit;
    font-family: inherit;
    user-select: none;
    overflow: visible;
}

    /* акцентная полоса по направлению — вместо absolute ::before */
    .form_message .items_container > .item.sipevent::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 3px;
        border-radius: 3px;
        background: var(--color-meta, #999999);
    }

    .form_message .items_container > .item.sipevent:has(.direction[data-dir="1"])::before {
        background: var(--color-green, #13a30f);
    }

    .form_message .items_container > .item.sipevent:has(.direction[data-dir="2"])::before {
        background: var(--color-blue, #3fa0ff);
    }

    .form_message .items_container > .item.sipevent:has(.direction[data-dir="3"])::before {
        background: var(--color-skyblue, #5cd0ff);
    }

    .form_message .items_container > .item.sipevent:has(.direction[data-dir="4"])::before {
        background: var(--theme-color-1, #ffab00);
    }

    .form_message .items_container > .item.sipevent:has(.direction[data-dir="5"])::before {
        background: var(--color-orangered, orangered);
    }

    /* ── сбрасываем span { display: block } и отступы для наших детей ── */
    .form_message .items_container > .item.sipevent > span {
        display: inline-block;
        margin-left: 0; /* сбрасываем margin-left: 110px у .meta */
    }

    /* ── мета ── */
    .form_message .items_container > .item.sipevent > .meta {
        grid-area: meta;
        color: var(--color-meta, #999999);
        font-size: 0.8em;
        white-space: nowrap;
        padding-left: 6px; /* чтобы не прилипало к полосе */
    }

    /* ── фото — сбрасываем float, margin-top, border-radius больше 50% ── */
    .form_message .items_container > .item.sipevent > .contragent_photo {
        grid-area: photo;
        float: none;
        width: 40px;
        height: 40px;
        margin: 0;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        background-color: var(--background-color, #212529);
        border: 1px solid rgba(255, 255, 255, 0.18);
        cursor: pointer;
        transition: transform 0.15s ease, border-color 0.15s ease;
    }

        .form_message .items_container > .item.sipevent > .contragent_photo:hover {
            transform: scale(1.06);
            border-color: rgba(255, 215, 0, 0.4);
        }

    /* ── ФИО ── */
    .form_message .items_container > .item.sipevent > .fio {
        grid-area: fio;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 550;
        color: var(--fore-color, #f0f0f0);
        font-size: 1em;
    }

    /* ── статус ── */
    .form_message .items_container > .item.sipevent > .contragent_status {
        grid-area: status;
        padding: 2px 8px;
        border-radius: 10px;
        background: var(--theme-background-color-lite, #a28c622b);
        color: var(--label-color, #eee8aa);
        
        white-space: nowrap;
    }

    /* ── кнопки: сбрасываем absolute из .form_message .history / .sip_call_icon ── */
    .form_message .items_container > .item.sipevent > .button.history {
        grid-area: history;
        position: static; /* было absolute */
        left: auto;
        bottom: auto;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        cursor: pointer;
        transition: background 0.15s ease, transform 0.15s ease;
    }

        .form_message .items_container > .item.sipevent > .button.history:hover {
            background: var(--button-background-color, #895700);
            transform: scale(1.08);
        }

        .form_message .items_container > .item.sipevent > .button.history::before {
            content: "📜";
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 14px;
        }

    .form_message .items_container > .item.sipevent > .button.sip_call_icon {
        grid-area: sip;
        position: static; /* было absolute */
        left: auto;
        bottom: auto;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(60, 180, 255, 0.08);
        cursor: pointer;
        transition: background 0.15s ease, transform 0.15s ease;
    }

        .form_message .items_container > .item.sipevent > .button.sip_call_icon:hover {
            background: rgba(60, 180, 255, 0.22);
            transform: scale(1.08);
        }

        .form_message .items_container > .item.sipevent > .button.sip_call_icon::before {
            content: "📞";
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 14px;
            position: static; /* сбрасываем top/left из .form_message .icon.sip_call_icon:before */
            top: auto;
            left: auto;
        }

    /* ── дата — теперь просто ячейка grid, а не margin-left:auto ── */
    .form_message .items_container > .item.sipevent > .label.date {
        grid-area: date;
        color: var(--description-color, #ddd);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        font-size: 0.85em;
    }

    /* ── направление ── */
    .form_message .items_container > .item.sipevent > .direction {
        grid-area: dir;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        border-radius: 10px;
        background: var(--theme-background-color-lite, #a28c622b);
        white-space: nowrap;
        font-size: 0.8em;
    }

        .form_message .items_container > .item.sipevent > .direction .emoji {
            font-size: 0.9em;
            line-height: 1;
        }

        .form_message .items_container > .item.sipevent > .direction .text {
            color: var(--fore-color, #f0f0f0);
        }

        .form_message .items_container > .item.sipevent > .direction[data-dir="1"] {
            background: rgba(19, 163, 15, 0.18);
        }

        .form_message .items_container > .item.sipevent > .direction[data-dir="2"] {
            background: rgba(63, 160, 255, 0.18);
        }

        .form_message .items_container > .item.sipevent > .direction[data-dir="3"] {
            background: rgba(92, 208, 255, 0.18);
        }

        .form_message .items_container > .item.sipevent > .direction[data-dir="4"] {
            background: rgba(255, 171, 0, 0.18);
        }

        .form_message .items_container > .item.sipevent > .direction[data-dir="5"] {
            background: rgba(255, 69, 0, 0.18);
        }

    /* ── extension ── */
    .form_message .items_container > .item.sipevent > .label.extension {
        grid-area: ext;
        color: var(--color-meta, #999999);
        font-size: 0.8em;
        white-space: nowrap;
    }

        .form_message .items_container > .item.sipevent > .label.extension::before {
            content: "вн. ";
            opacity: 0.6;
        }

    /* .line и .audio_actions не влезли в 9 колонок — переносим на вторую строку */
    .form_message .items_container > .item.sipevent > .label.line {
        grid-column: 1 / span 4;
        color: var(--color-meta, #999999);
        font-size: 0.8em;
        white-space: nowrap;
        padding-left: 6px;
    }

        .form_message .items_container > .item.sipevent > .label.line::before {
            content: "линия ";
            opacity: 0.6;
        }

    .form_message .items_container > .item.sipevent > .audio_actions {
        grid-column: 8 / span 2;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        justify-self: end;
    }

        .form_message .items_container > .item.sipevent > .audio_actions .button.animate {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            cursor: pointer;
            transition: background 0.15s ease, transform 0.15s ease;
        }

            .form_message .items_container > .item.sipevent > .audio_actions .button.animate:hover {
                background: var(--button-background-color, #895700);
                transform: scale(1.08);
            }

            .form_message .items_container > .item.sipevent > .audio_actions .button.animate.loading {
                opacity: 0.5;
                pointer-events: none;
            }

        .form_message .items_container > .item.sipevent > .audio_actions .button.play::before {
            content: "▶";
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 11px;
        }

        .form_message .items_container > .item.sipevent > .audio_actions .button.download::before {
            content: "⤓";
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 13px;
        }

        .form_message .items_container > .item.sipevent > .audio_actions .no_recording {
            color: var(--color-meta, #999999);
            font-size: 0.8em;
            font-style: italic;
            white-space: nowrap;
        }

/* ── адаптив ── */
@media (max-width: 900px) {
    .form_message .items_container > .item.sipevent {
        grid-template-columns: 24px 40px minmax(0, 1fr) auto auto;
        grid-template-areas:
            "meta    photo   fio       status  history"
            ".       .       dir       dir     sip"
            ".       .       date      date    date"
            ".       .       ext       line    audio";
    }

        .form_message .items_container > .item.sipevent > .label.line,
        .form_message .items_container > .item.sipevent > .audio_actions {
            grid-column: auto;
        }
}

/*/////////////////////////////////////////////////////////////////*/



/* ══════════════════════════════════════════════════════════════
   COMMENT / EVENT item — переопределяем базовые стили .item
   корневой селектор: .form_message .items_container > .item.commentevent
   ══════════════════════════════════════════════════════════════ */

.form_message .items_container > .item.commentevent {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    grid-template-areas:
        "photo  meta    tags"
        "photo  fio     actions"
        "photo  text    actions"
        "photo  adv     actions";
    align-items: start;
    column-gap: 12px;
    row-gap: 4px;
    min-height: unset;
    padding: 10px 14px 10px 8px;
    margin: 6px 0;
    background: var(--message-item-background, #2b2b2b);
    border: var(--message-item-border, 1px solid rgba(255, 255, 255, 0.10));
    border-radius: var(--border-radius-default, 10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    color: var(--fore-color, #f0f0f0);
    user-select: none;
    overflow: visible;
}

    /* ── ФОТО ── сбрасываем float / margin-top / margin-right ── */
    .form_message .items_container > .item.commentevent > .contragent_photo {
        grid-area: photo;
        float: none;
        width: 44px;
        height: 44px;
        margin: 4px 0 0 0;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        background-color: var(--background-color, #212529);
        border: 1px solid rgba(255, 255, 255, 0.18);
        transition: transform 0.15s ease, border-color 0.15s ease;
    }

        .form_message .items_container > .item.commentevent > .contragent_photo:hover {
            transform: scale(1.06);
            border-color: rgba(255, 215, 0, 0.4);
        }

    /* ── сбрасываем display:block у span и margin-left ── */
    .form_message .items_container > .item.commentevent > span {
        display: inline-block;
        margin-left: 0;
    }

    /* ── META (дата / создал) ── */
    .form_message .items_container > .item.commentevent > .meta {
        grid-area: meta;
        color: var(--color-meta, #999999);
        
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* ── ФИО ── */
    .form_message .items_container > .item.commentevent > .fio {
        grid-area: fio;
        font-size: 1rem;
        font-weight: 600;
        color: var(--fore-color, #f0f0f0);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    /* ── СТАТУС — inline рядом с ФИО (переносим в ту же область) ── */
    .form_message .items_container > .item.commentevent > .contragent_status {
        grid-area: fio; /* тот же ряд, что fio, но справа */
        justify-self: end;
        align-self: center;
        padding: 2px 8px;
        border-radius: 10px;
        background: var(--theme-background-color-lite, #a28c622b);
        color: var(--color-skyblue, #5cd0ff);
        
        white-space: nowrap;
    }

    /* ── ТЕКСТ ── сбрасываем margin-left:100px, width:74%, absolute-контекст ── */
    .form_message .items_container > .item.commentevent > .text {
        grid-area: text;
        margin-left: 0;
        width: auto;
        min-height: unset;
        line-height: 1.5;
        border-left: 3px solid var(--theme-color-1, #ffab00);
        padding: 4px 10px;
        font-size: 0.92em;
        color: var(--fore-color, #f0f0f0);
        background: rgba(255, 255, 255, 0.02);
        border-radius: 0 6px 6px 0;
    }

    /* ── ИСТОЧНИК ── сбрасываем margin-left:86px, margin-top:5px ── */
    .form_message .items_container > .item.commentevent > .adveristing {
        grid-area: adv;
        margin-left: 0;
        margin-top: 0;
        color: #777;
        
        font-style: italic;
    }

        .form_message .items_container > .item.commentevent > .adveristing::before {
            content: "🔗";
            margin-right: 5px;
            font-style: normal;
        }

    /* ── КНОПКИ — снимаем absolute, ставим в grid ── */
    .form_message .items_container > .item.commentevent > .button.history,
    .form_message .items_container > .item.commentevent > .button.sip_call_icon,
    .form_message .items_container > .item.commentevent > .button.new_comment {
        position: static;
        left: auto;
        bottom: auto;
        right: auto;
        top: auto;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        cursor: pointer;
        transition: background 0.15s ease, transform 0.15s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .form_message .items_container > .item.commentevent > .button.history:hover,
        .form_message .items_container > .item.commentevent > .button.sip_call_icon:hover,
        .form_message .items_container > .item.commentevent > .button.new_comment:hover {
            background: var(--button-background-color, #895700);
            transform: scale(1.08);
        }

    /* new_comment — «событие» — шире, потому что с текстом */
    .form_message .items_container > .item.commentevent > .button.new_comment {
        width: auto;
        height: 26px;
        padding: 0 12px;
        border-radius: 14px;
        
        background: rgba(255, 102, 102, 0.18);
        color: var(--fore-color, #f0f0f0);
    }

        .form_message .items_container > .item.commentevent > .button.new_comment:hover {
            background: rgba(255, 102, 102, 0.35);
        }

    /* иконки через ::before */
    .form_message .items_container > .item.commentevent > .button.history::before {
        content: "📜";
        font-size: 14px;
        line-height: 1;
    }

    .form_message .items_container > .item.commentevent > .button.sip_call_icon::before {
        content: "📞";
        font-size: 14px;
        line-height: 1;
        position: static;
        top: auto;
        left: auto;
    }

    /* ── контейнер действий (history + sip + new_comment столбиком) ── */
    /* создаём через обёртку? нет — используем grid-area actions и раскидываем
       по строкам через nth-child внутри отдельной колонки */
    .form_message .items_container > .item.commentevent > .button.history {
        grid-area: actions;
        /*align-self: start;*/
        justify-self: center;
    }

    .form_message .items_container > .item.commentevent > .button.sip_call_icon {
        grid-area: actions;
        align-self: start;
        justify-self: end;
    
    }

    .form_message .items_container > .item.commentevent > .button.new_comment {
        grid-area: actions;
        align-self: start;
        justify-self: end;
        margin-top: 72px;
    }

    /* ── ТЕГИ — сверху в правой колонке ── */
    .form_message .items_container > .item.commentevent > .tags {
        grid-area: tags;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
        align-self: start;
        max-width: 260px;
    }

        .form_message .items_container > .item.commentevent > .tags .button {
            width: max-content;
            display: inline-block;
            position: static;
            right: auto;
            bottom: auto;
            color: var(--color-meta, #999999);
            font-style: italic;
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: background 0.15s ease, color 0.15s ease;
        }

            .form_message .items_container > .item.commentevent > .tags .button::before {
                content: "#";
                margin-right: 1px;
                opacity: 0.6;
            }

            .form_message .items_container > .item.commentevent > .tags .button:hover {
                background: rgba(255, 255, 255, 0.12);
                color: var(--fore-color, #f0f0f0);
            }

            .form_message .items_container > .item.commentevent > .tags .button.active {
                background: var(--color-yellow, yellow);
                color: black;
                font-weight: 500;
            }

/* ── адаптив ── */
@media (max-width: 720px) {
    .form_message .items_container > .item.commentevent {
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-areas:
            "photo  meta"
            "photo  fio"
            "photo  text"
            "photo  adv"
            "tags   tags"
            "actions actions";
        row-gap: 6px;
    }

        .form_message .items_container > .item.commentevent > .tags {
            justify-content: flex-start;
            max-width: none;
        }

        .form_message .items_container > .item.commentevent > .button.history,
        .form_message .items_container > .item.commentevent > .button.sip_call_icon,
        .form_message .items_container > .item.commentevent > .button.new_comment {
            margin-top: 0 !important;
            justify-self: start;
        }

        .form_message .items_container > .item.commentevent > .button.history {
            margin-left: 0;
        }

        .form_message .items_container > .item.commentevent > .button.sip_call_icon {
            margin-left: 36px;
        }

        .form_message .items_container > .item.commentevent > .button.new_comment {
            margin-left: 72px;
        }
}

/* ══════════════════════════════════════════════════════════════
   WORKTASK item — переопределяем базовые стили
   корневой селектор: .form_message .items_container > .item.worktask.card
   ══════════════════════════════════════════════════════════════ */


.form_message .items_container > .item.worktask.card {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 150px;
    column-gap: 12px;
    row-gap: 0;
    min-height: unset;
    padding: 10px 14px 10px 8px;
    margin: 6px 0;
    background: var(--message-item-background, #2b2b2b);
    border: var(--message-item-border, 1px solid rgba(255, 255, 255, 0.10));
    border-radius: var(--border-radius-default, 10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    color: var(--fore-color, #f0f0f0);
    user-select: none;
    overflow: visible;
    align-items: start;
    height: auto;
}

    /* фото в левой колонке, растягиваем на всю высоту grid, но само фото сверху */
    .form_message .items_container > .item.worktask.card > .contragent_photo {
        grid-column: 1;
        grid-row: 1 / span 100; /* занимает все строки */
        align-self: start;
        float: none;
        width: 44px;
        height: 44px;
        margin: 0;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        background-color: var(--background-color, #212529);
        border: 1px solid rgba(255, 255, 255, 0.18);
        transition: transform 0.15s ease, border-color 0.15s ease;
    }

    /* ВСЁ ОСТАЛЬНОЕ — в центральную колонку, по порядку следования в DOM */
    .form_message .items_container > .item.worktask.card > *:not(.contragent_photo):not(.tags):not(.container.tools) {
        grid-column: 2;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin-left: 0;
        margin-right: 0;
        float: none;
    }

    /* убираем дефолтные margin у fio/text */
    .form_message .items_container > .item.worktask.card > .fio {
        font-size: 1rem;
        font-weight: 600;
        margin: 2px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .form_message .items_container > .item.worktask.card > .meta {
        color: var(--color-meta, #999999);
        
        margin: 0;
    }

    .form_message .items_container > .item.worktask.card > .receiver {
        color: var(--color-meta, #999999);
        font-size: 0.8em;
        margin: 0;
    }

    .form_message .items_container > .item.worktask.card > .date_interval {
        color: var(--color-skyblue, #5cd0ff);
        font-size: 0.8em;
        margin: 0;
    }

    .form_message .items_container > .item.worktask.card > .contragent_status {
        position: static;
        top: auto;
        left: auto;
        display: inline-block;
        width: max-content;
        padding: 2px 8px;
        border-radius: 10px;
        background: var(--theme-background-color-lite, #a28c622b);
        color: var(--theme-lera-color-yellow, #ffff00);
        
        margin: 2px 0;
        text-transform: lowercase;
    }

    .form_message .items_container > .item.worktask.card > .text {
        margin-left: 0;
        width: auto;
        min-height: unset;
        line-height: 1.5;
        border-left: 3px solid var(--theme-color-1, #ffab00);
        padding: 4px 10px;
        font-size: 0.92em;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 0 6px 6px 0;
        margin-top: 4px;
    }

    .form_message .items_container > .item.worktask.card > .tag {
        position: static;
        right: auto;
        top: auto;
        display: inline-block;
        color: var(--color-yellow, yellow);
        font-style: italic;
        
        margin: 2px 0;
    }

        .form_message .items_container > .item.worktask.card > .tag::before {
            content: "тег задачи #";
            color: var(--color-meta, #999999);
        }

    /* ПУСТОЙ .container — скрываем */
    .form_message .items_container > .item.worktask.card > .container:not(.tools) {
        display: none;
    }

    /* ── .container.tools — в центральную колонку, обычный flex-wrap ── */
    .form_message .items_container > .item.worktask.card > .container.tools {
        grid-column: 2;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        position: static;
        height: auto !important;
        min-height: 0;
        padding: 4px 0 !important;
        margin: 0;
        border: none;
        background: transparent;
    }

        .form_message .items_container > .item.worktask.card > .container.tools > * {
            position: static !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            margin: 0 !important;
        }

        .form_message .items_container > .item.worktask.card > .container.tools > .task_num {
            color: var(--color-skyblue, #5cd0ff);
            font-weight: 600;
            font-size: 0.85em;
            white-space: nowrap;
        }

        .form_message .items_container > .item.worktask.card > .container.tools > .worktask_status {
            display: inline-flex;
            align-items: center;
         
            color: var(--color-meta, #999999);
        }

        .form_message .items_container > .item.worktask.card > .container.tools > .completed_percent {
            
            color: var(--color-meta, #999999);
        }

            .form_message .items_container > .item.worktask.card > .container.tools > .completed_percent:after {
                content: attr(data-perc);
                font-size: 1em;
                color: inherit;
                position: static;
            }

        .form_message .items_container > .item.worktask.card > .container.tools > .worktask_completed {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            padding: 3px 12px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px dashed rgba(255, 255, 255, 0.25);
            cursor: pointer;
   
        }

            .form_message .items_container > .item.worktask.card > .container.tools > .worktask_completed:after {
                font-weight: 600;
            }

            .form_message .items_container > .item.worktask.card > .container.tools  .worktask_completed._0::after {
                color: var(--color-green, #13a30f);
                content: "Открыто";
            }
   

            .form_message .items_container > .item.worktask.card > .container.tools > .worktask_completed._1::after {
                color: var(--color-red, #ff6666);
                content: "В работе";
            }

            .form_message .items_container > .item.worktask.card > .container.tools > .worktask_completed._2::after {
                color: var(--color-skyblue, #5cd0ff);
                content: "Выполнено";
            }

            .form_message .items_container > .item.worktask.card > .container.tools > .worktask_completed._3::after {
                color: var(--color-yellow, yellow);
                content: "Снята";
            }

        .form_message .items_container > .item.worktask.card > .container.tools .worktask_status._1::after {
            color: var(--color-skyblue, #13a30f);
            content: "выполнена";
        }

        .form_message .items_container > .item.worktask.card > .container.tools .worktask_status._2::after {
            color: var(--color-green, #13a30f);
            content: "активна";
        }
        .form_message .items_container > .item.worktask.card > .container.tools .worktask_status._3::after {
            color: var(--color-yellow, #13a30f);
            content: "отложена";
        }
        .form_message .items_container > .item.worktask.card > .container.tools .worktask_status._4::after {
            color: var(--color-red, #13a30f);
            content: "снята";
        }

        .form_message .items_container > .item.worktask.card > .container.tools > .edit_task {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            border: 1px solid var(--theme-lera-color-yellow, #ffff00);
            background: transparent;
            cursor: pointer;
        }

            .form_message .items_container > .item.worktask.card > .container.tools > .edit_task:before {
                content: "🛠";
                position: static !important;
                font-size: 14px;
                top: auto !important;
                left: auto !important;
            }

        .form_message .items_container > .item.worktask.card > .container.tools > .sip_call_icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: rgba(60, 180, 255, 0.08);
            cursor: pointer;
        }

            .form_message .items_container > .item.worktask.card > .container.tools > .sip_call_icon::before {
                content: "📞";
                position: static !important;
                top: auto !important;
                left: auto !important;
                font-size: 14px;
            }

        .form_message .items_container > .item.worktask.card > .container.tools > .history {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            cursor: pointer;
        }

            .form_message .items_container > .item.worktask.card > .container.tools > .history::before {
                content: "📜";
                position: static !important;
                font-size: 14px;
                top: auto !important;
                left: auto !important;
            }

        .form_message .items_container > .item.worktask.card > .container.tools > .new_task {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            height: 26px;
            padding: 0 12px;
            border-radius: 14px;
            
            background: rgba(255, 102, 102, 0.18);
            color: var(--fore-color, #f0f0f0);
            cursor: pointer;
        }

    /* ── теги — в правую колонку, сверху ── */
    .form_message .items_container > .item.worktask.card > .tags {
        grid-column: 3;
        grid-row: 1 / span 100;
        align-self: start;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        max-width: 150px;
    }

        .form_message .items_container > .item.worktask.card > .tags .button {
            width: max-content;
            display: inline-block;
            position: static;
            color: var(--color-meta, #999999);
            font-style: italic;
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            cursor: pointer;
        }

            .form_message .items_container > .item.worktask.card > .tags .button::before {
                content: "#";
                margin-right: 1px;
                opacity: 0.6;
            }

            .form_message .items_container > .item.worktask.card > .tags .button.active {
                background: var(--color-yellow, yellow);
                color: black;
                font-weight: 500;
            }

/* ── адаптив ── */
@media (max-width: 820px) {
    .form_message .items_container > .item.worktask.card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

        .form_message .items_container > .item.worktask.card > .tags {
            grid-column: 2;
            grid-row: auto;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: flex-start;
            max-width: none;
        }
}





/* ══════════════════════════════════════════════════════════════
   CHAT item — переопределяем базовые стили .item
   корневой селектор: .form_message .items_container > .item.chat
   ══════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   CHAT item — три колонки: фото | контент | правая панель
   ══════════════════════════════════════════════════════════════ */

.form_message .items_container > .item.chat {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    min-height: unset;
    height: auto;
    padding: 10px 14px 10px 8px;
    margin: 6px 0;
    box-sizing: border-box;
    background: var(--message-item-background, #2b2b2b);
    border: var(--message-item-border, 1px solid rgba(255, 255, 255, 0.10));
    border-radius: var(--border-radius-default, 10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    color: var(--fore-color, #f0f0f0);
    user-select: none;
    overflow: visible;
}

    /* ── ФОТО ── */
    .form_message .items_container > .item.chat > .contragent_photo {
        grid-column: 1;
        float: none;
        width: 44px;
        height: 44px;
        margin: 0;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        background-color: var(--background-color, #212529);
        border: 1px solid rgba(255, 255, 255, 0.18);
        cursor: pointer;
        transition: transform 0.15s ease, border-color 0.15s ease;
    }

        .form_message .items_container > .item.chat > .contragent_photo:hover {
            transform: scale(1.06);
            border-color: rgba(255, 215, 0, 0.4);
        }

    /* ── ЦЕНТР: контент ── */
    .form_message .items_container > .item.chat > .chat_content {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

        .form_message .items_container > .item.chat > .chat_content > .chat_row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px 10px;
        }

        /* ── META ── */
        .form_message .items_container > .item.chat > .chat_content .meta {
            color: var(--color-meta, #999999);
            
            white-space: nowrap;
        }

        /* ── ANSWERINFO («не отвечен») ── */
        .form_message .items_container > .item.chat > .chat_content .answerinfo {
            display: inline-block;
            
            font-weight: 500;
            padding: 1px 8px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            white-space: nowrap;
        }

    .form_message .items_container > .item.chat.chat_no_answered > .chat_content .answerinfo {
        color: var(--color-red, #ff6666);
        background: rgba(255, 102, 102, 0.12);
    }

    .form_message .items_container > .item.chat.chat_answered > .chat_content .answerinfo {
        color: var(--color-green, #13a30f);
        background: rgba(19, 163, 15, 0.12);
    }

    .form_message .items_container > .item.chat > .chat_content .answerinfo:empty {
        display: none;
    }

    /* ── FIO ── */
    .form_message .items_container > .item.chat > .chat_content .fio {
        font-size: 1rem;
        font-weight: 600;
        color: var(--fore-color, #f0f0f0);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* ── СТАТУС ── */
    .form_message .items_container > .item.chat > .chat_content .contragent_status {
        display: inline-block;
        padding: 1px 8px;
        border-radius: 8px;
        background: var(--theme-background-color-lite, #a28c622b);
        color: var(--color-skyblue, #5cd0ff);
        white-space: nowrap;
    }

        .form_message .items_container > .item.chat > .chat_content .contragent_status:empty {
            display: none;
        }

    /* ── НАПРАВЛЕНИЕ ── */
    .form_message .items_container > .item.chat > .chat_content .chat_direction {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        
        color: var(--color-meta, #999999);
        white-space: nowrap;
    }

        .form_message .items_container > .item.chat > .chat_content .chat_direction::before {
            font-size: 15px;
            line-height: 1;
        }

        .form_message .items_container > .item.chat > .chat_content .chat_direction._1::before {
            content: "⇐";
            color: var(--theme-lera-color-yellow, #ffff00);
        }

        .form_message .items_container > .item.chat > .chat_content .chat_direction._2::before {
            content: "⇒";
            color: var(--color-green, #13a30f);
        }

    /* ── SENDER ── */
    .form_message .items_container > .item.chat > .chat_content .sender {
        color: var(--color-meta, #999999);
        
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── CHAT_COMPLETED («прочитано»/«доставлено») ── */
    .form_message .items_container > .item.chat > .chat_content .chat_completed {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        text-transform: lowercase;
        white-space: nowrap;
        color: var(--color-meta, #999999);
    }

        .form_message .items_container > .item.chat > .chat_content .chat_completed::before {
            content: "🖄";
            font-size: 13px;
            line-height: 1;
        }

        .form_message .items_container > .item.chat > .chat_content .chat_completed._2 {
            color: var(--color-yellow, yellow);
        }

        .form_message .items_container > .item.chat > .chat_content .chat_completed._3,
        .form_message .items_container > .item.chat > .chat_content .chat_completed._4,
        .form_message .items_container > .item.chat > .chat_content .chat_completed._5 {
            color: var(--color-green, #13a30f);
        }

        .form_message .items_container > .item.chat > .chat_content .chat_completed:empty {
            display: none;
        }

    /* ── ТЕКСТ ── */
    .form_message .items_container > .item.chat > .chat_content > .text {
        display: block;
        margin: 2px 0 0 0;
        width: auto;
        min-height: unset;
        line-height: 1.5;
        border-left: 3px solid var(--theme-color-1, #ffab00);
        padding: 4px 10px;
        font-size: 0.92em;
        color: var(--fore-color, #f0f0f0);
        background: rgba(255, 255, 255, 0.02);
        border-radius: 0 6px 6px 0;
        max-width: calc(100% - 20px);
    }

    /* кнопка CopyBuffer */
    .form_message .items_container > .item.chat > .chat_content > .copy_buffer,
    .form_message .items_container > .item.chat > .chat_content > [class*="copy"] {
        align-self: flex-start;
        margin-top: 2px;
    }

    /* ── ПРАВАЯ ПАНЕЛЬ ── */
    .form_message .items_container > .item.chat > .chat_side {
        grid-column: 3;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        min-width: 0;
    }

        /* ── ИКОНКА КАНАЛА ── */
        .form_message .items_container > .item.chat > .chat_side > .chat_type_icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
        }

            .form_message .items_container > .item.chat > .chat_side > .chat_type_icon::before {
                content: "";
                display: block;
                width: 18px;
                height: 18px;
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
            }

            .form_message .items_container > .item.chat > .chat_side > .chat_type_icon.t1::before {
                background-image: url('img/sms.png');
            }

            .form_message .items_container > .item.chat > .chat_side > .chat_type_icon.t2::before {
                background-image: url('img/whatsapp.png');
            }

            .form_message .items_container > .item.chat > .chat_side > .chat_type_icon.t3::before {
                background-image: url('img/telegram_corp.png');
            }

            .form_message .items_container > .item.chat > .chat_side > .chat_type_icon.t4::before {
                content: "📱";
                font-size: 16px;
                background: none;
                width: auto;
                height: auto;
            }

        /* ── КНОПКА HISTORY ── */
        .form_message .items_container > .item.chat > .chat_side > .button.history {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            padding: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: none;
            cursor: pointer;
            flex-shrink: 0;
            transition: background 0.15s ease, transform 0.15s ease;
        }

            .form_message .items_container > .item.chat > .chat_side > .button.history:hover {
                background: var(--button-background-color, #895700);
                transform: scale(1.08);
            }

            .form_message .items_container > .item.chat > .chat_side > .button.history::before {
                content: "📜";
                font-size: 14px;
                line-height: 1;
            }

        /* ── КНОПКА SIP ── */
        .form_message .items_container > .item.chat > .chat_side > .button.sip_call_icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: rgba(60, 180, 255, 0.08);
            cursor: pointer;
            flex-shrink: 0;
            transition: background 0.15s ease, transform 0.15s ease;
        }

            .form_message .items_container > .item.chat > .chat_side > .button.sip_call_icon:hover {
                background: rgba(60, 180, 255, 0.22);
                transform: scale(1.08);
            }

            .form_message .items_container > .item.chat > .chat_side > .button.sip_call_icon::before {
                content: "📞";
                font-size: 14px;
                line-height: 1;
                position: static;
                top: auto;
                left: auto;
            }

        /* ── КНОПКА ОТВЕТА / СООБЩЕНИЯ ── */
        .form_message .items_container > .item.chat > .chat_side > .button.new_comment {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            height: 26px;
            padding: 0 12px;
            border-radius: 14px;
            background: rgba(255, 102, 102, 0.18);
            color: var(--fore-color, #f0f0f0);
            cursor: pointer;
            flex-shrink: 0;
            border: 1px dashed rgba(255, 255, 255, 0.25);
            transition: background 0.15s ease, transform 0.15s ease;
            margin-right: 42px;
        }

            .form_message .items_container > .item.chat > .chat_side > .button.new_comment:hover {
                background: rgba(255, 102, 102, 0.35);
                transform: scale(1.03);
            }

/* ── адаптив ── */
@media (max-width: 720px) {
    .form_message .items_container > .item.chat {
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-areas:
            "photo content"
            "side  side";
    }

        .form_message .items_container > .item.chat > .contragent_photo {
            grid-area: photo;
        }

        .form_message .items_container > .item.chat > .chat_content {
            grid-area: content;
        }

        .form_message .items_container > .item.chat > .chat_side {
            grid-area: side;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
            margin-top: 6px;
        }
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////////
*/

.overlay .funnels_custom {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    right: 10%;
    position: relative;
    padding: 10px;
}
    .overlay .funnels_custom::before {
        content: "";
        position: absolute;
        top: -43px;
        color: var(--color-white-green);
        background-image: url(img/funnel.png);
        background-position: center;
        background-size: contain;
        width: 84%;
        height: 34px;
        background-repeat: no-repeat;
    }
    .overlay .funnels_custom .button {
        background-image: url(/css/img/filter2.png);
        display: block;
        background-size: 26px;
        border: var(--border);
        background-position: 12px 3px;
        width: max-content;
        text-align: left;
        padding-left: 45px;
    }
        .overlay .funnels_custom .button.parent {
            background-color: var(--color-darkslateblue);
        }
        .overlay .funnels_custom .button:hover {
            background-color: var(--color-orangered);
            color:black;
        }
        .overlay .funnels_custom .button.active {
            background-color: var(--color-yellow);
            color:black;
        }

        .form_message_editor.chat .date_range {
            width: 200px;
        }

        .form_message_editor.chat .file {
            float: left;
            width: 138px;
            border: 1px dotted var(--color-blue);
            margin: 3px;
            border-radius: 5px;
        }

            .form_message_editor.chat .file img {
                width: 62px;
                margin: auto;
                padding: 3px;
                border-radius: 5px;
                position: relative;
                display: block;
            }

        .form_message_editor .button.left_icon.save {
            background-color: var(--theme-lera-color-yellow);
            display: block;
            height: 39px;
            position: absolute;
            bottom: 10px;
            right: 10px;
            color: black;
        }
        /*-----------------------------/Задачи и коментарии--------------------------------------*/

        .container .user_selector {
            padding: 0px 20px;
        }

            .container .user_selector .items {
                overflow: auto;
                display: block;
                max-height: 400px;
                min-width: 300px;
            }

                .container .user_selector .items .item {
                    position: relative;
                }

                    .container .user_selector .items .item .checkbox {
                        display: inline-block;
                    }

                    .container .user_selector .items .item .photo_fio_container {
                        display: inline-block;
                    }

                        .container .user_selector .items .item .photo_fio_container .contragent_photo {
                            width: 58px;
                            height: 46px;
                            display: inline-block;
                            top: 16px;
                            position: relative;
                            margin: 3px 16px;
                        }

                        .container .user_selector .items .item .photo_fio_container .label {
                            display: inline-block;
                        }


        .worktask_savemodel {
            border: solid 2px var(--color-blue);
            border-radius: 7px;
            background-color: var(--background-color);
            width: 50%;
            min-width: 700px;
            min-height: 424px;
            overflow: hidden;
        }

            .worktask_savemodel .header {
                position: relative;
                margin: auto;
            }

                .worktask_savemodel .header .contragent_photo {
                    width: 65px;
                    height: 65px;
                }

                .worktask_savemodel .header .relates {
                    display: inline-block;
                }

                .worktask_savemodel .header .receivers {
                    display: inline-block;
                    float: right;
                    max-width: 260px;
                    margin-top: 10px;
                }

                .worktask_savemodel .header .bounder {
                    display: inline-block;
                    width: 30%;
                }

                    .worktask_savemodel .header .bounder::before {
                        content: "🠊";
                        font-size: 62px;
                    }

                .worktask_savemodel .header .list {
                }

                    .worktask_savemodel .header .list:before {
                        content: "📑";
                        font-size: 100px;
                    }

            .worktask_savemodel .date_range {
            }

            .worktask_savemodel .left {
                width: min-content;
                display: inline-block;
                height: min-content;
                position: relative;
                top: 0px;
                float: left;
            }

                .worktask_savemodel .left select {
                    margin: 3px 0px;
                }

            .worktask_savemodel .right {
                display: inline-block;
                height: 300px;
                width: 64%;
                position: relative;
            }

                .worktask_savemodel .right .tags {
                }

                    .worktask_savemodel .right .tags::before {
                        content: "теги для быстрого поиска в задачах(мы можем добавить и другие по согласованию)";
                        position: absolute;
                        top: -11px;
                        text-align: center;
                        color: var(--color-meta);
                    }

                    .worktask_savemodel .right .tags .button {
                        display: inline-block;
                        width: min-content;
                        text-align: center;
                        font-weight: 500;
                    }

                        .worktask_savemodel .right .tags .button::before {
                            content: "#";
                        }

                        .worktask_savemodel .right .tags .button.active {
                            background-color: var(--color-yellow);
                            color: black;
                        }

                .worktask_savemodel .right textarea {
                    height: 190px;
                    position: relative;
                }

                .worktask_savemodel .right .button.left_icon.save {
                    position: absolute;
                    bottom: -5px;
                    right: 46px;
                }

                .worktask_savemodel .right .del {
                    width: 38px;
                    height: 38px;
                    border: var(--border);
                    position: absolute;
                    right: 0px;
                    bottom: -2px;
                }

                    .worktask_savemodel .right .del:before {
                        font-size: 35px;
                        /* color: white; */
                        position: relative;
                        left: 6px;
                        top: -8px;
                    }

            .worktask_savemodel .date_range input {
                width: 156px;
            }

            .worktask_savemodel fieldset {
                width: 200px;
                display: block;
            }
        /*------------------ ---/ Acount -------------------------*/
        .acount_mininfo {
            padding: 3px 20px;
        }

            .acount_mininfo .shareds_container {
                border: var(--border);
                margin: 4px;
                border-style: dashed;
            }

            .acount_mininfo:hover {
                cursor: pointer;
                background-color: var(--color-darkslateblue);
                border-color: var(--color-darkslateblue);
            }

            .acount_mininfo span {
                display: block;
            }

                .acount_mininfo span:after {
                    content: attr(data-value);
                    font-size: 140%;
                    margin-left: 10px;
                }

            .acount_mininfo .state {
                display: inline-block;
            }

            .acount_mininfo .meta {
                color: lightslategray;
            }

            .acount_mininfo .transfer {
                width: 100px;
                display: inline-block;
            }

                .acount_mininfo .transfer::after {
                    content: "Перевод";
                    background-image: url(img/transfer.png);
                    display: block;
                    height: 20px;
                    width: 20px;
                    background-size: contain;
                    padding-left: 22px;
                    background-repeat: no-repeat;
                }

            .acount_mininfo .state.state.pt_1 {
                color: var(--color-red);
            }

            .acount_mininfo .state.state.pt_2 {
                color: var(--color-green);
            }

            .acount_mininfo .state.state.pt_3 {
                color: var(--color-yellow);
            }

            .acount_mininfo .state:after {
                content: "??";
            }

            .acount_mininfo .state.pt_2:after {
                content: "🔐";
            }

            .acount_mininfo .state.pt_2:after {
                content: "🔐";
            }

            .acount_mininfo .state.pt_3:after {
                content: "☍";
            }

            .acount_mininfo .number:after {
                color: var(--color-green);
                font-weight: 600;
            }

            .acount_mininfo .balance:after {
                content: attr(data-value)' ₽';
                color: var(--theme-lera-color-yellow);
            }


        .modal.list_actions_selector {
            padding: 60px 20px;
        }

        .modal_title {
            display: block;
            width: 100%;
            position: absolute;
            margin: auto;
            top: 10px;
            font-size: 200%;
            text-align: center;
        }

            .modal_title.xlarge {
                font-size: 64px;
            }

            .modal_title.top {
                top: 10px;
            }

        .modal.list_actions_selector .button {
            border: 2px solid var(--border-color);
            display: inline-block;
            position: relative;
            height: 60px;
            width: 150px;
            background-size: 42px;
            border-radius: 2px 2px 10px 2px;
            margin: 10px 10px;
            font-size: 90%;
        }

            .modal.list_actions_selector .button:before {
                content: attr(data-name);
                text-align: right;
                position: absolute;
                top: 56px;
                left: 0px;
                width: max-content;
                font-weight: bold;
            }

            .modal.list_actions_selector .button:hover:before, .modal.list_actions_selector .button:hover::after {
                color: var(--color-yellow);
            }

            .modal.list_actions_selector .button::after {
                content: "⇨";
                font-size: 30px;
                position: absolute;
                top: -23px;
                left: 27px;
            }

            .modal.list_actions_selector .button.action_1 {
                background-image: url(img/massage_task.png);
            }

            .modal.list_actions_selector .button.action_2 {
                background-image: url(img/massage_task.png);
            }

            .modal.list_actions_selector .button.action_3 {
                background-image: url(img/messaging.png);
            }

            .modal.list_actions_selector .button.action_4 {
                background-image: url(img/no_photo.png);
            }
            .modal.list_actions_selector .button.action_5 {
                background-image: url(img/no_photo.png);
            }
            .modal.list_actions_selector .button.action_6 {
                background-image: url(img/funnel.png);
            }

            .modal.list_actions_selector .button.action_7 {
                background-image: url(img/tools.png);
            }

            .modal.list_actions_selector .button.action_8 {
                background-image: url(img/save2.png);
            }
        /*------------------current_user_setting_home----------------------*/
        .current_user_settings_home {
        }

            .current_user_settings_home .button.save {
                position: absolute;
                bottom: -50px;
                right: 5%;
            }

        img.qrcode {
            position: relative;
            margin: auto;
        }
        /*--------- Notification Panel -----*/

        .workplace_notification_panel {
            position: fixed;
            padding: 0px 0px 0px 24px;
            bottom: 20px;
            right: 20px;
            width: 320px;
            max-height: 70vh;
            overflow-y: auto;
            overflow-x: hidden;
            z-index: 100000;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

            .workplace_notification_panel .collapser {
                position: absolute;
                left: -4px;
                top: -2px;
                width: 24px;
                height: 24px;
                cursor: pointer;
                transition: all 0.3s ease;
                text-indent: -9999px;
                overflow: hidden;
            }

            .workplace_notification_panel.collapsible-container.collapsed .collapser {
            }
            /* Псевдоэлемент с эмодзи */
            .workplace_notification_panel .collapser::before {
                content: "▶";
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                font-size: 20px;
                text-indent: 0;
                transition: transform 0.3s ease;
            }
            /* Состояние когда панель схлопнута */
            .workplace_notification_panel.collapsed .collapser::before {
                content: "◀";
                transform: translate(-50%, -50%);
            }
            /* Hover эффекты */
            .workplace_notification_panel .collapser:hover {
                color: var(--color-green);
            }

                .workplace_notification_panel .collapser:hover::before {
                    transform: translate(-50%, -50%) scale(1.1);
                }
            /* Активное состояние (нажатие) */
            .workplace_notification_panel .collapser:active {
                background: #d0d0d0;
                transform: scale(0.95);
            }
            /* это коллапсер */
            .workplace_notification_panel.collapsible-container {
                right: 0;
                transition: right 0.3s ease-in-out;
            }

                .workplace_notification_panel.collapsible-container.collapsed {
                    right: -290px;
                }
        /* end это коллапсер */
        /*------------------- Item -----------------------------*/
        /* Общий контейнер — уже есть, добавляем только стилизацию карточек */
        .container.workplace_notification_panel .item {
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.10);
            border-radius: 16px;
            padding: 8px 16px 8px 68px;
            position: relative;
            transition: all 0.25s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
            cursor: default;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
            /* Анимация при наведении */
            .container.workplace_notification_panel .item:hover {
                background: rgba(255, 255, 255, 0.10);
                border-color: rgba(255, 215, 0, 0.3);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
                transform: translateX(-4px);
            }
            /* Фото (аватар) */
            .container.workplace_notification_panel .item .contragent_photo {
                position: absolute;
                left: 12px;
                top: 50%;
                transform: translateY(-50%);
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-size: cover;
                background-position: center;
                border: 2px solid rgba(255, 255, 255, 0.15);
                flex-shrink: 0;
            }
            /* Заголовок (мета) */
            .container.workplace_notification_panel .item .meta {
                font-size: 13px;
                font-weight: 500;
                color: #ffffff;
                margin: 0 0 2px 0;
                letter-spacing: 0.3px;
                line-height: 1.3;
            }
            /* Описание (имя / текст) */
            .container.workplace_notification_panel .item .description {
                font-size: 13px;
                opacity: 0.9;
                line-height: 1.4;
                word-break: break-word;
            }
            /* Владелец (для звонков) */
            .container.workplace_notification_panel .item .owner {
                font-size: 11px;
                color: #aaaaaa;
                margin-top: 3px;
                opacity: 0.7;
            }
            /* Кнопка удаления (крестик) */
            .container.workplace_notification_panel .item .del {
                position: absolute;
                right: 10px;
                top: 10px;
                width: 20px;
                height: 20px;
                opacity: 0.3;
                cursor: pointer;
                transition: opacity 0.2s, transform 0.2s;
                background: transparent;
                border: none;
            }

                .container.workplace_notification_panel .item .del:hover {
                    opacity: 1;
                    transform: rotate(90deg);
                }
                /* Если .del — это псевдо-элемент, добавь крестик через before/after */
                .container.workplace_notification_panel .item .del::before,
                .container.workplace_notification_panel .item .del::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 12px;
                    height: 2px;
                    background: #fff;
                    border-radius: 2px;
                }

                .container.workplace_notification_panel .item .del::before {
                    transform: translate(-50%, -50%) rotate(45deg);
                }

                .container.workplace_notification_panel .item .del::after {
                    transform: translate(-50%, -50%) rotate(-45deg);
                }
            /* ===== ЦВЕТОВАЯ ДИФФЕРЕНЦИАЦИЯ ===== */
            /* Пропущенные звонки — лёгкий красный акцент */
            .container.workplace_notification_panel .item.notify_type_3 {
                border-left: 4px solid #ff6666;
            }

                .container.workplace_notification_panel .item.notify_type_3 .meta {
                    color: var(--color-red);
                }

                    .container.workplace_notification_panel .item.notify_type_3 .meta::before {
                        content: "📞";
                    }
            /* Telegram-сообщения — синий/голубой акцент */
            .container.workplace_notification_panel .item.notify_type_2 {
                border-left: 4px solid #5cd0ff;
            }

                .container.workplace_notification_panel .item.notify_type_2 .meta {
                    color: var(--color-skyblue);
                }

                    .container.workplace_notification_panel .item.notify_type_2 .meta::before {
                        content: "📨";
                    }
            /* Мобильное приложение */
            .container.workplace_notification_panel .item.notify_type_4 {
                border-left: 4px solid #9dff9a;
            }
            /* Анимация появления (pulse — оставляем, но делаем мягче) */
            .container.workplace_notification_panel .item.pulse {
                animation: notificationPulse 0.4s ease-out;
            }

        @keyframes notificationPulse {
            0% {
                opacity: 0;
                transform: translateX(30px);
            }

            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }
        /* Скролл — делаем красивым */
        .container.workplace_notification_panel::-webkit-scrollbar {
            width: 4px;
        }

        .container.workplace_notification_panel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        .container.workplace_notification_panel::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.25);
            border-radius: 8px;
        }
        /*--------------------END Notification ---------------------*/
        .order_expence_container {
            min-width: 300px;
            padding: 5px 20px;
        }

            .order_expence_container fieldset {
                display: block;
                float: none;
            }

            .order_expence_container input[type=number] {
                font-size: 200%;
                width: 140px;
                border-color: var(--color-skyblue);
            }

            .order_expence_container textarea {
                display: block;
                height: 100px;
                border: none;
                margin: auto;
            }

            .order_expence_container .button {
                margin: auto;
                margin-top: 10px;
            }

        .modal.acount_form_add {
            padding: 10px 40px
        }

        .modal.savedlist_editor {
            padding: 20px;
            width: 20%;
            min-width: 400px;
        }

            .modal.savedlist_editor fieldset {
                float: none;
            }

            .modal.savedlist_editor .button {
                margin: auto;
                margin-top: 10px;
            }

            .modal.savedlist_editor textarea {
                border-color: var(--color-skyblue);
                margin: 10px 0px;
            }

        .modal.savedlist_browser {
            width: max-content;
        }

            .modal.savedlist_browser .item {
                padding: 10px 20px;
                position: relative;
                border: var(--border);
                border-width: 0px 0px 1px 0px;
            }

                .modal.savedlist_browser .item .contragent_photo {
                    float: left;
                    position: relative;
                    left: 1px;
                    width: 48px;
                    height: 48px;
                    margin: 0px 10px;
                }

                .modal.savedlist_browser .item .del {
                    margin: auto;
                    display: block;
                    position: relative;
                }

                    .modal.savedlist_browser .item .del:before {
                        font-size: 18px;
                    }

                .modal.savedlist_browser .item .meta {
                    margin-left: 10px;
                }

                .modal.savedlist_browser .item .fio {
                }

                .modal.savedlist_browser .item .checkbox {
                    display: inline-block;
                }

        .modal.percent_calculate {
            padding: 10px 20px;
            position: relative;
        }

            .modal.percent_calculate .total {
                display: block;
                margin: auto;
                text-align: center;
                font-size: 140%;
                margin-bottom: 20px;
                text-transform: uppercase;
                font-weight: bold;
                color: var(--color-yellow)
            }

            .modal.percent_calculate fieldset {
                display: inline-block;
                float: none;
            }

            .modal.percent_calculate input[type=number] {
                margin: 10px;
                width: 156px;
                font-size: 140%;
            }

            .modal.percent_calculate .button {
                width: min-content;
                margin: auto;
                margin-top: 10px;
            }

        .form_commongroup_nomenclatureaction {
        }

            .form_commongroup_nomenclatureaction .tab_actions .dates_container {
                display: block;
                position: relative;
                /* right: 0px; */
                top: 14px;
                margin-right: 10px;
            }

            .form_commongroup_nomenclatureaction .tab_actions .common_group_name {
                display: block;
                width: 90%;
            }

        .modal.prolongation_wizard {
            padding: 20px 40px;
        }

            .modal.prolongation_wizard fieldset {
                float: none;
            }

            .modal.prolongation_wizard .button {
                display: block;
                margin: auto;
                margin-top: 10px;
            }

        .modal.identifier_editor {
            min-width: 400px;
        }

            .modal.identifier_editor .items {
                max-height: 300px;
                overflow: auto;
            }

            .modal.identifier_editor .button.save {
                margin: auto;
                margin-top: 10px;
            }

        .modal.report_selector {
            min-width: 30%;
            min-height: 30%;
        }

            .modal.report_selector .items_container, .form_report_all .items_container {
            }

                .modal.report_selector .items_container .item, .form_report_all .items_container .item {
                }

                    .modal.report_selector .items_container .item .label, .form_report_all .items_container .item .label {
                        display: inline-block;
                        position: relative;
                        top: -14px;
                        left: 10px;
                    }

                    .modal.report_selector .items_container .item .button, .form_report_all .items_container .item .button {
                        display: inline-block;
                        width: 34px;
                        height: 34px;
                        cursor: pointer;
                    }

                    .modal.report_selector .items_container .item .pdf, .form_report_all .items_container .item .pdf {
                        background-image: url('img/pdf.png');
                    }

                    .modal.report_selector .items_container .item .excel, .form_report_all .items_container .item .excel {
                        background-image: url('img/excel.png');
                    }

                    .modal.report_selector .items_container .item .csv, .form_report_all .items_container .item .csv {
                        background-image: url('img/csv.png');
                    }

                    .modal.report_selector .items_container .item .mhtml, .form_report_all .items_container .item .mhtml {
                        background-image: url('img/show_document.png');
                    }

        .form_presencemonitor {
        }

            .form_presencemonitor .tools {
                width: 96%;
                margin: auto;
                padding: 0px;
                backdrop-filter: var(--backdrop-filter);
                background-color: var(--background-color-blur3);
            }
            /* ===== РОДИТЕЛЬСКИЙ КОНТЕЙНЕР ===== */
            .form_presencemonitor .items {
                display: flex;
                flex-direction: column;
                gap: 8px;
                padding: 4px;
            }
            /* ===== КАРТОЧКА ПОСЕТИТЕЛЯ (ТРЁХСТРОЧНАЯ) ===== */
            .form_presencemonitor .item {
                /*display: flex;*/
                flex-direction: column;
                gap: 6px;
                padding: 4px 14px;
                /*background: linear-gradient(135deg, #2a1f0e 0%, #1e1a14 100%);*/
                background-color: var(--message-item-background);
                border: 1px solid rgba(255, 175, 0, 0.08);
                border-radius: 12px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.2);
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                cursor: pointer;
                position: relative;
                overflow: hidden;
                min-height: 90px;
            }

                .form_presencemonitor .item:hover {
                    border-color: rgba(255, 175, 0, 0.25);
                    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
                }
                /* ===== ЛЕВАЯ ПОЛОСА СТАТУСА ===== */
                .form_presencemonitor .item::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 12%;
                    height: 76%;
                    width: 4px;
                    border-radius: 0 4px 4px 0;
                    transition: all 0.3s;
                }
                /* Статус 1 - ✅ (норма) */
                .form_presencemonitor .item.time_warning_status.status_1::before {
                    background: linear-gradient(to bottom, #35d930, #7dff7a);
                    box-shadow: 0 0 16px rgba(53, 217, 48, 0.2);
                }
                /* Статус 2 - ⚠️ (предупреждение) */
                .form_presencemonitor .item.time_warning_status.status_2::before {
                    background: linear-gradient(to bottom, #ffd700, #ffaa00);
                    box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
                }
                /* Статус 3 - 🚨 (критично) */
                .form_presencemonitor .item.time_warning_status.status_3::before {
                    background: linear-gradient(to bottom, #ff6b35, #ff1744);
                    box-shadow: 0 0 20px rgba(255, 23, 68, 0.25);
                    animation: pulseWarning 1.5s ease-in-out infinite;
                }

        @keyframes pulseWarning {
            0%, 100% {
                opacity: 1;
            }

            50% {
                opacity: 0.4;
            }
        }
        /* ===== ЭМОДЗИ СТАТУСА (правый верхний угол) ===== */
        .form_presencemonitor .item.time_warning_status::after {
            position: absolute;
            right: 12px;
            top: 8px;
            font-size: 20px;
            line-height: 1;
            opacity: 0.8;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }

.form_presencemonitor .item.time_warning_status.status_1::after {
    content: "🟢";
}

        .form_presencemonitor .item.time_warning_status.status_2::after {
            content: "⚠️";
        }

.form_presencemonitor .item.time_warning_status.status_3::after {
    content: "⚠️";
    animation: bounceEmoji 1s ease-in-out infinite;
}

        @keyframes bounceEmoji {
            0%, 100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.2);
            }
        }
        /* ===== ФОТО ===== */
        .form_presencemonitor .item .contragent_photo {
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            border: 2px solid rgba(255,255,255,0.06);
            transition: all 0.3s;
            flex-shrink: 0;
            float: left;
            margin-right: 10px;
        }

        .form_presencemonitor .item:hover .contragent_photo {
            border-color: rgba(255, 215, 0, 0.3);
            transform: scale(1.05);
        }
        /* ===== СТРОКА 1: Время + статус ===== */
        .form_presencemonitor .item .header-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

            .form_presencemonitor .item .header-row .time {
                font-weight: 700;
                font-size: 18px;
                color: var(--color-meta);
                font-variant-numeric: tabular-nums;
                letter-spacing: 0.3px;
            }

            .form_presencemonitor .item .header-row .time_total {
                font-weight: 600;
                font-size: 13px;
                padding: 2px 12px;
                border-radius: 20px;
                background: rgba(255, 80, 50, 0.1);
                border: 1px solid rgba(255, 80, 50, 0.12);
                color: #ff6b4a;
            }
        /* Статус 1 - зелёный */
        .form_presencemonitor .item.status_1 .header-row .time_total {
            background: rgba(53, 217, 48, 0.08);
            border-color: rgba(53, 217, 48, 0.12);
            color: #7dff7a;
        }
        /* Статус 2 - жёлтый */
        .form_presencemonitor .item.status_2 .header-row .time_total {
            background: rgba(255, 215, 0, 0.08);
            border-color: rgba(255, 215, 0, 0.12);
            color: #ffd700;
        }

        .form_presencemonitor .item .header-row .prefix {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 3px 12px;
            border-radius: 20px;
            background: rgba(53, 217, 48, 0.08);
            border: 1px solid rgba(53, 217, 48, 0.1);
            color: #7dff7a;
        }
        /* ===== СТРОКА 2: ФИО + ВОЗРАСТ ===== */
        .form_presencemonitor .item .name-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

            .form_presencemonitor .item .name-row .fio {
                font-size: 15px;
                font-weight: 500;
                color: var(--fore-color);
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .form_presencemonitor .item .name-row .age {
                font-size: 14px;
                font-weight: 600;
                color: #9aa4b8;
                background: rgba(255,255,255,0.05);
                padding: 1px 10px;
                border-radius: 20px;
                border: 1px solid rgba(255,255,255,0.06);
                flex-shrink: 0;
            }
        /* ===== СТРОКА 3: Кнопки (слева, горизонтально) ===== */
        .form_presencemonitor .item .actions-row {
            display: flex;
            gap: 10px;
            justify-content: flex-start;
            flex-wrap: wrap;
            margin-top: 2px;
        }

            .form_presencemonitor .item .actions-row .out,
            .form_presencemonitor .item .actions-row .nto {
                padding: 8px 22px;
                border: none;
                border-radius: 60px;
                font-size: 14px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s ease;
                border: 1px solid rgba(255,255,255,0.06);
                background: rgba(255,255,255,0.03);
                color: #d3def0;
                background-size: 31px;
                background-repeat: no-repeat;
                background-position: center;
                display: block;
                height: 32px;
                width: 64px;
            }

            .form_presencemonitor .item .actions-row .out {
                border-color: rgba(255, 80, 50, 0.2);
                color: #ff6b4a;
                background-image: url(img/directions.png);
            }

                .form_presencemonitor .item .actions-row .out:hover, .form_presencemonitor .item .actions-row .nto:hover {
                    border-color: rgba(255, 80, 50, 0.4);
                }

            .form_presencemonitor .item .actions-row .nto {
                border-color: rgba(255, 175, 0, 0.15);
                color: #ffb347;
                background-image: url(img/cart.png);
            }
        /* ===== АДАПТИВНОСТЬ ===== */
        /* Средние экраны */
        @media (max-width: 860px) {
            .form_presencemonitor .item {
                padding: 4px 14px;
                min-height: 80px;
                gap: 5px;
            }

                .form_presencemonitor .item .header-row .time {
                    font-size: 16px;
                }

                .form_presencemonitor .item .header-row .time_total {
                    font-size: 12px;
                    padding: 2px 10px;
                }

                .form_presencemonitor .item .name-row .fio {
                    font-size: 15px;
                }

                .form_presencemonitor .item .name-row .age {
                    font-size: 12px;
                    padding: 1px 8px;
                }

                .form_presencemonitor .item .header-row .prefix {
                    font-size: 10px;
                    padding: 2px 10px;
                }

                .form_presencemonitor .item .contragent_photo {
                    width: 38px;
                    height: 38px;
                }

                .form_presencemonitor .item .actions-row .out,
                .form_presencemonitor .item .actions-row .nto {
                    padding: 6px 18px;
                    font-size: 13px;
                }
        }
        /* Маленькие экраны (телефоны) */
        @media (max-width: 560px) {
            .form_presencemonitor .item {
                padding: 4px 14px;
                min-height: 70px;
                gap: 4px;
            }

                .form_presencemonitor .item .header-row .time {
                    font-size: 14px;
                }

                .form_presencemonitor .item .header-row .time_total {
                    font-size: 11px;
                    padding: 1px 8px;
                }

                .form_presencemonitor .item .name-row .fio {
                    font-size: 13px;
                }

                .form_presencemonitor .item .name-row .age {
                    font-size: 11px;
                    padding: 1px 6px;
                }

                .form_presencemonitor .item .header-row .prefix {
                    font-size: 9px;
                    padding: 2px 8px;
                }

                .form_presencemonitor .item .contragent_photo {
                    width: 32px;
                    height: 32px;
                }

                .form_presencemonitor .item .actions-row .out,
                .form_presencemonitor .item .actions-row .nto {
                    padding: 5px 14px;
                    font-size: 12px;
                }

                .form_presencemonitor .item.time_warning_status::after {
                    font-size: 16px;
                    right: 8px;
                    top: 6px;
                }
        }
        /* Очень маленькие экраны */
        @media (max-width: 400px) {
            .form_presencemonitor .item {
                padding: 4px 10px;
                min-height: 60px;
                gap: 3px;
            }

                .form_presencemonitor .item .header-row .time {
                    font-size: 12px;
                }

                .form_presencemonitor .item .header-row .time_total {
                    font-size: 10px;
                    padding: 1px 6px;
                }

                .form_presencemonitor .item .name-row .fio {
                    font-size: 11px;
                }

                .form_presencemonitor .item .name-row .age {
                    font-size: 10px;
                    padding: 0px 5px;
                }

                .form_presencemonitor .item .header-row .prefix {
                    font-size: 8px;
                    padding: 1px 6px;
                }

                .form_presencemonitor .item .contragent_photo {
                    width: 26px;
                    height: 26px;
                }

                .form_presencemonitor .item .actions-row .out,
                .form_presencemonitor .item .actions-row .nto {
                    padding: 4px 12px;
                    font-size: 11px;
                }


                .form_presencemonitor .item.time_warning_status::after {
                    font-size: 14px;
                    right: 6px;
                    top: 4px;
                }
        }
        /*--------------------------------------*/

        .ui-dialog .nto_docx {
            position: absolute;
            bottom: 10px;
            right: 32px;
            background-color: var(--background-color-blur);
            backdrop-filter: var(--backdrop-filter);
        }

            .ui-dialog .nto_docx legend {
                color: var(--color-meta);
                font-size: 90%;
                text-transform: lowercase;
            }

                .ui-dialog .nto_docx legend::before {
                    content: "🖨";
                    /* position: absolute; */
                    font-size: 19px;
                    position: relative;
                    top: 3px;
                    left: -2px;
                    color: var(--color-blue);
                }
        /*--------------------WIGET--------------------------*/
        .wiget_funnel_moving.funnel-container {
            width: 98%;
        }
        /* Горизонтальная обертка */
        .wiget_funnel_moving .funnel-horizontal-wrapper {
            display: inline-flex;
        }
        /* Горизонтальное расположение элементов */
        .wiget_funnel_moving.horizontal-layout .funnel-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0;
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.4s ease;
            min-width: 80px;
            max-width: 100px;
            flex-shrink: 0;
        }

            .wiget_funnel_moving.horizontal-layout .funnel-item.visible {
                opacity: 1;
                transform: translateX(0);
            }
        /* Компактные точки */
        .wiget_funnel_moving.horizontal-layout .funnel-point {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin: 0 0 8px 0;
            flex-shrink: 0;
            position: relative;
            z-index: 2;
        }

        .wiget_funnel_moving.horizontal-layout .funnel-item.history .funnel-point {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
        }

        .wiget_funnel_moving.horizontal-layout .funnel-item.current .funnel-point {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
            animation: pulse 2s infinite;
        }
        /* Узкие контентные блоки */
        .wiget_funnel_moving.horizontal-layout .funnel-content {
            background: var(--funnel-item-background-color);
            padding: 8px 10px;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            border: 1px solid #e1e5e9;
            width: 100%;
            text-align: center;
            transition: all 0.2s ease;
        }

        .wiget_funnel_moving.horizontal-layout .funnel-item.history .funnel-content {
            border-top: 3px solid #667eea;
            border-left: none;
        }

        .wiget_funnel_moving.horizontal-layout .funnel-item.current .funnel-content {
            border-top: 3px solid #f5576c;
            border-left: none;
            transform: scale(1.02);
        }

        .wiget_funnel_moving.horizontal-layout .funnel-content:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
        }
        /* Компактный текст */
        .wiget_funnel_moving.horizontal-layout .funnel-name {
            font-size: 11px;
            font-weight: 600;
            color: var(--fore-color);
            margin-bottom: 3px;
            line-height: 1.2;
            word-break: break-word;
        }

        .wiget_funnel_moving.horizontal-layout .funnel-date {
            font-size: 9px;
            color: var(--color-meta);
            margin-bottom: 5px;
            line-height: 1.1;
        }
        /* Компактные баджи */
        .wiget_funnel_moving.horizontal-layout .history-badge {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 10px;
            font-size: 8px;
            font-weight: 600;
            text-transform: uppercase;
            background: #e9d8fd;
            color: #6b46c1;
        }

            .wiget_funnel_moving.horizontal-layout .history-badge.active {
                background: #fed7d7;
                color: #c53030;
                animation: glow 2s ease-in-out infinite alternate;
            }
        /* Горизонтальные стрелки */
        .wiget_funnel_moving.horizontal-layout .funnel-arrow {
            font-size: 16px;
            color: #cbd5e0;
            margin: 0 2px;
            animation: bounce-horizontal 1s infinite;
            flex-shrink: 0;
        }
        /* Горизонтальная анимация стрелки */
        @keyframes bounce-horizontal {
            0%, 100% {
                transform: translateX(0);
            }

            50% {
                transform: translateX(2px);
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 2px 8px var(--background-color-blur2);
            }

            50% {
                transform: scale(1.01);
                box-shadow: 0 2px 10px var(--background-color-blur2);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 2px 8px var(--background-color-blur2);
            }
        }

        @keyframes glow {
            from {
                box-shadow: 0 0 2px #fed7d7;
            }

            to {
                box-shadow: 0 0 6px #fed7d7;
            }
        }
        /* Адаптивность */
        @media (max-width: 480px) {
            .wiget_funnel_moving.funnel-container {
                padding: 5px 3px;
            }

            .wiget_funnel_moving .funnel-horizontal-wrapper {
                gap: 6px;
            }

            .wiget_funnel_moving.horizontal-layout .funnel-item {
                min-width: 70px;
                max-width: 85px;
            }

            .wiget_funnel_moving.horizontal-layout .funnel-content {
                padding: 6px 8px;
            }

            .wiget_funnel_moving.horizontal-layout .funnel-name {
                font-size: 10px;
            }

            .wiget_funnel_moving.horizontal-layout .funnel-date {
                font-size: 8px;
            }

            .wiget_funnel_moving.horizontal-layout .funnel-arrow {
                font-size: 14px;
            }
        }
        /* Горизонтальная линия соединения (опционально) */
        .wiget_funnel_moving.horizontal-layout .funnel-horizontal-wrapper::before {
            content: '';
            position: absolute;
            top: 6px; /* Выравнивание по центру точек */
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(to right, #667eea, #f5576c);
            opacity: 0.3;
            z-index: 1;
        }
        /*--------------------/WIGET--------------------------*/
        /*-----------Contragent RIGTH PANEL-------------*/
        /* Основной контейнер правой панели */
        .contragent_rigth_panel {
            width: 140px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            overflow-y: auto;
            position: absolute;
            right: -142px;
            top: 0px;
            max-height: 430px;
        }
            /* Стили для элементов-абонементов */
            .contragent_rigth_panel .item {
                position: relative;
                width: 100%;
                min-height: 70px;
                padding: 10px 8px;
                background: var(--background-color-blur);
                backdrop-filter: var(--backdrop-filter);
                border: 1px solid var(--color-meta);
                border-radius: 8px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
                cursor: pointer;
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 6px;
            }
                /* Состояние при наведении */
                .contragent_rigth_panel .item:hover {
                    box-shadow: var(--box-shadow);
                }
            /* Стили для типа абонемента */
            .contragent_rigth_panel .type {
                font-size: 9px;
                font-weight: 400;
                color: black;
                text-transform: uppercase;
                letter-spacing: 0.8px;
                line-height: 1.2;
                padding: 2px 4px;
                background: var(--color-white-green);
                border-radius: 3px;
                text-align: center;
                display: inline-block;
                align-self: flex-start;
            }

            .contragent_rigth_panel .item.active .type {
                background: #d3f9d8;
                color: #2b8a3e;
            }
            /* Стили для названия */
            .contragent_rigth_panel .name {
                font-size: 11px;
                font-weight: 600;
                color: var(--fore-color);
                line-height: 1.3;
                word-break: break-word;
                text-align: center;
                margin: 2px 0;
            }

            .contragent_rigth_panel .item.active .name {
                color: var(--color-meta);
            }
            /* Стили для периода действия */
            .contragent_rigth_panel .between {
                font-size: 9px;
                color: var(--color-meta);
                font-style: italic;
                text-align: center;
                line-height: 1.2;
                padding: 1px 0;
                margin-top: 2px;
            }

            .contragent_rigth_panel .item.active .between {
                color: #74b816;
                border-top-color: #e9fac8;
            }
            /* Состояние при клике */
            .contragent_rigth_panel .item:active {
                transform: scale(0.98);
                transition: transform 0.1s ease;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }

            .contragent_rigth_panel .item .text_items {
            }

                .contragent_rigth_panel .item .text_items .t1 {
                    display: inline-block;
                    width: 70%;
                    text-transform: lowercase;
                }

                .contragent_rigth_panel .item .text_items .t2 {
                }
        /*-----------/Contragent RIGTH PANEL-------------*/
        .ui-dialog .bookmark_icon {
            background-image: url("/css/img/bookmark.png");
            background-size: cover;
            position: absolute;
            width: 18px;
            height: 18px;
            top: 3px;
            right: 4px;
            cursor: pointer;
        }

        .bookmark_container {
            z-index: 1;
            display: block;
            position: absolute;
            margin: auto;
            top: 0px;
            width: 134px;
            text-align: center;
            /* left: 30%; */
            right: -132px;
            height: auto;
            max-height: 70%;
            overflow-x: hidden;
            overflow-y: auto;
        }

            .bookmark_container .item {
                background: var(--background-color-blur4);
                backdrop-filter: var(--backdrop-filter);
                border: var(--border);
                width: 120px;
                line-height: 1.3;
                word-break: break-word;
                text-align: center;
                margin: 2px 0;
                font-size: 11px;
                display: inline-flex;
                margin: 2px;
                display: flex;
            }

                .bookmark_container .item img {
                    top: -6px;
                    border-radius: 50px;
                    width: 34px;
                    height: 34px;
                    position: relative;
                    margin-top: auto;
                    left: -8%;
                }

                .bookmark_container .item::after {
                    content: attr(data-name);
                }

        .accounts_selector_container {
            padding-top: 30px;
        }

            .accounts_selector_container .collapser_container {
                background-color: var(--background-color-blur2);
            }

                .accounts_selector_container .collapser_container header {
                    position: absolute;
                    border: var(--border);
                    border-width: 0px 0px 1px 0px;
                    cursor: pointer;
                }

        .workplace .order_queue_monitor_panel {
            width: 120px;
            height: min-content;
            max-height: 90%;
            overflow-y: auto;
            overflow-x: hidden;
            position: fixed;
            top: 10px;
            right: 0;
        }

            .workplace .order_queue_monitor_panel .item {
                display: block;
                width: 104px;
                height: 81px;
                font-size: 11px;
                font-weight: 600;
                color: var(--color-meta);
                line-height: 1.3;
                word-break: break-word;
                text-align: center;
                backdrop-filter: var(--backdrop-filter);
                background-color: var(--background-color-blur);
                margin: 3px 0px;
                cursor: pointer;
                border: var(--border);
                position: relative;
                margin: auto;
                margin-top: 4px;
                background: var(--background-color-blur);
                backdrop-filter: var(--backdrop-filter);
                border-radius: 10px;
                padding: 1px;
                background-color: var(--message-item-background);
            }

                .workplace .order_queue_monitor_panel .item::before {
                    content: "Ордер";
                    font-size: 9px;
                    /* font-weight: 800; */
                    color: black;
                    text-transform: uppercase;
                    letter-spacing: 0.8px;
                    line-height: 1.2;
                    padding: 2px 4px;
                    background: var(--color-white-green);
                    border-radius: 3px;
                    text-align: center;
                    /* display: inline-block; */
                    align-self: flex-start;
                    position: relative;
                    top: -7px;
                }

                .workplace .order_queue_monitor_panel .item .name {
                    color: var(--fore-color);
                    font-style: italic;
                    font-size: 12px;
                    position: absolute;
                    top: 20px;
                    right: 10px;
                }
        /*----------------security_post----------------*/
        /* Основной контейнер */
        .security_post {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            padding: 16px;
            width: 100%;
            box-sizing: border-box;
            justify-content: center; /* Центрируем на мобильных */
            overflow: auto;
        }
            /* Карточка */
            .security_post .item {
                display: flex;
                flex-direction: column;
                width: 100%;
                max-width: 340px;
                background: #ffffff;
                border-radius: 28px;
                padding: 20px 16px 20px 16px;
                box-shadow: 0 10px 30px -5px rgba(0, 20, 30, 0.15);
                transition: all 0.25s ease;
                position: relative;
                border: 1px solid rgba(164, 186, 198, 0.2);
                box-sizing: border-box;
                margin: 0;
                animation: fadeInUp 0.4s ease forwards;
            }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* Эмодзи-статус */
        .security_post .item.result_1::after {
            content: "🟢";
            position: absolute;
            top: -8px;
            right: -8px;
            font-size: 36px;
            filter: drop-shadow(0 4px 6px rgba(0, 180, 0, 0.3));
            z-index: 5;
            background: white;
            border-radius: 50%;
            padding: 4px;
            line-height: 1;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }

        .security_post .item.result_2::after {
            content: "🔴";
            position: absolute;
            top: -8px;
            right: -8px;
            font-size: 36px;
            filter: drop-shadow(0 4px 6px rgba(220, 38, 38, 0.3));
            z-index: 5;
            background: white;
            border-radius: 50%;
            padding: 4px;
            line-height: 1;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }
        /* Фото */
        .security_post .item .contragent_photo {
            width: 160px;
            height: 160px;
            border-radius: 50%;
            margin: 5px auto 15px auto;
            background-size: cover;
            background-position: center;
            background-color: #d9e2e9;
            border: 4px solid white;
            box-shadow: 0 8px 18px -6px rgba(33, 37, 41, 0.2);
            transition: transform 0.2s ease;
        }

        .security_post .item:hover .contragent_photo {
            transform: scale(1.02);
        }
        /* Заглушка для фото */
        .security_post .item .contragent_photo[style*="no_photo.png"] {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238b9bb0"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
            background-size: 80px 80px;
            background-repeat: no-repeat;
            background-position: center 45px;
        }
        /* Время */
        .security_post .item .time {
            font-size: 22px;
            font-weight: 700;
            color: #1a3b4f;
            text-align: center;
            margin: 8px 0 4px 0;
            letter-spacing: -0.3px;
            background: #e3f0f8;
            padding: 8px 12px;
            border-radius: 40px;
            display: inline-block;
            align-self: center;
        }
        /* ФИО */
        .security_post .item .fio {
            font-size: 18px;
            font-weight: 600;
            color: #0b2a38;
            text-align: center;
            margin: 8px 0 4px 0;
            line-height: 1.4;
            word-break: break-word;
            padding: 0 5px;
        }
        /* Возраст */
        .security_post .item .age {
            font-size: 16px;
            font-weight: 500;
            color: #3e5e70;
            text-align: center;
            margin: 5px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

            .security_post .item .age::before {
                content: "🎂";
                font-size: 18px;
                opacity: 0.7;
            }
        /* Направление */
        .security_post .item .direction {
            font-size: 24px;
            font-weight: 600;
            text-align: center;
            margin: 10px 0 8px 0;
            padding: 10px 0;
            border-radius: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            background: #fbfbfb;
        }
            /* Выход */
            .security_post .item .direction._2 {
                color: #b13e3e;
            }

                .security_post .item .direction._2::before {
                    content: "🚶➡️";
                    font-size: 28px;
                    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
                }

                .security_post .item .direction._2::after {
                    content: "выход";
                    font-size: 18px;
                    font-weight: 500;
                    background: rgba(177, 62, 62, 0.1);
                    padding: 4px 12px;
                    border-radius: 30px;
                }
            /* Вход */
            .security_post .item .direction._1 {
                color: #1f7840;
            }

                .security_post .item .direction._1::before {
                    content: "⬅️🚶";
                    font-size: 28px;
                    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
                }

                .security_post .item .direction._1::after {
                    content: "вход";
                    font-size: 18px;
                    font-weight: 500;
                    background: rgba(31, 120, 64, 0.1);
                    padding: 4px 12px;
                    border-radius: 30px;
                }
        /* Описание */
        .security_post .item .description {
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            margin-top: 12px;
            padding: 10px 0 5px 0;
            border-top: 2px solid #e2ecf3;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .security_post .item.result_1 .description::before {
            content: "✅";
            font-size: 22px;
        }

        .security_post .item.result_2 .description::before {
            content: "⛔";
            font-size: 22px;
        }

        .security_post .item.result_1 .description {
            color: #1f8b4c;
        }

        .security_post .item.result_2 .description {
            color: #b13e3e;
        }

        .security_post .geo {
            text-align: center;
            font-size: 22px;
            color: var(--color-red);
        }

            .security_post .geo.valid {
                color: var(--color-green);
            }


        .security_post .item .geo::before {
            content: "⛔";
        }

        .security_post .item .geo.valid::before {
            content: "🟢";
            color: var(--color-green);
        }
        /* ========== МОБИЛЬНЫЕ ТЕЛЕФОНЫ (до 600px) ========== */
        @media screen and (max-width: 599px) {
            .security_post {
                display: block;
                padding: 12px;
                gap: 16px;
                justify-content: center; /* Центрируем карточки */
            }

                .security_post .item {
                    width: 100%;
                    max-width: 340px;
                    margin-right: auto;
                }
        }
        /* ========== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 400px) ========== */
        @media screen and (max-width: 399px) {
            .security_post {
                display: block;
                padding: 10px;
                gap: 14px;
            }

                .security_post .item {
                    max-width: 300px;
                    padding: 16px 12px;
                }

                    .security_post .item .contragent_photo {
                        width: 130px;
                        height: 130px;
                    }

                    .security_post .item .time {
                        font-size: 20px;
                        padding: 6px 10px;
                    }

                    .security_post .item .fio {
                        font-size: 17px;
                    }

                    .security_post .item .age {
                        font-size: 15px;
                    }

                    .security_post .item .direction {
                        font-size: 20px;
                        padding: 8px 0;
                        gap: 8px;
                    }

                        .security_post .item .direction._2::before,
                        .security_post .item .direction._1::before {
                            font-size: 24px;
                        }

                        .security_post .item .direction._2::after,
                        .security_post .item .direction._1::after {
                            font-size: 15px;
                            padding: 3px 8px;
                        }

                    .security_post .item .description {
                        font-size: 16px;
                    }
        }
        /* ========== ПЛАНШЕТЫ (от 600px до 899px) ========== */
        @media screen and (min-width: 600px) and (max-width: 899px) {
            .security_post {
                gap: 20px;
                padding: 20px;
                justify-content: flex-start; /* Слева на планшетах */
            }

                .security_post .item {
                    width: calc(50% - 10px); /* Две колонки */
                    max-width: none; /* Убираем ограничение, чтобы заполняли пространство */
                }
        }
        /* ========== НЕБОЛЬШИЕ ДЕСКТОПЫ (от 900px до 1199px) ========== */
        @media screen and (min-width: 900px) and (max-width: 1199px) {
            .security_post {
                gap: 24px;
                padding: 24px;
                justify-content: flex-start;
            }

                .security_post .item {
                    width: calc(33.333% - 16px); /* Три колонки */
                    max-width: none;
                }
        }
        /* ========== БОЛЬШИЕ ДЕСКТОПЫ (от 1200px) ========== */
        @media screen and (min-width: 1200px) {
            .security_post {
                gap: 28px;
                padding: 28px;
                justify-content: flex-start;
            }

                .security_post .item {
                    width: calc(25% - 21px); /* Четыре колонки */
                    max-width: none;
                }
        }
        /* ========== ОЧЕНЬ БОЛЬШИЕ ЭКРАНЫ (от 1600px) ========== */
        @media screen and (min-width: 1600px) {
            .security_post {
                gap: 30px;
                padding: 30px;
            }

                .security_post .item {
                    width: calc(20% - 24px); /* Пять колонок */
                }
        }
        /* Темная тема */
        @media (prefers-color-scheme: dark) {
            .security_post .item {
                background: #1f2c38;
                border-color: #364b5c;
                box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
            }

                .security_post .item .time {
                    background: #2e404f;
                    color: #d8edfa;
                }

                .security_post .item .fio {
                    color: #e3f0f8;
                }

                .security_post .item .age {
                    color: #9ab3c7;
                }

                    .security_post .item .age::before {
                        opacity: 0.5;
                    }



                .security_post .item .description {
                    border-top-color: #2e404f;
                }

                .security_post .item .contragent_photo {
                    border-color: #2e404f;
                }

                .security_post .item.result_1::after {
                    background: #1f2c38;
                }

                .security_post .item.result_2::after {
                    background: #1f2c38;
                }
        }
        /*---------------------------------------------*/
        .ui-dialog .sip_card_description {
            position: absolute;
            top: 2px;
            left: 40%;
            background-color: var(--color-orangered);
            padding: 3px 20px;
            border-radius: 2px;
        }

        .toast.sip_event {
            cursor: pointer;
            padding: 0px;
            background-color: #404940eb;
        }

            .toast.sip_event .contragent_photo {
                float: left;
                display: block;
                width: 52px;
                height: 52px;
                margin: 3px 10px 0px 7px;
                border-radius: 52px;
            }

            .toast.sip_event .description {
                font-weight: bold;
            }

            .toast.sip_event .meta {
                display: block;
                color: #9dff9a;
            }


            .toast.sip_event .owner {
                text-align: right;
                display: block;
                font-size: 14px;
                position: absolute;
                bottom: -17px;
                color: var(--fore-color);
            }

                .toast.sip_event .owner:before {
                    content: "🤵";
                }
            /* Анимированный эмодзи для входящего звонка */
            .toast.sip_event::before {
                content: "🔔";
                position: absolute;
                top: -7px;
                left: -18px;
                font-size: 20px;
                animation: ring_sip 1.5s infinite ease-in-out;
                z-index: 10;
                /* background: rgba(255, 255, 255, 0.9); */
                border-radius: 50%;
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        /* Анимация звонка */
        @keyframes ring_sip {
            0% {
                transform: rotate(0deg) scale(1);
            }

            10% {
                transform: rotate(-15deg) scale(1.1);
            }

            20% {
                transform: rotate(15deg) scale(1.1);
            }

            30% {
                transform: rotate(-10deg) scale(1.05);
            }

            40% {
                transform: rotate(10deg) scale(1.05);
            }

            50% {
                transform: rotate(0deg) scale(1);
            }

            100% {
                transform: rotate(0deg) scale(1);
            }
        }
        /* Альтернативная анимация пульсации */
        .toast.sip_event .call-emoji.pulse {
            animation: pulse_sip 1.5s infinite;
        }

        @keyframes pulse_sip {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.2);
                opacity: 0.8;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }
        /*---------------PaymentLink dialog-----------*/
        .payment_link_dialog {
            min-width: 500px;
            max-width: 600px;
        }
            /* Контейнер ссылки */
            .payment_link_dialog .link-container {
                display: flex;
                align-items: center;
                gap: 10px;
                margin: 15px 0;
                padding: 15px;
            }
            /* Ссылка на оплату */
            .payment_link_dialog .payment-link {
                flex: 1;
                padding: 8px 12px;
                background-color: white;
                border: 1px solid #d0d0d0;
                border-radius: 4px;
                font-family: monospace;
                font-size: 14px;
                color: #0066cc;
                text-decoration: none;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

                .payment_link_dialog .payment-link:hover {
                    text-decoration: underline;
                    background-color: #f8f8f8;
                }
            /* Кнопка копирования с иконкой через псевдоэлемент */
            .payment_link_dialog .copy-button {
                position: relative;
                padding: 8px 16px 8px 36px; /* Отступ слева для иконки */
                background-color: #4CAF50;
                color: white;
                border: none;
                border-radius: 4px;
                cursor: pointer;
                font-size: 14px;
                font-weight: 500;
                transition: background-color 0.2s;
                white-space: nowrap;
            }

                .payment_link_dialog .copy-button::before {
                    content: "📋";
                    position: absolute;
                    left: 12px;
                    top: 50%;
                    transform: translateY(-50%);
                    font-size: 16px;
                }

                .payment_link_dialog .copy-button:hover {
                    background-color: #45a049;
                }

                .payment_link_dialog .copy-button:active {
                    transform: translateY(1px);
                }
            /* Контейнер для списка телефонов */
            .payment_link_dialog .phones-container {
                margin-top: 20px;
                padding: 15px;
                background-color: #fafafa;
                border-radius: 6px;
                border: 1px solid #e8e8e8;
            }

                .payment_link_dialog .phones-container h3 {
                    position: relative;
                    margin: 0 0 15px 0;
                    padding-left: 28px; /* Отступ для иконки */
                    font-size: 16px;
                    color: #333;
                    font-weight: 500;
                }

                    .payment_link_dialog .phones-container h3::before {
                        content: "📱";
                        position: absolute;
                        left: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        font-size: 18px;
                    }
            /* Элемент списка телефонов */
            .payment_link_dialog .phone-item {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 10px;
                margin-bottom: 8px;
                background-color: white;
                border-radius: 4px;
                border: 1px solid #e0e0e0;
                transition: background-color 0.2s;
            }

                .payment_link_dialog .phone-item:hover {
                    background-color: #f8f8f8;
                }

                .payment_link_dialog .phone-item:last-child {
                    margin-bottom: 0;
                }

            .payment_link_dialog .phone-number {
                position: relative;
                padding-left: 28px; /* Отступ для иконки */
                font-family: monospace;
                font-size: 15px;
                color: #333;
            }

                .payment_link_dialog .phone-number::before {
                    content: "📞";
                    position: absolute;
                    left: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    font-size: 16px;
                }
            /* Кнопка отправки SMS с иконкой */
            .payment_link_dialog .sms-button {
                position: relative;
                padding: 6px 12px 6px 32px;
                /* background-color: #2196F3; */
                color: black;
                /* border: none; */

                cursor: pointer;
                font-size: 13px;
                transition: background-color 0.2s;
                white-space: nowrap;
                border-color: black;
                border: var(--border);
            }

                .payment_link_dialog .sms-button::before {
                    content: "✉️";
                    position: absolute;
                    left: 10px;
                    top: 50%;
                    transform: translateY(-50%);
                    font-size: 14px;
                }

                .payment_link_dialog .sms-button:hover {
                    background-color: var(--color-white-green);
                }

                .payment_link_dialog .sms-button:active {
                    transform: translateY(1px);
                }
            /* Стили для сообщения об ошибке */
            .payment_link_dialog h2 {
                position: relative;
                color: var(--color-darkslateblue);
                font-size: 16px;
                font-weight: normal;
                text-align: center;
                padding: 0px 20px 20px 0px;
                margin: 0;
                text-transform: uppercase;
            }

                .payment_link_dialog h2::before {
                    content: "⚠️";
                    position: absolute;
                    left: 20px;
                    top: 20%;
                    transform: translateY(-50%);
                    font-size: 20px;
                }
            /* Анимация для кнопок */
            .payment_link_dialog .copy-button,
            .payment_link_dialog .sms-button {
                overflow: hidden;
            }

                .payment_link_dialog .copy-button::after,
                .payment_link_dialog .sms-button::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 5px;
                    height: 5px;
                    background: rgba(255, 255, 255, 0.5);
                    opacity: 0;
                    border-radius: 100%;
                    transform: scale(1, 1) translate(-50%);
                    transform-origin: 50% 50%;
                }

                .payment_link_dialog .copy-button:focus:not(:active)::after,
                .payment_link_dialog .sms-button:focus:not(:active)::after {
                    animation: ripple 0.6s ease-out;
                }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }

            20% {
                transform: scale(25, 25);
                opacity: 0.5;
            }

            100% {
                opacity: 0;
                transform: scale(40, 40);
            }
        }

        .lockerobject_selector {
            font-size: 20px;
            text-align: center;
            padding: 0px 0px 10px 0px;
            margin: auto;
            text-align: center;
            max-width: 90%;
            max-height: 90%;
        }

            .lockerobject_selector header {
                margin-bottom: 5px;
            }

            .lockerobject_selector .sector {
            }

                .lockerobject_selector .sector .key {
                    display: inline-block;
                    width: 50px;
                    color: black;
                }

                    .lockerobject_selector .sector .key.busy_0 {
                        background-color: #009f00;
                    }

                    .lockerobject_selector .sector .key.busy_1 {
                        background-color: var(--color-red);
                    }

                    .lockerobject_selector .sector .key:hover {
                        color: var(--color-yellow);
                        cursor: pointer;
                    }
        /* ===== Save Filter Dialog ===== */
        .save_filter_dialog {
            min-width: 512px;
            max-width: 600px;
            padding: 20px 24px 16px;
            /* background: var(--theme-background-color); */
            /* border-radius: var(--border-radius-default); */
            box-shadow: var(--box-shadow);
            /* border: var(--border); */
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
            /* --- Форма создания --- */
            .save_filter_dialog .new_filter_container {
                flex-shrink: 0;
            }

            .save_filter_dialog .new_filter_form fieldset {
                padding: 5px 12px;
                margin: 0;
                width: 100%;
            }

            .save_filter_dialog .new_filter_form legend {
                font-weight: 500;
                color: var(--fore-color);
                padding: 0 8px;
                font-size: 13px;
                opacity: 0.7;
            }

            .save_filter_dialog .new_filter_form .text-field__input {
                display: block;
                width: 100%;
                margin-bottom: 8px;
                padding: 6px 10px;
                background: var(--background-color);
                color: var(--fore-color);
                border: var(--border);
                border-radius: 6px;
                font-size: 13px;
                transition: border-color 0.2s;
                box-sizing: border-box;
                height: 32px;
            }

                .save_filter_dialog .new_filter_form .text-field__input:focus {
                    outline: none;
                    border-color: var(--theme-color-1);
                }

                .save_filter_dialog .new_filter_form .text-field__input.error_input {
                    border-color: var(--color-red);
                    animation: pulse 0.4s ease 2;
                }

            .save_filter_dialog .save_filter_btn {
                padding: 6px;
                font-weight: 500;
                color: var(--button-fore-color);
                transition: all 0.2s ease;
                text-align: center;
                height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
            }

                .save_filter_dialog .save_filter_btn:hover {
                    background: var(--button-animate-bg-color);
                    color: var(--button-fore-color-hover);
                }
            /* --- Список --- */
            .save_filter_dialog .filter_list_container {
                flex: 1;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
                gap: 6px;
                min-height: 120px;
                max-height: 350px;
                padding-right: 2px;
            }

                .save_filter_dialog .filter_list_container::-webkit-scrollbar {
                    width: 4px;
                }

                .save_filter_dialog .filter_list_container::-webkit-scrollbar-track {
                    background: transparent;
                }

                .save_filter_dialog .filter_list_container::-webkit-scrollbar-thumb {
                    background: var(--color-meta);
                    border-radius: 4px;
                }
            /* --- Пустое состояние --- */
            .save_filter_dialog .empty_message {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 30px 20px;
                color: var(--color-meta);
            }

                .save_filter_dialog .empty_message .emoji {
                    font-size: 36px;
                    margin-bottom: 8px;
                }

                .save_filter_dialog .empty_message h2 {
                    font-weight: 400;
                    font-size: 15px;
                    margin: 0;
                }
            /* --- Карточка фильтра --- */
            .save_filter_dialog .filter_item {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 8px 12px;
                background: var(--background-color);
                border: var(--border);
                border-radius: 6px;
                cursor: pointer;
                transition: all 0.2s ease;
                gap: 12px;
                height: min-content;
                position: relative;
            }

                .save_filter_dialog .filter_item:hover {
                    background: var(--background-color-blur3);
                    border-color: var(--border-color);
                }
                /* --- Псевдоэлементы для полей --- */
                .save_filter_dialog .filter_item .filter_name::before {
                    content: "📌 ";
                    font-size: 12px;
                }

                .save_filter_dialog .filter_item .filter_description::before {
                    content: "📝 ";
                    font-size: 11px;
                }

                .save_filter_dialog .filter_item .filter_meta::before {
                    content: "ℹ️ ";
                    font-size: 10px;
                }
                /* --- Альтернативный вариант с иконками через after --- */
                .save_filter_dialog .filter_item .filter_name::after {
                    content: "";
                    margin-left: 4px;
                }
            /* --- Информация --- */
            .save_filter_dialog .filter_info {
                flex: 1;
                min-width: 0;
                display: flex;
                flex-direction: column;
                gap: 2px;
                overflow: hidden;
            }

            .save_filter_dialog .filter_header {
                display: flex;
                align-items: center;
                gap: 6px;
            }

            .save_filter_dialog .filter_name {
                font-size: 14px;
                font-weight: 500;
                color: var(--fore-color);
                display: inline-flex;
                align-items: center;
                gap: 4px;
            }

            .save_filter_dialog .filter_private_type {
                font-size: 12px;
                opacity: 0.6;
                flex-shrink: 0;
            }

            .save_filter_dialog .filter_meta {
                font-size: 11px;
                color: var(--color-meta);
                opacity: 0.7;
                display: inline-flex;
                align-items: center;
                gap: 4px;
            }

            .save_filter_dialog .filter_description {
                font-size: 12px;
                color: var(--description-color);
                /* background: var(--description-bgcolor); */
                padding: 2px 8px;
                border-radius: 4px;
                display: inline-flex;
                align-items: center;
                gap: 4px;
                max-width: 100%;
                opacity: 0.8;
                border: 1px solid var(--border-color);
                padding: 7px;
                font-style: italic;
            }
            /* --- Действия --- */
            .save_filter_dialog .filter_actions {
                display: flex;
                align-items: center;
                gap: 4px;
                flex-shrink: 0;
            }

            .save_filter_dialog .apply_filter_btn {
                width: 28px;
                height: 28px;
                padding: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                border: none;
                border-radius: 50%;
                font-size: 23px;
                cursor: pointer;
                transition: all 0.2s ease;
                opacity: 0.7;
            }

                .save_filter_dialog .apply_filter_btn::before {
                    content: "⚡";
                }

                .save_filter_dialog .apply_filter_btn:hover {
                    opacity: 1;
                    transform: scale(1.1);
                }

            .save_filter_dialog .delete_filter_btn {
                width: 24px;
                height: 24px;
                padding: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                background: transparent;
                border: none;
                border-radius: 50%;
                font-size: 29px;
                cursor: pointer;
                transition: all 0.2s ease;
                opacity: 0.7;
                color: var(--color-red);
            }

                .save_filter_dialog .delete_filter_btn:hover {
                    opacity: 1;
                    background: var(--background-color-darkred);
                }
        /* --- Анимация ошибки --- */
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.02);
            }
        }
        /* --- Адаптивность --- */
        @media (max-width: 600px) {
            .save_filter_dialog {
                min-width: unset;
                width: 92vw;
                padding: 16px;
            }

                .save_filter_dialog .filter_item {
                    flex-wrap: wrap;
                    padding: 8px 10px;
                }

                .save_filter_dialog .filter_actions {
                    width: 100%;
                    justify-content: flex-end;
                    padding-top: 4px;
                }

                .save_filter_dialog .filter_list_container {
                    max-height: 200px;
                }
        }
.progress_bar.percent_used {
    position: absolute;
    top: 6px;
    height: 13px;
    width: 100px;
    left: 64%;
    border-radius: 48px;
}
.progress_bar .progress_label {
    font-size: 11px;
    top: 7px;
    color:black;
}

.item.nto .progress_bar {
    width: 45px;
    height: 9px;
    position: absolute;
    top: -5px;
}
    .item.nto .progress_bar .progress_label {
        font-size: 10px;
        top: 4px;
        color: black;
    }

.link.fastauth {
    display: inline-block;
    margin: 10px;
}

.fastauth_setting_dialog {
    padding: 28px 32px 32px;
    gap: 16px;
    min-width: 380px;
    max-width: 480px;
}

    .fastauth_setting_dialog select,
    .fastauth_setting_dialog input[type="datetime-local"] {
        width: max-content;
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .fastauth_setting_dialog > .button {
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        border-radius: 8px;
        cursor: pointer;
        box-sizing: border-box;
        width: 50%;
        margin: auto;
        margin-top: 20px;
    }

  /*  SIP form HISTORY*/

.sip_history_browser {
    padding: 0 !important;
}

    .sip_history_browser .content {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 8px;
        box-sizing: border-box;
        gap: 8px;
    }

    .sip_history_browser .tools {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

        .sip_history_browser .tools .counter {
            font-size: 12px;
            opacity: 0.7;
        }

    .sip_history_browser .table_container {
        flex: 1;
        overflow: auto;
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.15);
    }

    .sip_history_browser .datagrid_table {
        width: 100%;
        border-collapse: collapse;
    }

        .sip_history_browser .datagrid_table th {
            position: sticky;
            top: 0;
            background: rgba(20, 20, 20, 0.95);
            padding: 8px 10px;
            font-weight: 500;
            font-size: 12px;
            opacity: 0.7;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .sip_history_browser .datagrid_table td {
            padding: 8px 10px;
            font-size: 13px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            vertical-align: middle;
        }

        .sip_history_browser .datagrid_table tr:hover td {
            background: rgba(255, 255, 255, 0.03);
        }

    /* направление */
    .sip_history_browser [data-dir="1"] {
        color: #6cd66c;
    }
    /* входящий */
    .sip_history_browser [data-dir="2"] {
        color: #6ca9d6;
    }
    /* исходящий */
    .sip_history_browser [data-dir="3"] {
        color: #d6b96c;
    }
    /* внутренний */
    .sip_history_browser [data-dir="4"] {
        color: #b86cd6;
    }
    /* перевод */
    .sip_history_browser [data-dir="5"] {
        color: #d66ca9;
    }
    /* конференция */

    .sip_history_browser [data-dir] {
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .sip_history_browser [data-dir] .emoji {
            font-size: 15px;
            line-height: 1;
        }

    /* аудио-кнопки */
    .sip_history_browser .audio_actions, .table_container .audio_actions {
        display: flex;
        gap: 6px;
        align-items: center;
    }

        .sip_history_browser .audio_actions .play,
        .sip_history_browser .audio_actions .download,
        .table_container .play,
        .table_container .download {
            width: 24px;
            height: 24px;
            cursor: pointer;
            border-radius: 4px;
            background-color: rgba(255, 255, 255, 0.05);
            background-size: 14px 14px;
            background-repeat: no-repeat;
            background-position: center;
            transition: background-color 0.15s;
        }

            .sip_history_browser .audio_actions .play:hover,
            .sip_history_browser .audio_actions .download:hover {
                background-color: rgba(255, 255, 255, 0.15);
            }

        /*--- иконки — замени на свои, если у тебя другой стиль */
        .sip_history_browser .audio_actions .play, .table_container .play {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bcd6ff'><path d='M8 5v14l11-7z'/></svg>");
        }

        .sip_history_browser .audio_actions .download, .table_container .download {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bcd6ff'><path d='M5 20h14v-2H5v2zM12 3v10.55l3.5-3.5 1.42 1.42L12 16.4l-4.92-4.93 1.42-1.42 3.5 3.5V3h2z'/></svg>");
        }

        .sip_history_browser .audio_actions .loading {
            opacity: 0.4;
            pointer-events: none;
        }

        .sip_history_browser .audio_actions .no_recording {
            font-size: 11px;
            opacity: 0.4;
            font-style: italic;
        }

/* плеер */
.sip_audio_player {
    padding: 16px 20px;
    min-width: 320px;
    text-align: center;
}

    .sip_audio_player audio {
        width: 100%;
        margin-top: 10px;
        outline: none;
    }