﻿.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

el {
    color: aqua;
}
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.margin-table {
    margin: 100px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.8), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.margin-head {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px;
    display: flex;
    column-gap: 20px; /* Set a gap of 20px */
    align-items: flex-start;
}

.w-button {
    font-size: 1.1em;
    padding: 1.3em 1.5em;
    background-color: #4CAF50;
    border: none;
    min-width: 90px;
    color: white;
    text-decoration: none;
    display: inline-block;
    border-radius: 12px;
    min-height: 80px;
    max-height: 80px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.9), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.a-button {
    font-size: 1.1em;
    padding: 1.3em 1.5em;
    background-color: #4676D7;
    border: none;
    min-width: 90px;
    color: white;
    text-decoration: none;
    display: inline-block;
    border-radius: 12px;
    min-height: 60px;
    max-height: 60px;
}

.b-button {
    font-size: 1.1em;
    padding: 0.5em 1.0em;
    background-color: #4676D7;
    border: none;
    min-width: 90px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.10);
}

.underline-on-hover {
    color: black;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

    .underline-on-hover:hover {
        text-decoration: none;
    }

    .underline-on-hover::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: black;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .underline-on-hover:hover::after {
        transform: scaleX(1);
    }

.button-underline-hover {
    color: black !important;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    font: inherit; /* Наследует шрифт родителя */
    text-decoration: none;
}

    .button-underline-hover::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: black;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .button-underline-hover:hover::after {
        transform: scaleX(1);
    }

    .button-underline-hover:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Общие стили для неактивных кнопок */
#addlowlevel,
#addCopy,
#addCopyLow,
#editButton,
#deleteButton {
    margin-bottom: 15px;
    opacity: 0.5;
    pointer-events: none;
}

/*.shadow {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}*/
/* Стили для строк таблицы */
/*.scheme-row {
    transition: all 0.2s ease;
}*/

    /* Стиль при наведении */
    /*.scheme-row:hover {
        background-color: transparent !important;*/ /* Убираем серый фон */
        /*box-shadow: 0 0 0 2px #808080;*/ /* Добавляем синюю рамку */
        /*z-index: 1;*/ /* Чтобы рамка была поверх других элементов */
        /*position: relative;
    }*/

    /* Стиль для выбранной строки */
    /*.scheme-row.selected {
        box-shadow: 0 0 0 2px #f0f0f0;*/ /* Зеленая рамка для выбранной строки */
        /*background-color: rgba(40, 167, 69, 0.05);*/ /* Легкий зеленый фон */
    /*}*/

/* подчёркивание кнопок */
.underline-on-hover {
    color: black !important;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 10px;
    white-space: nowrap; /* Чтобы текст не переносился */
}

    .underline-on-hover:hover {
        text-decoration: none;
    }

    .underline-on-hover::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: black;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .underline-on-hover:hover::after {
        transform: scaleX(1);
    }

/* шапка таблицы */
.table-dark-grey {
    background-color: #343a40; /* Тёмно-серый цвет фона */
    color: white; /* Белый цвет текста */
}

/* Основные стили таблицы */
table.table {
    border-collapse: collapse; /* Важно для корректного отображения границ */
    width: 100%;
    position: relative; /* Добавляем для корректного позиционирования z-index */
}

    /* Стили для ячеек таблицы */
    table.table td, table.table th {
        border-right: 1px solid #dee2e6; /* Граница справа для всех ячеек */
        padding: 8px 12px; /* Отступы внутри ячеек */
    }

        /* Убираем границу у последней ячейки в строке */
        table.table td:last-child, table.table th:last-child {
            border-right: none;
        }
    /* Стили для строк таблицы */
    table.table .scheme-row {
        transition: all 0.2s ease;
        border-bottom: 1px solid #dee2e6;
        position: relative;
    }

        /* Стиль при наведении */
        table.table .scheme-row:hover {
            background-color: transparent !important;
            box-shadow: 0 0 0 2px #6c757d; /* Серый цвет */
            z-index: 1;
        }

        /* Стиль для выбранной строки */
        table.table .scheme-row.selected {
            box-shadow: 0 0 0 2px #000000; /* Черный цвет */
            background-color: rgba(0, 0, 0, 0.05) !important;
            z-index: 1;
        }

