﻿.badge-danger {
    background-color: #d43f3a;
}

.badge-warning {
    background-color: #d58512;
}

.badge-success {
    background-color: #398439;
}

.badge-info {
    background-color: #269abc;
}

.badge-inverse {
    background-color: #333333;
}

.color-danger {
    color: #d43f3a;
}

.color-warning {
    color: #d58512;
}

.color-success {
    color: #398439;
}

.color-info {
    color: #269abc;
}

.color-inverse {
    color: #333333;
}

.badge-nav {
    background-color: rgba(0, 92, 122, 1);
}

.label-narrow {
    padding-left: 5px;
    padding-right: 5px;
}

.tooltip-inner {
    max-width: 350px;
    /*min-width :250px;*/
    text-align: left;
}
.tooltip.in {
    opacity: 1;
    filter: alpha(opacity=100);
}
a.form-control {
    cursor: pointer;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-hide {
    position: relative;
    overflow: hidden;
}

    .input-hide input[type=submit], input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        text-align: right;
        opacity: 0;
        background: none;
        cursor: inherit;
        display: block;
    }


@media all and (min-width: 860px) {
    .modal-xl {
        width: 800px;
    }
}

@media all and (min-width: 960px) {
    .modal-xl {
        width: 900px;
    }
}

@media all and (min-width: 1260px) {
    .modal-xl {
        width: 1200px;
    }
}

@media (min-width: 1500px) {
    .container {
        width: 1370px;
    }

    .jumbotron h1,
    .jumbotron .h1 {
        font-size: 80px;
    }
}

/*@media all and (min-width: 2560px) {
    .modal-xl {
        width: 2500px;
    }
}*/
@media (min-width: 2560px) {
    .container {
        width: 2500px;
    }

    .jumbotron h1,
    .jumbotron .h1 {
        font-size: 80px;
    }
}
div.hovered {
    border: 1px solid transparent;
    background-color: transparent;
}
div.hovered:hover {
    border: 1px solid #d9d9d9;
    background-color: #f5f5f5;
}

.table-hover tr {
    border: 1px solid transparent;
}
.table-hover tr:hover {
    border: 1px solid #d9d9d9;
    background-color: #f5f5f5;
}

.input-sx {
    height: 24px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 0;
}

.btn-xxs,
.btn-group-xxs > .btn {
    height: 24px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 0;
}

.btn-xxs {
    height: 24px;
    padding: 2px 6px;
}

select.input-sx {
    height: 24px;
    line-height: 24px;
}


.panel-white {
    border-color: #dddddd;
}

    .panel-white > .panel-heading {
        color: #333333;
        background-color: rgb(255, 255, 255);
        border-color: #dddddd;
    }

        .panel-white > .panel-heading + .panel-collapse > .panel-body {
            border-top-color: #dddddd;
        }

        .panel-white > .panel-heading .badge {
            color: #f5f5f5;
            background-color: #333333;
        }

    .panel-white > .panel-footer + .panel-collapse > .panel-body {
        border-bottom-color: #dddddd;
    }


/*.navbar-collapse.in {
height:100vh !important;

}*/

.top-box {
    box-shadow: inset 0 7px 9px -7px rgba(161, 161, 161, 0.70);
}

.left-box {
    box-shadow: inset 7px 0 9px -7px rgba(161, 161, 161, 0.70);
}

.right-box {
    box-shadow: inset -7px 0 9px -7px rgba(161, 161, 161, 0.70);
}

.bottom-box {
    box-shadow: inset 0 -7px 9px -7px rgba(161, 161, 161, 0.70);
}


.row-eq-height-all {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    bottom: 0;
}

.input-group .bootstrap-select {
    z-index: inherit !important;
}

.alm-chat-panel {
    /*box-shadow: inset 0 7px 9px -7px rgba(161, 161, 161, 0.70);*/
   border-top: 1px solid #dddddd;
}

html:has(.modal-open) {
    /* Стили, если такой элемент существует */
    overflow: hidden;
}
@media (min-width: 991px) {
    .alm-chat-panel {
        /*box-shadow: inset 7px 0 9px -7px rgba(161, 161, 161, 0.70);*/
        border-left: 1px solid #dddddd
    }
}

@media (min-width: 991px) {
    .row-eq-height {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 100%;
        bottom: 0;
    }
}



