.x-grid-cell-inner {
    white-space: normal !important; /* Разрешает перенос текста */
    word-wrap: break-word; /* Перенос длинных слов */
    padding: 5px !important; /* Добавляет отступы для лучшего вида */
}

.x-grid-row {
    height: auto !important; /* Автоматическая высота строки */
}

.x-grid-cell {
    vertical-align: top; /* Выравнивание текста по верху */
}

.complete-btn {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.complete-btn:hover {
    background-color: #45a049;
}

.scroll {
    height: 600px;
    overflow-y: auto;
}

.highlight-row {
    background-color: #fff37c !important; /* Оранжевый фон */
}

.unread {
    background: aliceblue;
}

/* Правый блок (оставляем как есть) */
.right-custom-popup-container-wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.right-toggle-bar {
    position: fixed;
    top: 0;
    right: 0px;
    width: 15px;
    background-color: blue;
    cursor: pointer;
    height: 100%;
    z-index: 1002;
    transition: background-color 0.3s ease; /* Плавное изменение цвета */
}

.right-toggle-bar.active {
    background-color: lightblue; /* Цвет при открытом окне */
}

.right-custom-popup-container {
    position: fixed;
    bottom: 0;
    right: 10px;
    width: 330px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.right-custom-popup {
    position: absolute;
    width: 100%;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    margin-bottom: 10px;
    transition: transform 0.2s ease-out;
    z-index: 1001;
}

.right-unread {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
    padding-left: 10px;
    transition: background-color 0.3s ease, border-left 0.3s ease;
}

.left-custom-popup-container-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.left-toggle-bar {
    position: fixed;
    top: 0;
    left: 0px;
    width: 15px;
    background-color: green; /* Зеленая полоска */
    cursor: pointer;
    height: 100%;
    z-index: 1002;
    transition: background-color 0.3s ease; /* Плавное изменение цвета */
}

.left-toggle-bar.active {
    background-color: lightgreen; /* Цвет при открытом окне */
}

.left-custom-popup-container {
    position: fixed;
    bottom: 0;
    left: 10px;
    width: 330px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.left-custom-popup {
    position: absolute;
    width: 100%;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    margin-bottom: 10px;
    transition: transform 0.2s ease-out;
    z-index: 1001;
}

.left-unread {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
    padding-left: 10px;
    transition: background-color 0.3s ease, border-left 0.3s ease;
}

/* Стили для выделения колонки */
.column-highlight {
    background-color: rgba(0, 123, 255, 0.1); /* Полупрозрачный фон (опционально) */
}

.color-1 {
    background-color: #ffffff;
}
.color-2 {
    background-color: #4fbeff;
}
.color-3 {
    background-color: #ffea82;
}
.color-4 {
    background-color: #ff984f;
}
.color-5 {
    background-color: #92ffaa;
}
.color-6 {
    background-color: #ff4f4f;
}
.color-7 {
    background-color: #4f54ff;
}
.color-8 {
    background-color: #fcff4f;
}
.color-9 {
    background-color: #4fbeff;
}
.color-10 {
    background-color: #ffea82;
}
.color-11 {
    background-color: #4fbeff;
}
.color-12 {
    background-color: #4fbeff;
}

.highlighted {
    background-color: orange;
}

.btn:disabled {
    background-color: #cccccc; /* Серый цвет для отключенной кнопки */
    cursor: not-allowed; /* Изменение курсора на "запрещено" */
}

.display {
    width: 100%;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content_2{
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
}


#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 18px;
}

.calculator-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    background-color: #fefefe;
    border: 1px solid #888;
    width: 300px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calculator-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.calculator-close:hover,
.calculator-close:focus {
    color: black;
    text-decoration: none;
}

.draggable {
    cursor: move;
}

#dialog-confirm {
    display: none;
}

body {
    font-family: Arial, sans-serif;
}

.context-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.context-menu li:hover {
    background-color: #f0f0f0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal_2 {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
    
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.modal-content-work {
    background-color: #fff;
    margin: 15% auto;
    margin-top: 50px;
    padding: 20px;
    width: 35%;
}

.modal-content-calc {
    background-color: #fff;
    margin: 15% auto;
    margin-top: 50px;
    padding: 20px;
    width: 50%;
}

.dragging {
    opacity: 0.5;
}

.btn-warning {
    background-color: yellow;
    color: black;
}

#myModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modalContent {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
}

#chat-popup {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    cursor: pointer;
}

#chat-box {
    height: 250px;
    overflow-y: scroll;
    padding: 10px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

#chat-input {
    display: flex;
    padding: 10px;
}