.action-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Отступ между рядами */
    margin: 15px 0;
}

.action-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Отступ между кнопками */
}

/* Основной стиль для полей ввода */
.form-control {
    border-color: #ced4da; /* Серый цвет границы */
}

    /* Стиль при фокусе */
    .form-control:focus {
        border-color: #6c757d; /* Серый цвет границы при фокусе */
        box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25); /* Тень серого цвета */
    }

/* Дополнительно: стили для вашей формы */
.position-absolute {
    width: 100%;
    max-width: 400px; /* Опционально: ограничение ширины формы */
}

.shadow {
    margin-bottom: 1rem;
}
/* Все стили остаются без изменений */
.date-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    align-items: center;
}

.date-control {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    width: 200px;
}

.apply-btn {
    padding: 8px 20px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-end;
    transition: background 0.2s;
}

    .apply-btn:hover {
        background: #0b5ed7;
    }

.toggle-columns-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
    margin-left: 10px;
}

    .toggle-columns-btn:hover {
        background: #5a6268;
    }

.toggle-icon {
    transition: transform 0.3s;
}

.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.collapsed .data-header:not(.always-visible),
.collapsed .data-cell {
    display: none;
}

.toggle-column-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.gantt-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
}

.gantt-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

    .gantt-table thead {
        position: sticky;
        top: 0;
        z-index: 20;
    }


.data-header {
    background: #343a40 !important;
    color: white !important;
    padding: 8px;
    text-align: center;
    border-right: 1px solid #555;
    vertical-align: middle;
    font-weight: bold;
    font-size: 16px;
    position: relative;
}

.data-cell {
    background: white;
    padding: 8px;
    text-align: center;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #ddd;
    min-width: 120px;
    vertical-align: middle;
    font-size: 12px;
    white-space: nowrap;
}

.gantt-grid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-line-vertical {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform: translateX(-0.5px);
}

.grid-line-horizontal {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.text-size {
    font-size: 12px;
}
.fixed-column {
    position: sticky;
    left: 0;
    z-index: 30;
    background: white;
    min-width: 300px;
    padding: 2px;
    box-shadow: 3px 0 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    border-right: 2px solid #495057 !important;
}
/* Рамка при наведении на строку - для fixed-column */
tr.data-row:hover .fixed-column {
    outline: 2px solid #6c757d;
    outline-offset: -2px;
    z-index: 60 !important;
}

/* Рамка при выборе строки - для fixed-column */
tr.data-row.selected .fixed-column {
    outline: 2px solid #000000;
    outline-offset: -2px;
    z-index: 61 !important;
}
.fixed-header {
    position: sticky;
    left: 0;
    z-index: 40;
    background: #343a40;
    width: 300px;
    border-right: 2px solid #495057 !important;
    font-size: 16px;
    color: white;
}

.separator-column {
    border-right: 2px solid #555 !important;
}

.gantt-container-cell {
    position: relative;
    height: 35px;
    padding: 0;
    overflow: visible;
    border-bottom: 1px solid #ddd;
}

.gantt-content {
    position: relative;
    height: 100%;
    width: 100%;
}

.gantt-bar {
    position: absolute;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: purple;
    border-radius: 3px;
    z-index: 5;
}

.technical-object-bar {
    position: absolute;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #6f42c1; /* Фиолетовый цвет */
    border-radius: 3px;
    z-index: 5;
    opacity: 0.8;
}


.repair-rect {
    position: absolute;
    top: 25%;
    height: 50%;
    border-radius: 3px;
    z-index: 6;
}

.repair-type-repair {
    background-color: #28a745 !important;
}

.repair-type-replacenew {
    background-color: #007bff !important;
}

.repair-type-replaceremanufactured {
    background-color: #fd7e14 !important;
}

.hierarchical-name {
    white-space: nowrap;
}

.task-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    padding: 2px 5px;
    border-radius: 3px;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    white-space: nowrap;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    pointer-events: none;
}