.avatar {
   width: 2rem;
    height: 2rem;
    line-height: 2rem;
    border-radius: 50%;
    display: inline-block;
    background: #ced4da no-repeat center/cover;
    position: relative;
    text-align: center;
    color: #868e96;
    font-weight: 600;
    vertical-align: bottom;
    font-size: .875rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.avatar i {
    font-size: 125%;
    vertical-align: sub;
}

.avatar-status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: .75rem;
    height: .75rem;
    border: 2px solid #fff;
    background: #868e96;
    border-radius: 50%;
}

.avatar-sm {
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    font-size: .75rem;
}

.avatar-md {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 1rem;
}

.avatar-lg {
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    font-size: 1.25rem;
}

.avatar-xl {
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    font-size: 1.75rem;
}

.avatar-xxl {
    width: 5rem;
    height: 5rem;
    line-height: 5rem;
    font-size: 2rem;
}

.avatar-placeholder {
    background: #ced4da url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="134" height="134" viewBox="0 0 134 134"><path fill="#868e96" d="M65.92 66.34h2.16c14.802.42 30.928 6.062 29.283 20.35l-1.618 13.32c-.844 6.815-5.208 7.828-13.972 7.866H52.23c-8.764-.038-13.13-1.05-13.973-7.865l-1.62-13.32C34.994 72.4 51.12 66.76 65.92 66.34zM49.432 43.934c0-9.82 7.99-17.81 17.807-17.81 9.82 0 17.81 7.99 17.81 17.81 0 9.82-7.99 17.807-17.81 17.807-9.82 0-17.808-7.987-17.808-17.806z"/></svg>') no-repeat center/80%;
}

.nav-unread {
   /* position: absolute;
    bottom: 8px;
    right: 8px;
    background: #f9ac3c;
    width: 8px;
    height: 8px;*/
    border-radius: 50%;
    position: absolute;
    background: #c00;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    left: 50%;
    border: 2px white solid;
    font-size: x-small;
    text-align: center;
    display: inline-block;
    line-height: 18px;
    margin-left: -11px;
    margin-right: -11px;
}


/*Visibality content depend content container size*/

.SM .HideIf-SM {
    display:none !important ;
}
.VisibleIf-SM, .VisibleIf-SM-inline {
    display: none;
}
.SM .VisibleIf-SM {
    display: block !important;
}
.SM .VisibleIf-SM-inline {
    display: inline !important;
}


.modal-content, .dropdown-menu  {
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2), 0 calc(128 * 0.5px) calc((128 * 1px)) rgba(0, 0, 0, 0.24);
}

@media only screen and (max-width: 768px) {
    .heigh-xs-max {
        height: 100vh; /* Высота 100% от высоты видимой области */
    }
}
.navbar-fixed-top {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(13, 100, 129, 0.76);


}


.modal-open .navbar-fixed-top {

    position: fixed;
 
}
.modal-backdrop.in {
    opacity: 0.05;
}



.modal.in {
    height: 100%;
   
    display: flex!important;
    flex-direction:column;
}
.modal-content {
    height: inherit;
}
 .modal-dialog {
    flex-grow: 1;
}
.modal .modal-body {
    flex-grow: 1;
    overflow-y: auto;
    margin:0 15px;
}
.modal-content-VerticalStreatch {
    display: flex;
    flex-direction: column;
    height: 100%;

}
.flex-VerticalStretch-Container {
    position: fixed; 
    left: 0;
    right: 0;
    top: 0;
     height: 100%; 
    bottom: 0;
}
@media (max-width: 768px) {

    .modal-dialog {
        /*width: 100%; 
            пока убрали потому что и так широко открывается а в результате почему то ухлдит за перделы экрана из за отступов
        */
    }
}

/*New Frid Sistem Body*/

.modal-content.ALM_GridBody {
    display: grid;
    grid-template-columns: 2fr minmax(0, min-content);
    grid-template-rows: auto minmax(0, min-content);
    grid-template-areas: "content comment";
    overflow-y: initial;
    overflow-x: hidden;
    position: absolute;
    inset: 0 0 0 0;
}