#message {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#send, #send_message {
    margin-left: 5px;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.hidden { display: none; }

.btn { margin: 2px; }

input[type="number"], select {
    height: 28px;
    width: 100px;
    text-align: center;
}

/* CSS для выделения строки */
.selected-row {
    background-color: yellow !important; /* Цвет выделенной строки */
}

/* Центрирование таблицы и масштабирование по ширине страницы */
.table-container {
    padding: 10px;
    justify-content: center;
    align-items: center;
    /*height: 100vh; /* Высота 100% от высоты окна браузера */
    
    width: 100%; /* Контейнер занимает всю ширину экрана */
    overflow-x: auto; /* Добавляет горизонтальную прокрутку при необходимости */
}

#dataTable_wrapper {
    /*width: 80%;*/
}

#dataTable, #dataTable1, #dataTable2, #dataTable3, #dataTable4, #dataTable5, #dataTable6 {
    width: 100%;
    /*max-width: 860px; /* Максимальная ширина таблицы */
    border-collapse: collapse;
    overflow-y: auto;
}

#dataTable th, #dataTable td,  #dataTable1 th, #dataTable1 td, #dataTable2 th, #dataTable2 td, #dataTable3 th, #dataTable3 td, #dataTable4 th, #dataTable4 td, #dataTable5 th, #dataTable5 td, #dataTable6 th, #dataTable6 td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center; /* Выравнивание по центру */
}


#dataTable th,  #dataTable1 th, #dataTable2 th, #dataTable3 th, #dataTable4 th, #dataTable5 th, #dataTable6 th {
    background-color: Lime;
}

#dataTable tbody tr:nth-child(even) {
//    background-color: LightCyan;
}

#dataTable1 tbody tr:nth-child(even) {
//    background-color: LightCyan;
}

#dataTable2 tbody tr:nth-child(even) {
//    background-color: LightCyan;
}

#dataTable3 tbody tr:nth-child(even) {
//    background-color: LightCyan;
}

#dataTable4 tbody tr:nth-child(even) {
//    background-color: LightCyan;
}

#dataTable5 tbody tr:nth-child(even) {
    background-color: LightCyan;
}

#dataTable6 tbody tr:nth-child(even) {
    background-color: LightCyan;
}

#dataTable tbody tr:hover {
    background-color: #ddd;
}

#dataTable1 tbody tr:hover {
    background-color: #ddd;
}

#dataTable2 tbody tr:hover {
    background-color: #ddd;
}

#dataTable3 tbody tr:hover {
    background-color: #ddd;
}

#dataTable4 tbody tr:hover {
    background-color: #ddd;
}

#dataTable5 tbody tr:hover {
    background-color: #ddd;
}

#dataTable6 tbody tr:hover {
    background-color: #ddd;
}

#qr-code img {
    max-width: 100px; /* Ограничение размера изображения */
    height: auto;
}

/* Стили для всплывающего окна */
.popup {
    z-index: 1050;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    cursor: pointer;
}

.drop-zone.dragover {
    border-color: #000;
}

#pdf-viewer {
    border: 1px solid #ddd;
    width: 1080px;
}

/* Стили для кастомного модального окна */
.custom-modal {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 300px;
    border: 3px solid #007bff;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1050;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: move;
    display: none; /* Скрыто по умолчанию */
}

.custom-modal-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    cursor: move;
}

.custom-modal-body {
    padding: 20px;
    font-size: 16px;
}

.custom-modal-footer {
    padding: 10px;
    text-align: right;
}

.custom-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-button:hover {
    background-color: #0056b3;
}