.hidden-row {
    display: none;
}

.toggle-children {
    user-select: none;
    cursor: pointer;
    min-width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 5px;
}


.disabled-button {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.show-gantt-btn {
    padding: 8px 20px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    margin-left: 10px;
}

    .show-gantt-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
        opacity: 0.65;
    }

    .show-gantt-btn:hover:not(:disabled) {
        background: #138496;
    }
/* Фиксируем z-index для fixed-column */
/*.fixed-column {
    position: sticky;
    left: 0;
    z-index: 30;
    background: white;
    min-width: 300px;
    padding: 8px;
    box-shadow: 3px 0 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ddd;
    border-right: 2px solid #555 !important;
}*/

/* Убираем стандартные границы ячеек */
.gantt-table td, .gantt-table th {
    border: none;
}

/* Восстанавливаем границы между строками */
.gantt-table tr {
    border-bottom: 1px solid #ddd;
}

/* Стили для выделения столбца "Название" */
.fixed-column {
    transition: all 0.2s ease;
}

.expand-collapse-btn {
    background: none;
    border: none;
    padding: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

    .expand-collapse-btn:hover {
        background-color: #f0f0f0;
    }

.small-icon {
    font-size: 8px;
    color: #555;
}

.expand-collapse-btn:hover .small-icon {
    color: #000;
}

.fa-spinner {
    color: #007bff !important;
}


/* Стили для индикатора загрузки */
#globalLoadingIndicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

/* Стили для стрелочки Head */
.expand-arrow-head {
    cursor: pointer;
    margin-right: 5px;
    width: 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    color: #6c757d;
}

    .expand-arrow-head:hover {
        color: #495057;
        transform: scale(1.1);
    }

    .expand-arrow-head.hidden {
        visibility: hidden;
        width: 16px;
    }

    .expand-arrow-head i {
        font-size: 12px;
    }



/* Стили для модального окна диаграммы (только необходимые изменения) */
.spider-modal-overlay {
    position: fixed;
    top: 0;
    left: 250px;
    width: calc(100% - 250px);
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.spider-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.spider-modal-header {
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.spider-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #495057;
}

.spider-close-btn {
    background: none;
    border: none;
    color: #495057;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s;
    padding: 0;
}

    .spider-close-btn:hover {
        background-color: #f8f9fa;
    }

.spider-modal-body {
    padding: 20px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    width: 100%;
}

.spider-chart-container {
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#spiderChart {
    width: 100% !important;
    height: 100% !important;
    max-width: 1000px;
    max-height: 500px;
}

/* Стиль для кликабельного текста периода */
.period-text {
    cursor: pointer;
    transition: color 0.2s;
}

    .period-text:hover {
        color: #28a745;
    }

/* Убираем подчеркивание у кнопок */
.expand-btn:hover::after,
.expand-btn:focus::after {
    display: none !important;
}

/* Возвращаем старый стиль кнопки + */
.expand-btn {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    transition: all 0.3s ease;
    padding: 0;
}

    .expand-btn:hover {
        color: #1e7e34;
        transform: translateY(-50%) scale(1.2);
    }

    .expand-btn.expanded {
        transform: translateY(-50%) rotate(45deg);
    }

/* Добавляем в конец секции стилей (перед закрывающим </style>) */

/* Исправление: подкрашивание пессимистичного сценария красным цветом */
#pessimisticScenarioName {
    background-color: #dc3545 !important; /* Красный фон */
    color: #000 !important; /* Черный текст */
    border: 1px solid #dc3545 !important; /* Красная рамка */
}

/* Оставляю зеленый фон для оптимистичного сценария */
#optimisticScenarioName {
    background-color: #28a745 !important; /* Зеленый фон */
    color: #000 !important; /* Черный текст */
    border: 1px solid #28a745 !important; /* Зеленая рамка */
}
p1 {
    display: block;
    margin-bottom: 10px;
}