html,body{
    margin:0;
    padding:0;
}

* {
    outline: none !important;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-top: 1px solid #7f7c7c !important;
    border-bottom: 1px solid #7f7c7c !important;
}

.wrapper {
    flex: 1;
    /*display: flex;*/
    flex-direction: column;
}

#fixed-top-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999; /* чтобы было поверх контента */
}

.content-wrapper {
    flex: 1;
    padding-top: 60px;
}


#eye{
    color:#898686;
    right:10px;
    position: absolute;
    top: 20px;
}

#eye1, #eye2{
    color:#898686;
    position: absolute;
    top: 10px;
    right: 20px;
}

.row-empty-10{
    height: 10px !important;
}

.row-empty-20{
    height: 30px !important;
}

.row-empty-30{
    height: 30px !important;
}

.row-empty-40{
    height: 40px !important;
}

.row-empty-50{
    height: 50px !important;
}

.color-orange-bold{
    font-weight: bold;
    color: #F49739;
}

.color-blue-bold{
    font-weight: bold;
    color: #323366;
}

.color-blue{
    /*font-weight: bold;*/
    color: #323366;
    /*font-size: 0.8em;*/
}

.col-1, .col-2,  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12{
    /*white-space: nowrap;*/
    /*overflow: hidden;*/
    align-self: flex-end;
}

.reference-book-th{
    background-color: #ffac07 !important;
    font-size: 1.2em;
    color: #343a40
}

.users-header{
    background-color: #343a40 !important;
    color: white;
    text-align: center;
    /*font-weight: bolder;*/
}

.carservice-header{
    background-color: #343a40 !important;
    color: white;
    /*font-weight: bolder;*/
}

.services-stocks{
    font-weight: bold;
    color:blue;
}

.check {
    -webkit-appearance: none;
    height: 13px;
    width: 13px;
    transition: 0.10s;
    border: 2px solid red;
    border-radius: 3px;
    outline: none;
    text-align: center;
    font-size: 0.9em;
    font-weight: inherit;
    color: white;
}

.check:checked{
    border: 0;
    background-color: #AAAAAA;
}
.check:checked:before {
    content: "✓";
}

.ksm-info-box{
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 2;
}

.db-null{
    color: #d2d6de !important;
    text-align:right !important;
    white-space: nowrap;
}

.card-hoverable:hover {
    background-color: #e1f1fd;
    -webkit-transform: translateY(-6px);
    transform: translateY(-6px);
    -moz-box-shadow: 0 20px 20px rgba(0, 0, 0, .1);
    webkit-box-shadow: 0 0 25px -5px #9e9c9e;
    box-shadow: 0 0 25px -5px #9e9c9e;
}

.dashboard-carservice{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*максимальная длинна фиксит строку превышающую максимальную длинну колонки (значение не важно, главное не отрицательное) */
    max-width: 0;
}

.card-body-grey {
    background-color: #efefef;
}

.reference-book-overhidden {
    white-space: nowrap; /* Prevents wrapping */
    overflow: hidden; /* Hides overflowing content */
    text-overflow: ellipsis; /* Displays an ellipsis (...) to indicate overflow */
    max-width: 300px; /* Adjust this value as needed */
    vertical-align: middle; /* Aligns content vertically within the cell */
    width: 0px;
}