.ALM_Stretch {
    position: absolute;
    inset: 0 0 0 0;
}
@media (max-width: 991px) {
    .ALM_Stretch {
        position: initial;
       
    }
}

    .ALM_GridBody .alm-chat-panel {
        grid-area: comment;
        min-width: 350px;
    }

    .ALM_GridBody .alm-content {
        grid-area: content;
    }

    .ALM_GridBody #ContentBody {
        /*padding-top: 15px;*/
    }

    @media (max-width: 991px) {
        .modal-content.ALM_GridBody {
            grid-template-areas: "content"
                "comment";
        }
    }

    body.ALM_GridBody {
        display: grid;
        grid-template-columns: 2fr minmax(0, min-content);
        grid-template-rows: minmax(0, min-content) auto;
        grid-template-areas: "nav nav"
            "content rightSide";
        overflow-y: initial;
        overflow-x: auto;
        height: 100vh;
    }

    .ALM_GridBody .navbar {
        grid-area: nav;
    }

    .ALM_GridBody #ContentBody {
        grid-area: content;
        padding-bottom: 150px;
    }

    .ALM_GridBody .ALM_RightSidePanel {
        grid-area: rightSide;
        width: 100%;
        background-color: azure;
        min-width: 500px;
    }
    /*
на меленьких устройствах раскрываем выпадающий список на весь экран
*/

    .navbar-inverse a, .navbar-nav a {
        color: #fff;
    }

    @media (max-width: 767px) {

        .modal-body {
            position: initial !important;
            overflow-y: initial !important;
        }

        .ALM_GridBody #ContentBody {
            width: 100%;
            overflow-y: inherit;
            
        }

        .dropdown-menu:not(.inner):not([style*="display: none"]) {
            opacity: 1;
            transform: none;
            transition: display 0.5s, transform 0.5s;

            @starting-style {
                opacity: 0;
                transform: translateY(1rem);
            }
        }

        .dropdown-menu:not(.inner) {
            /*position: fixed !important;
            top: 46px;
            left: 0px;
            bottom: 0px;
            right: 0px;
            max-height: none;
            overflow-y: auto;
            margin: 0;
            padding: 10px;
            border-radius: 0px;
            z-index: 9999;
            background-color: white !important;
            min-width: auto !important;*/
            z-index: 9999;
            position: fixed !important;
            inset: auto !important;
            right: 30px !important;
            left: 30px !important;
            bottom: 40px !important;
            bottom: calc(100vh - 100dvh + 60px) !important;
            width: auto;
            padding: 13px;
            border-radius: 15px;
            box-shadow: 1px -16px 67px 57px rgba(0, 0, 0, 0.2), 0 calc(128 * 0.5px) calc((128 * 1px)) rgba(0, 0, 0, 0.24);
            opacity: 0;
            transform: translateY(1rem);
            transition: display 0.1s,opacity 0.1s, transform 0.1s;
            transition-behavior: allow-discrete;
            max-height: calc(100dvh - 80px);
        }

        .dropdown-backdrop {
            background-color: #31302f21;
            /* backdrop-filter: blur(2px);*/
        }

        .dropdown-toggle::after {
            display: none;
        }

        .bootstrap-select.bs-container .dropdown-menu {
            top: auto;
        }

        .modal-dialog {
            margin: 0px;
        }

        .form-control {
            font-size: 16px;
        }



        @media (prefers-color-scheme: light) {
            .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
                color: #333333;
            }
        }
    }

    .modal.in .modal-dialog {
        transform: none; /*Убрать елси будет мешать анимации и сделать только для мобильных*/
    }

    @media (prefers-color-scheme: dark) {

        .bootstrap-select .status {
            background: black !important;
        }

        .bs-searchbox .form-control {
            background: black;
        }

        .dropdown-menu:not(.inner) {
            background-color: #1e1e1e !important;
            color: white;
        }

        .dropdown-menu {
            background-color: #1e1e1e !important;
            color: white;
        }

        .dropdown-item {
            color: white;
        }

            .dropdown-item:hover {
                background-color: #333;
            }

        .dropdown-menu > li > a {
            color: #b6b6b6;
        }

        .btn-group .dropdown-toggle.btn-default ~ .dropdown-menu > li > a {
            color: #b6b6b6;
        }
        .btn-group .dropdown-toggle.btn-default ~ .dropdown-menu > li > a:hover {
            background-color: #333;
        }
            @media (max-width: 767px) {
                .dropdown-backdrop {
                background-color: #31302f21;
                /*backdrop-filter: blur(2px);*/
            }
        }
    }

    .dropdown-toggle > .caret {
        transition: transform 0.3s ease;
    }

    .open > .dropdown-toggle > .caret {
        transform: rotate(180deg);
    }