.reference-book-overhidden .row {
    display: flex;
}
.reference-book-overhidden .col-3 {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.scroll-to-top-button{
    background: #666 url(/img/go_to_up.png) center center no-repeat;
    width: 60px;
    height: 60px;
    color: #fff;
    font-family: verdana;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    cursor: pointer;
    padding: 15px;
    margin: 20px;
}
.padding-finances-profile{
    padding-top: 5px;
}

.popover.popover-x_template {
    display: none;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.auto-height-textarea {
    min-height: 115px;
    line-height: 1.5;
}

.auto-height-textarea {
    height: auto;
}

.auto-height-textarea:focus {
    height: auto;
}

.ellipsis-table .col-3,
.ellipsis-table .col-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agreement-log{
    background-color: #eeeeee;
    font-size: 0.9em;
    padding: 5px;
}

.phone-call-link{
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.phone-call-img{
    width: 30px;
    height: 30px;
}

.phone-call-carservice-names{
    color: #0077d3;
    font-weight: bold;
}

.header-top {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.header-top__navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0 20px;
    background: transparent;
    min-height: 72px;
    width: 100%;
}

.header-top__col {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.header-top__col--logo {
    flex: 0 0 100px;
    justify-content: flex-start;
}

.header-top__col--menu {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.header-top__col--profile {
    flex: 0 0 140px;
    justify-content: flex-end;
}

.header-top__logo-link {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.header-top__logo-img {
    display: block;
    width: 100%;
    height: auto;
}

.header-top__col--menu .ace-responsive-menu {
    width: 100%;
    background: transparent;
    border-bottom: none;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0;
    overflow: visible;
}

.header-top__col--menu .ace-responsive-menu {
    column-gap: 8px;
}

.header-top__col--menu .ace-responsive-menu > li {
    float: none;
    position: relative;
    flex: 0 0 auto;
    min-width: fit-content;
    max-width: 200px;
}

.header-top__col--menu .ace-responsive-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 7px;
    font-size: 11px;
    font-weight: 400;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.header-top__col--menu .ace-responsive-menu li a {
    color: #d7daf0;
}

.header-top__col--menu .ace-responsive-menu > li > a i {
    color: #ffffff;
}

.header-top__col--menu .ace-responsive-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-top__col--menu .ace-responsive-menu li ul.sub-menu {
    background: #283156;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-top__col--menu .ace-responsive-menu li ul.sub-menu li a {
    font-size: 12px;
    line-height: 1.3;
    color: #f0f3ff;
}

.header-top__col--menu .ace-responsive-menu li ul.sub-menu li.menu-active > a,
.header-top__col--menu .ace-responsive-menu li ul.sub-menu li > a:hover {
    background: #3a4474 !important;
}

.header-top__col--menu .ace-responsive-menu > li > a > i {
    flex: 0 0 auto;
}

.header-top__col--menu .ace-responsive-menu > li > a > span:not(.arrow) {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-top__col--menu .ace-responsive-menu > li > a > span.arrow {
    flex: 0 0 auto;
}

.header-top__profile {
    flex: 0 0 auto;
}

.header-top__profile > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 11px;
}

.header-top__profile .user-image {
    width: 28px;
    height: 28px;
}

.header-top__profile > ul > li > a .hidden-xs {
    display: flex;
    align-items: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .header-top__main-menu .ace-responsive-menu > li > a {
        font-size: 10.5px;
        padding: 11px 6px;
    }
}

@media (max-width: 1200px) {
    .header-top__navbar {
        gap: 12px;
    }

    .header-top__main-menu .ace-responsive-menu > li > a {
        font-size: 10px;
        padding: 10px 5px;
    }
}

@media (max-width: 991.98px) {
    .header-top__main-menu .ace-responsive-menu > li {
        max-width: none;
    }
}

.next-call{
    /*display: block;*/
    /*background-color: rgb(242, 242, 242);*/
    background-color: rgb(193, 233, 242);
    padding: 10px;
}

.active-phone-call-block{
    border: 1px solid gray;
    background-color: #faf6e0;
    /*font-weight: bold;*/
    color: #200943;
}

.agreement-description{
    white-space: initial !important;
    /*text-overflow: ellipsis;*/
    /*max-width: 0;*/
}

/*.lead-table{*/
/*    text-overflow: ellipsis;*/
/*    align-self: flex-end;*/
/*    max-width: 0;*/
/*}*/

.dotted-list::before {
    content: "• "; /* Unicode bullet character with a space */
    color: black; /* You can change the color if needed */
}

a .not-link {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.bg-phonecall-plane{
    background-color: #3300FF;
    color: #FFFFFF;
}

.bg-phonecall-ok-plane-next{
    background-color: #008000;
    color: #FFFFFF;
}

.bg-phonecall-ok-stop{
    background-color: #83D1D7;
    color: #000000;
}

.bg-phonecall-error-plane-next{
    background-color: #D697D6;
    color: #000000;
}

.bg-phonecall-error-stop{
    background-color: #000000;
    color: #FFFFFF;
}


.service-info {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-emails {
    white-space: nowrap;
    /*скрыл 2024-08-29 - при большом кол-ве почтовых ящиков ломает таблицу*/
    /*overflow: hidden;*/
    text-overflow: ellipsis;
}

.text-center-call {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center-call input[type="date"] {
    flex: 2;
    margin: 0 5px;
}

.text-center-call input[type="time"] {
    flex: 1;
    margin: 0 5px;
}

.text-center-call input[type="checkbox"] {
    margin-left: 5px;
}
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.eot);
    src: url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regulard41d.eot?#iefix) format('embedded-opentype'),
    url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.woff2) format('woff2'),
    url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.woff) format('woff'),
    url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.ttf) format('truetype'),
    url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg');
}

.sorting-disabled:after, .sort-asc:after, .sort-desc:after {
    position: absolute;
    bottom: 20px;
    right: 8px;
    display: block;
    font-family: 'Glyphicons Halflings';
    opacity: 0.5;
}

.sorting-disabled::after {
    content: "\e150";
}

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

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

th .sorting-disabled, th .sort-asc, th .sort-desc {
    cursor: pointer;
}

.fc-button:active,
.fc-button.pressed {
    transform: translateY(2px); /* Moves the button down slightly */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Reduces shadow to simulate pressing */
}

.hidden-row {
    display: none;
}

.text-graph-1 {
    color: #A020F0 !important
}

.text-graph-2 {
    color: #00A36C !important
}

.text-graph-3 {
    color: #0000FF !important
}

.text-graph-4 {
    color: #FFA500 !important
}

.text-graph-5 {
    color: #FF0000 !important
}

.text-graph-mailing-0 {
    color: #999999 !important
}

.text-graph-mailing-1 {
    color: #2196F3 !important
}

.text-graph-mailing-2 {
    color: #0e6402 !important
}

.text-graph-mailing-3 {
    color: #FFC107 !important
}

.text-graph-mailing-4 {
    color: #710000 !important
}

.fc-button {
    cursor: pointer;
}

.info-box-graph {
    display: block;
    min-height: 90px;
    background: #fff;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    border-radius: 5px;
    margin-bottom: 30px;
    padding: 15px 5px;
    transition: .5s;
}

.custom-popover {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
    z-index: 1000; /* To ensure it's above other elements */
}

.custom-popover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.full-height-row {
    display: flex;
    height: 60vh;
    overflow: hidden;
    margin: 0;
}

.telegram-chat-container {
    border: 1px solid grey;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 0;
}

.left-column, .middle-column, .right-column, .middle-and-right-column {
    height: 100%;
    /*border: 1px solid grey;*/
    padding: 10px;
}

.left-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-y: auto;
}

.users-chat-list {
    overflow-y: auto;
    overflow-x: hidden;
    height: 80%;
}

.left-column a{
    color: black;
}

.middle-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.right-column {
    padding: 15px;
    background-color: #f9f9f9;
    color: #333;
    flex: 1;
    word-break: break-word;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.right-column h4 {
    font-size: 18px;
    color: #444;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.right-column h4 i {
    margin-right: 8px;
    color: #007bff;
}

.right-column-scrollable {
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    padding-right: 10px;
    margin-top: 10px;
}

.right-column p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.right-column p strong {
    color: #555;
}

.left-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.left-column ul li {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s, box-shadow 0.3s;
}

.left-column ul li:hover {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/*.left-column-selected li:hover {*/
/*    background: linear-gradient(90deg, #D5FFFF, #e6f7ff);*/
/*    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);*/
/*    cursor: pointer;*/
/*}*/

.chat-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    flex-grow: 1;
    border-radius: 5px;
    overflow-y: auto;
    height: 90%;
    position: relative;
}

.chat-spacer {
    flex-grow: 1;
}

.message {
    max-width: 60%;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.user-message {
    background-color: #e0e0e0;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.bot-message {
    background-color: #a0e0ff;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 2px solid #f1f1f1;
    background-color: #f9f9f9;
}

.input-field {
    flex-grow: 1;
    padding: 10px 0;
    border: 2px solid #ccc;
    border-right: none;
    border-left: none;
    border-radius: 0 0 0 0;
    box-sizing: border-box;
    resize: none;
    font-size: 1rem;
    color: #333;
    background-color: #ffffff;
}

/*.input-container {*/
/*    position: relative;*/
/*    width: 100%;*/
/*}*/

.add-file-button {
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
}

.file-menu {
    display: none;
    position: absolute;
    width: 175px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 14px;
}

#fileInput {
    display: none;
}

label[for="fileInput"] {
    cursor: pointer;
    margin-top: 10px;
}

label[for="fileInput"]:hover {
    text-decoration: underline;
}

#fileName {
    margin-top: 10px;
    font-size: 12px;
    color: #555;
    max-height: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
}

.file-name:hover {
    text-decoration: underline;
}

.file-menu .close-button {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.file-menu .close-button:hover {
    color: #333;
}

.file-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.remove-file {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.3s ease;
}

.remove-file:hover {
    color: #333;
}

.file-link {
    transition: color 0.3s ease;
}

.file-link.error {
    color: red;
    text-decoration: underline;
}

.popover {
    max-width: 200px;
    text-align: center;
}

.emoji-button {
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-left: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
}

.emoji-button:hover {
    /*transform: translateY(-50%) scale(1.1);*/
}

.emoji-picker {
    font-size: 0.8em !important;
    min-width: 300px !important;
    max-width: 490px !important;
}

.send-button {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.send-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}


.middle-and-right-column {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.select-chat-message {
    background-color: #ffffff;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #6c757d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}


.message p{
    margin: 0;
}

.message-timestamp{
    font-size: 0.6rem;
    text-align: right;
}

.message-date-container {
    text-align: center;
    padding: 10px;
}

.message-date {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 6px;
    border-radius: 20px;
    display: inline-block;
}

.left-column-selected {
    background: linear-gradient(90deg, #D5FFFF, #e6f7ff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.left-column-user-message {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}


.status-closed, .status-open {
    float: right;
    right: 0;
    padding: 0 2px;
    font-size: 0.6em;
    font-weight: bold;
}

.status-closed {
    color: green;
}

.status-open {
    color: red;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    font-weight: bold;
    gap: 10px;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.close-chat-btn, .open-chat-btn {
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.close-chat-btn {
    background-color: #28a745;
}

.open-chat-btn {
    background-color: #dc3545;
}

.close-chat-btn:hover {
    background-color: #ff4c4c;
    transform: scale(1.05);
}

.open-chat-btn:hover {
    background-color: #20c997;
    transform: scale(1.05);
}

.notify-new-chat {
    display: inline-block;
    position: relative;
    right: -8px;
    top: -16px;
    float: right
}
.notify-new-chat .heartbit {
    animation: 1s ease-out 0s normal none infinite running heartbit;
    border: 5px solid #f00000;
    border-radius: 70px;
    height: 25px;
    position: absolute;
    right: 3px;
    top: -20px;
    width: 24px;
    z-index: 10;
}
.notify-new-chat .point {
    background-color: #f00000;
    border-radius: 30px;
    height: 6px;
    position: absolute;
    right: 12px;
    top: -10px;
    width: 6px;
}

.menu-top-unread-messages {
    display: inline-block;
    position: relative;
    right: -8px;
    top: -16px;
    float: right
}
.menu-top-unread-messages .heartbit {
    animation: 1s ease-out 0s normal none infinite running heartbit;
    border: 5px solid #f00000;
    border-radius: 70px;
    height: 36px;
    position: absolute;
    left: -18px;
    top: -6px;
    width: 36px;
    z-index: 10;
}
.menu-top-unread-messages .point {
    text-align: center;
    font-weight: bold;
    background-color: #f00000;
    border-radius: 30px;
    height: 24px;
    position: absolute;
    left: -12px;
    width: 24px;
}

.chat-status-buttons {
    display: flex;
    gap: 5px;
    width: 100%;
}

.btn-chat-status {
    flex: 1;
    padding: 2px 0 !important;
    font-size: 0.9rem;
}

.badge-over-button {
    position: absolute;
    display: none;
    top: 31px;
    left: calc(30%);
    z-index: 2;
}

.badge-red{
    color:#fff;
    background-color:#f00000
}

.status-btn {
    position: relative;
    border-radius: 5px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid transparent;
    font-size: 14px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.status-btn:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.status-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: transparent;
    bottom: -5px;
    left: 0;
}

.btn-open-chats-clicked::before,
.btn-closed-chats-clicked::before,
.btn-all-chats-clicked::before {
    background-color: grey;
}

.btn-open-chats {
    background-color: #dd4b39;
    border-color: #d73925;
    color: #FFF;
    border-bottom: 1px grey;
}
.btn-open-chats-clicked {
    background-color: #bf4030;
    border-color: #bf4030;
    color: #fff;
    text-decoration: underline;
    border-top: 1px grey;
    border-right: 1px grey;
}

.btn-closed-chats {
    background-color: #00a65a;
    border-color: #008d4c;
    color: #FFF;
    border-bottom: 1px grey;
}
.btn-closed-chats-clicked {
    background-color: #008045;
    border-color: #008d4c;
    color: #fff;
    text-decoration: underline;
}

.btn-all-chats {
    background-color: #868e96;
    color: #FFF;
}
.btn-all-chats-clicked {
    background-color: #666c73;
    color: #FFF;
    text-decoration: underline;
}

.user-chat-list-loader {
    position: absolute;
    position-area: center;
    top: 5%;
    width: 40px;
    height: 40px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid grey;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.add-client-form{
    margin-bottom: 10px;
}

.glow-red {
    border: 2px solid red;
    box-shadow: 0 0 10px red;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.field_line{
    width: 100%;
}

.field_label{
    width: 100%;
    font-size: 0.6em;
    text-align: left;
    /*color: #8b89a6;*/
    color: #a87652;
    font-weight: bold;
}

.field_data{
    width: 100%;
    font-size: 0.8em;
    /*height: 25px;*/
    min-height: 25px;
    overflow: hidden;
    text-align: left;
}

.green-border {
    border: 1px solid green;
    box-shadow: 0 0 6px 1px green;
}

.orange-border {
    border: 1px solid orange;
    box-shadow: 0 0 6px 1px orange;
}

.red-border {
    border: 1px solid red;
    box-shadow: 0 0 6px 1px red;
}

.form-control.is-invalid {
    border-color: #dc3545; /* Красная граница */
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.5 8.5v-3h1v3zm0 2v-1h1v1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.field_data.is-invalid {
    border: 1px solid #dc3545; /* Красная рамка для div'а */
    padding: 5px;
}

#calendar-mailing .fc-day,
#calendar-mailing .fc-day-top,
#calendar-mailing .fc-day-number,
#calendar-mailing .fc-content-skeleton td,
#calendar-mailing .fc-event-container {
    cursor: pointer !important;
}

.reference-book-wrapper table th,
.reference-book-wrapper table td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.letters-queue-wrapper table th,
.letters-queue-wrapper table td {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}
