body { 
    margin: 0;
    padding: 0;
}

#mainContent {
    margin-top: 0 !important;
    padding-top: 10px !important;
    position: relative;
    z-index: 1;
}

/* Позиционируем основной контент сразу под фиксированным заголовком */
/* #tableContainer {
    margin-top: 23px;
    padding-top: 0px;
    max-width: 80%;
    width: 74%;
    margin-left: auto;
    margin-right: auto;
    max-height: calc(100vh - 420px);
    overflow: auto;
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} */

#tableContainer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
#loginModal { 
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: white; 
    padding: 20px; 
    border-radius: 5px; 
    box-shadow: 0 0 10px rgba(0,0,0,0.5); 
    z-index: 1000; 
}

#fixedHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-bottom: 3px solid #dee2e6;
    max-height: 384px;
    overflow-y: auto;
}

/* Основной контент должен начинаться сразу под фиксированным заголовком */
body:has(#fixedHeader[style*="display: block"]) #mainContent,
#fixedHeader[style*="display: block"] ~ * #mainContent {
    /* padding-top: calc(300px + 10px) !important; */
}

/* Если у нас есть JS поддержка, используем CSS переменную */
:root {
    --fixed-header-height: 300px;
}

#mainContent {
    padding-top: var(--fixed-header-height, 300px) !important;
}

/* Компактные стили для элементов в фиксированном заголовке */
#fixedHeader .alert {
    margin-bottom: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.9em !important;
}

#fixedHeader .nav-tabs {
    margin-bottom: 8px !important;
    font-size: 0.9em !important;
}

#fixedHeader .nav-tabs .nav-link {
    padding: 6px 12px !important;
}

#fixedHeader .rows-count {
    background-color: #e7f3ff;
    padding: 6px 10px !important;
    border-radius: 4px;
    margin: 0 !important;
    font-weight: bold;
    font-size: 0.9em !important;
}

#fixedHeader .totals-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px !important;
    margin: 8px 0 !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

#fixedHeader .total-item {
    text-align: center;
    margin: 3px 8px !important;
}

#fixedHeader .total-value {
    font-size: 1.1em !important;
    font-weight: bold;
    color: #0d6efd;
}

#fixedHeader .total-label {
    font-size: 0.8em !important;
    color: #6c757d;
    margin-top: 2px !important;
}

#fixedHeader .btn-sm {
    font-size: 0.8em !important;
    padding: 4px 8px !important;
}

#fixedHeader #searchContainer {
    display: flex;
    align-items: center;
    gap: 8px;
}

#fixedHeader #searchNavigation {
    display: flex;
    align-items: center;
    gap: 4px;
}

#fixedHeader .bulk-delete-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px !important;
    margin: 0 !important;
    font-size: 0.9em !important;
}

/* Выдвигающаяся панель удаления */
.slide-delete-panel {
    position: fixed;
    top: 50%;
    right: -350px; /* Скрыта за экраном */
    transform: translateY(-50%);
    width: 320px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid #b02a37;
}

.slide-delete-panel.show {
    right: 0; /* Выезжает на экран */
}

.slide-delete-content {
    padding: 15px;
    color: white;
}
.nav-link.active {
    background-color: #0e1fb4 !important; 
    color: white !important; 
    border-color: #0f1720 !important; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important; 
}
.slide-delete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}
#sumValue {
    color: #dc3545 !important;
    font-weight: bold !important;
}
.slide-delete-header h6 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.slide-delete-body {
    /* Основное содержимое панели */
}

.slide-delete-panel .btn-danger {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.slide-delete-panel .btn-danger:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide-delete-panel .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.slide-delete-panel .btn-close-white:hover {
    opacity: 1;
}

/* Анимация при появлении */
@keyframes slideInFromRight {
    from {
        right: -350px;
        opacity: 0;
    }
    to {
        right: 0;
        opacity: 1;
    }
}

.slide-delete-panel.animate-in {
    animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ФИКСИРОВАННЫЙ ЗАГОЛОВОК ТАБЛИЦЫ */
/* #spreadsheet { 
    border-collapse: collapse; 
    width: 100%; 
    margin: 0;
    position: relative;
    font-size: 0.9em;
} */
#spreadsheet {
    width: 100% !important;
    table-layout: auto;          /* или fixed — смотри по ситуации */
    min-width: 100%;            
}
/* УЛУЧШЕННЫЙ ФИКСИРОВАННЫЙ ЗАГОЛОВОК ТАБЛИЦЫ */
#spreadsheet thead {
    position: sticky;
    top: var(--fixed-header-height, 0);
    z-index: 200; /* Увеличиваем z-index для заголовка */
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#spreadsheet thead th {
    background-color: #f8f9fa !important;
    position: sticky;
    top: var(--fixed-header-height, 0);
    z-index: 201;
    border-bottom: 3px solid #007bff !important;
    color: #495057 !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ЛИПКИЕ КОЛОНКИ (ПЕРВЫЕ 4) */
#spreadsheet th:nth-child(1), #spreadsheet td:nth-child(1) { left: 0; position: sticky; z-index: 10; width: 60px !important; min-width: 60px !important; }
#spreadsheet th:nth-child(2), #spreadsheet td:nth-child(2) { left: 60px; position: sticky; z-index: 10; width: 70px !important; min-width: 70px !important; }
#spreadsheet th:nth-child(3), #spreadsheet td:nth-child(3) { left: 130px; position: sticky; z-index: 10; width: 90px !important; min-width: 90px !important; }
#spreadsheet th:nth-child(4), #spreadsheet td:nth-child(4) { left: 220px; position: sticky; z-index: 10; width: 90px !important; min-width: 90px !important; }

/* Фон для липких ячеек в теле таблицы, чтобы они не были прозрачными при прокрутке */
#spreadsheet tbody td:nth-child(-n+4) {
    background-color: white;
}

/* Пересечение липкой шапки и липких колонок (Z-INDEX ВЫШЕ) */
#spreadsheet thead th:nth-child(-n+4) {
    z-index: 300;
    background-color: #f8f9fa !important;
}

/* Поддержка стилей строк для липких ячеек */
tr.row-selected-for-deletion td:nth-child(-n+4) { background-color: #ffe6e6 !important; }
tr.row-used-in-nests td:nth-child(-n+4) { background-color: #e2e3e5 !important; }
tr.row-reserved td:nth-child(-n+4) { background-color: #fff3cd !important; }
tr:hover td:nth-child(-n+4) { background-color: #f2f2f2 !important; }
tr.row-selected-for-deletion:hover td:nth-child(-n+4) { background-color: #ffd9d9 !important; }

.multi-line-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    min-height: 38px;           /* подбери под высоту заголовков в твоей таблице */
    padding: 4px 0;
}

.multi-line-header .unit {
    font-size: 0.68em;          /* 9–11 px в зависимости от основного размера */
    color: #6c757d;             /* серый, ненавязчивый */
    font-weight: normal;
    margin-top: 1px;
    letter-spacing: 0.3px;
}

/* Центрируем столбцы с единицами измерения */
#spreadsheet th[data-field="Length"],
#spreadsheet th[data-field="Width"],
#spreadsheet th[data-field="Area"],
#spreadsheet th[data-field="Weight"],
#reservedSheetsTable th:nth-child(3),   /* Длина */
#reservedSheetsTable th:nth-child(4),   /* Ширина */
#reservedSheetsTable th:nth-child(5) {  /* Площадь */
    text-align: center;
    padding: 6px 4px;
}


#spreadsheet th, #spreadsheet td { 
    border: 1px solid #ddd; 
    padding: 6px 8px; /* Уменьшаем отступы для компактности */
    text-align: left; 
    cursor: pointer; 
    min-width: 70px; /* Уменьшаем минимальную ширину */
    max-width: 150px; /* Уменьшаем максимальную ширину */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#spreadsheet th { 
    background-color: #f2f2f2; 
    font-weight: 600;
    color: #495057;
}

#spreadsheet th:hover { 
    background-color: #e0e0e0; 
}

/* ===== ИСПРАВЛЕННАЯ СИСТЕМА ВЫДЕЛЕНИЯ ЯЧЕЕК ===== */

/* Базовые цвета столбцов - САМЫЙ НИЗКИЙ ПРИОРИТЕТ */
.length-column {
    background-color: #fff9c4 !important; /* Желтый для длины */
}

.width-column-steel {
    background-color: #e3f2fd !important; /* Голубой для обычной стали */
}

.width-column-stainless {
    background-color: #f5f5f5 !important; /* Серый для нержавейки */
}

.width-column-zinc {
    background-color: #fce4ec !important; /* Розовый для цинка */
}

/* Колонка номера строки - НЕ ВЫДЕЛЯЕТСЯ */
.row-number-column {
    background-color: #e9ecef !important;
    text-align: center !important;
    font-weight: bold !important;
    color: #495057 !important;
    min-width: 50px !important;
    max-width: 60px !important;
    width: 50px !important;
    cursor: default !important;
    pointer-events: none !important;
}

.row-number-column:hover {
    background-color: #e9ecef !important;
}

/* Номер строки в выделенной строке */
.row-selected-for-deletion .row-number-column {
    background-color: #ffcccc !important;
    color: #d63384 !important;
}

/* Эффект наведения - ПРИОРИТЕТ 2 */
.editable:hover:not(.selected):not(.auto-selected):not(.cell-editing):not(.cell-focused):not(.search-highlight):not(.row-number-column) {
    background: rgba(0, 123, 255, 0.25) !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
    z-index: 5;
}

/* Фокус ячейки - ПРИОРИТЕТ 3 */
.cell-focused {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    box-shadow: 
        0 0 15px rgba(0, 123, 255, 0.8),
        inset 0 0 10px rgba(0, 123, 255, 0.3) !important;
    position: relative;
    z-index: 20 !important;
    animation: focusGlow 1.5s infinite;
    font-weight: bold !important;
}

@keyframes focusGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 123, 255, 0.8), inset 0 0 10px rgba(0, 123, 255, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 123, 255, 1), inset 0 0 15px rgba(0, 123, 255, 0.5); }
}

/* Фокус не должен применяться к номеру строки */
.row-number-column.cell-focused {
    background-color: #e9ecef !important;
    border: 1px solid #ddd !important;
    color: #495057 !important;
    box-shadow: none !important;
    animation: none !important;
    font-weight: bold !important;
    z-index: 1 !important;
}

/* ПОЛЬЗОВАТЕЛЬСКОЕ ВЫДЕЛЕНИЕ - ПРИОРИТЕТ 4 (ИСПРАВЛЕНО) */
.selected {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 193, 7, 0.95) 0%,
        rgba(255, 193, 7, 0.95) 10px,
        rgba(255, 152, 0, 0.95) 10px,
        rgba(255, 152, 0, 0.95) 20px
    ) !important;
    color: #000 !important; 
    font-weight: bold !important;
    box-shadow: 
        0 0 15px rgba(255, 193, 7, 0.8),
        inset 0 0 10px rgba(255, 193, 7, 0.3) !important;
    position: relative !important;
    z-index: 10 !important;
    animation: selectedPulse 2s infinite !important;
}

/* ВАЖНО: Убираем выделение с номера строки */
.row-number-column.selected {
    background-color: #e9ecef !important;
    border: 1px solid #ddd !important;
    color: #495057 !important;
    box-shadow: none !important;
    animation: none !important;
    z-index: 1 !important;
}

/* Анимация для выделенных ячеек */
@keyframes selectedPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.8), inset 0 0 10px rgba(255, 193, 7, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 193, 7, 1), inset 0 0 15px rgba(255, 193, 7, 0.5);
        transform: scale(1.02);
    }
}

/* Автоматическое выделение от строк - ПРИОРИТЕТ 4 */
.auto-selected {
    background: repeating-linear-gradient(
        -45deg,
        rgba(33, 150, 243, 0.9) 0%,
        rgba(33, 150, 243, 0.9) 8px,
        rgba(3, 169, 244, 0.9) 8px,
        rgba(3, 169, 244, 0.9) 16px
    ) !important;
    border: 3px solid #1976d2 !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: 
        0 0 12px rgba(33, 150, 243, 0.7),
        inset 0 0 8px rgba(33, 150, 243, 0.3) !important;
    position: relative !important;
    z-index: 9 !important;
}

/* Ячейка в режиме редактирования - ПРИОРИТЕТ 5 */
.cell-editing {
    background: linear-gradient(45deg, #28a745 0%, #20c997 100%) !important;
    /* border: 3px solid #198754 !important; */
    color: white !important;
    outline: none !important;
    box-shadow: 
        0 0 20px rgba(40, 167, 69, 0.8),
        inset 0 0 10px rgba(40, 167, 69, 0.3) !important;
    padding: 6px 8px !important;
    min-width: inherit !important;
    max-width: inherit !important;
    width: inherit !important;
    position: relative !important;
    z-index: 25 !important;
    animation: editingGlow 2s infinite !important;
    font-weight: bold !important;
}

@keyframes editingGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.8), inset 0 0 10px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 0 30px rgba(40, 167, 69, 1), inset 0 0 15px rgba(40, 167, 69, 0.5); }
}

/* ПОИСК - ВЫСШИЙ ПРИОРИТЕТ 6 */
.search-highlight {
    background: linear-gradient(
        45deg,
        rgba(255, 87, 34, 0.95) 0%,
        rgba(255, 152, 0, 0.95) 100%
    ) !important;
    border: 3px solid #ff5722 !important;
    color: white !important;
    font-weight: bold !important;
    position: relative !important;
    z-index: 30 !important;
    animation: searchBlink 1s infinite !important;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.8) !important;
}

/* Поиск работает даже в выделенных для удаления строках */
.row-selected-for-deletion .search-highlight,
.row-selected-for-deletion td.search-highlight {
    background: linear-gradient(
        45deg,
        rgba(255, 87, 34, 0.95) 0%,
        rgba(255, 152, 0, 0.95) 100%
    ) !important;
    border: 3px solid #ff5722 !important;
    color: white !important;
    font-weight: bold !important;
    z-index: 35 !important;
    animation: searchBlink 1s infinite !important;
    box-shadow: 0 0 20px rgba(255, 87, 34, 1) !important;
}

/* Поиск работает поверх всех других состояний */
.selected.search-highlight,
.auto-selected.search-highlight,
.cell-focused.search-highlight,
.editable.search-highlight {
    background: linear-gradient(
        45deg,
        rgba(255, 87, 34, 0.95) 0%,
        rgba(255, 152, 0, 0.95) 100%
    ) !important;
    border: 3px solid #ff5722 !important;
    color: white !important;
    font-weight: bold !important;
    z-index: 40 !important;
    animation: searchBlink 1s infinite !important;
}

/* Анимация поиска */
@keyframes searchBlink {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 87, 34, 0.8);
    }
    50% { 
        opacity: 0.85; 
        transform: scale(1.03);
        box-shadow: 0 0 25px rgba(255, 87, 34, 1);
    }
}

/* ПРОЦЕСС ВЫДЕЛЕНИЯ - ВРЕМЕННОЕ СОСТОЯНИЕ */
.selecting-active {
    background: rgba(255, 193, 7, 0.4) !important;
    border: 2px dashed #ffc107 !important;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6) !important;
    z-index: 8 !important;
}

/* ВЫДЕЛЕНИЕ СТРОК ДЛЯ УДАЛЕНИЯ */
.row-selected-for-deletion {
    background-color: #ffe6e6 !important;
    border: 2px solid #ff4444 !important;
}

.row-selected-for-deletion td {
    background-color: rgba(255, 230, 230, 0.6) !important;
    border-color: #ff6666 !important;
}

/* Убираем наследование фона для поисковых и выделенных ячеек в строках удаления */
.row-selected-for-deletion td.search-highlight {
    background: linear-gradient(
        45deg,
        rgba(255, 87, 34, 0.95) 0%,
        rgba(255, 152, 0, 0.95) 100%
    ) !important;
}

.row-selected-for-deletion td.selected {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 193, 7, 0.95) 0%,
        rgba(255, 193, 7, 0.95) 10px,
        rgba(255, 152, 0, 0.95) 10px,
        rgba(255, 152, 0, 0.95) 20px
    ) !important;
}

.row-selected-for-deletion td.auto-selected {
    background: repeating-linear-gradient(
        -45deg,
        rgba(33, 150, 243, 0.9) 0%,
        rgba(33, 150, 243, 0.9) 8px,
        rgba(3, 169, 244, 0.9) 8px,
        rgba(3, 169, 244, 0.9) 16px
    ) !important;
}

#searchContainer { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

#searchNavigation { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.disabled { 
    pointer-events: none; 
    background-color: #e9ecef; 
}

.new-row { 
    background-color: #d1e7dd; 
}

.container { 
    margin-top: 80px; 
}

.calculated-field { 
    background-color: #f8f9fa; 
    font-style: italic; 
}

.auto-calculated { 
    background-color: #e8f5e8; 
    font-style: italic; 
}

.rows-count { 
    background-color: #e7f3ff; 
    padding: 10px; 
    border-radius: 5px; 
    margin: 10px 0; 
    font-weight: bold; 
}

.totals-summary {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.total-item {
    text-align: center;
    margin: 5px 10px;
}

.total-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #0d6efd;
}

.total-label {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 5px;
}

/* Кнопка массового удаления */
.bulk-delete-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    display: none;
}

/* Стили для счетчика результатов поиска */
#searchResultsCount {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-left: 5px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

/* Цветовая индикация результатов поиска */
#searchResultsCount[style*="color: #dc3545"] {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

#searchResultsCount[style*="color: #28a745"] {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* ИНФОРМАЦИОННЫЕ ЭЛЕМЕНТЫ */
#selectedCellsInfo {
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Индикатор активного выделения */
.selection-counter {
    position: fixed;
    top: 50%;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.selection-counter.active {
    display: block;
    animation: counterFadeIn 0.3s ease;
}

@keyframes counterFadeIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
    #tableContainer {
        max-width: 90%;
        width: 90%;
    }
}

@media (max-width: 768px) {
    #tableContainer {
        max-width: 95%;
        width: 95%;
    }
    
    #spreadsheet {
        font-size: 0.8em;
    }
    
    #spreadsheet th, #spreadsheet td {
        padding: 4px 6px;
        min-width: 60px;
        max-width: 120px;
    }
    
    .row-number-column {
        min-width: 35px !important;
        max-width: 40px !important;
        width: 35px !important;
    }
}
/* ===== ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ КАСКАДНОГО УДАЛЕНИЯ ===== */

/* Строки с листами, которые используются в Nests - ТЕПЕРЬ МОЖНО УДАЛЯТЬ */
.row-used-in-nests {
    background-color: #CD4C4C !important; /* Красный цвет как требуется */
    border: 2px solid #a73e3e !important;
}

.row-used-in-nests td {
    background-color: rgba(205, 76, 76, 0.8) !important;
    color: white !important;
    font-weight: bold !important;
    border-color: #a73e3e !important;
}

/* Ячейки в строках использованных листов */
.used-in-nests-cell {
    background-color: rgba(205, 76, 76, 0.9) !important;
    color: white !important;
    font-weight: bold !important;
    cursor: not-allowed !important; /* Только для редактирования */
    pointer-events: none !important; /* Только для редактирования */
}

/* Номер строки в использованных листах */
.row-used-in-nests .row-number-column {
    background-color: #b04545 !important;
    color: white !important;
    font-weight: bold !important;
}

/* Чекбокс в использованных листах - ТЕПЕРЬ АКТИВЕН */
.row-used-in-nests input[type="checkbox"] {
    cursor: pointer !important; /* Изменено с not-allowed */
    opacity: 1 !important; /* Изменено с 0.5 */
    transform: scale(1.1); /* Немного увеличиваем для привлечения внимания */
    border: 2px solid #fff !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.row-used-in-nests input[type="checkbox"]:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8) !important;
}

.row-used-in-nests input[type="checkbox"]:checked {
    background-color: #fff !important;
    border-color: #fff !important;
}

/* Эффект наведения для чекбоксов в использованных листах */
.row-used-in-nests td:first-child {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.row-used-in-nests td:first-child:hover {
    background-color: rgba(180, 69, 69, 0.9) !important;
}

/* Эффект наведения для использованных листов - отключен только для ячеек данных */
.used-in-nests-cell:hover {
    background-color: rgba(205, 76, 76, 0.9) !important;
    cursor: not-allowed !important;
}

/* Поиск все еще работает поверх использованных листов */
.row-used-in-nests .search-highlight,
.row-used-in-nests td.search-highlight,
.used-in-nests-cell.search-highlight {
    background: linear-gradient(
        45deg,
        rgba(255, 87, 34, 0.95) 0%,
        rgba(255, 152, 0, 0.95) 100%
    ) !important;
    /* border: 3px solid #ff5722 !important; */
    color: white !important;
    font-weight: bold !important;
    z-index: 45 !important;
    animation: searchBlink 1s infinite !important;
    pointer-events: auto !important;
    cursor: default !important;
}

/* Выделение строк РАБОТАЕТ для использованных листов */
.row-used-in-nests.row-selected-for-deletion {
    background-color: #8B0000 !important; /* Темно-красный для выделенных */
    border: 3px solid #FF6B6B !important; /* Яркая граница для выделения */
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.6) !important;
}

.row-used-in-nests.row-selected-for-deletion td {
    background-color: rgba(139, 0, 0, 0.9) !important;
    color: white !important;
    border-color: #FF6B6B !important;
}

/* Особый стиль для ID ячейки с красным индикатором */
.used-in-nests-cell[data-field="InventoryPlateID"] {
    font-style: italic;
    position: relative;
}

/* Красный индикатор для листов в раскрое */
.used-in-nests-cell[data-field="InventoryPlateID"]::after {
    content: "🔴";
    margin-left: 5px;
    font-style: normal;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Анимация для привлечения внимания к использованным листам при загрузке */
@keyframes usedPlateGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(205, 76, 76, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(205, 76, 76, 0.8);
    }
}

.row-used-in-nests {
    animation: usedPlateGlow 2s ease-in-out 2; /* Мигает 2 раза при загрузке */
}

/* Стили для информационных подсказок */
.cascade-delete-info {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 0.85em;
}

.cascade-delete-info strong {
    color: #dc3545;
}

/* Обновленная легенда */
.nests-legend {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 5px 0;
    font-size: 0.85em;
}

.nests-legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 3px;
}

.nests-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 6px;
    border: 1px solid #ccc;
}

.nests-legend-color.used {
    background-color: #CD4C4C;
    position: relative;
}

.nests-legend-color.used::after {
    content: "🗑️";
    position: absolute;
    top: -2px;
    right: -8px;
    font-size: 10px;
}

.nests-legend-color.available {
    background-color: #e3f2fd;
}

/* Улучшенный стиль для tooltips */
.tooltip-cascade {
    position: relative;
}

.tooltip-cascade:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.tooltip-cascade:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

/* Стили для индикации статуса удаления */
.delete-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
}

.delete-status-indicator.cascade {
    color: #dc3545;
    font-weight: bold;
}

.delete-status-indicator.normal {
    color: #6c757d;
}

/* Выделение выбранных строк для удаления */
.row-selected-for-deletion {
    position: relative;
}

/* .row-selected-for-deletion::before {
    content: "🗑️";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 100;
    animation: deleteIndicator 1s infinite;
} */

@keyframes deleteIndicator {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Стили для модального окна подтверждения удаления */
.delete-confirmation-modal .modal-body {
    padding: 20px;
}

.delete-info-section {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 10px 15px;
    margin: 10px 0;
}

.delete-info-section.cascade {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.delete-info-section.normal {
    border-left-color: #28a745;
    background-color: #d4edda;
}

/* Анимация для привлечения внимания к возможности удаления */
.can-delete-indicator {
    animation: canDeletePulse 3s infinite;
}

@keyframes canDeletePulse {
    0%, 90%, 100% { opacity: 1; }
    45% { opacity: 0.7; }
}


/* Стили для отображения названия открытого материала слева от таблицы */
#materialNameDisplay {
    position: fixed;
    left: 0px;
    top: 60%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 8px 1px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    z-index: 1001;
    font-weight: bold;
    min-width: 200px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: materialDisplayPulse 3s infinite;
}

#materialNameDisplay.hidden {
    display: none;
}



/* Заголовок в блоке */
#materialNameDisplay .material-title {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Основное название */
#materialNameDisplay .material-name {
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Дополнительная информация */
#materialNameDisplay .material-info {
    font-size: 0.8em;
    opacity: 0.9;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
    #materialNameDisplay {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 10px auto;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    #materialNameDisplay {
        font-size: 0.9em;
        padding: 10px 15px;
        min-width: 150px;
    }
    
    #materialNameDisplay .material-name {
        font-size: 1em;
    }
}
/* Стили для диалога печати */
.print-dialog .modal-body {
    padding: 20px;
}

.print-dialog .form-check {
    margin-bottom: 10px;
}

.print-dialog .form-check-input:disabled + .form-check-label {
    opacity: 0.5;
}

/* Стили для кнопок печати */
.print-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.print-buttons .btn {
    font-size: 0.85em;
    padding: 4px 8px;
}

.print-buttons .dropdown-toggle::after {
    margin-left: 0.5em;
}

/* Скрытие элементов при печати */
@media print {
    .no-print,
    .btn,
    .dropdown,
    .modal,
    .alert,
    .navbar,
    .sidebar,
    #fixedHeader,
    #materialNameDisplay,
    .slide-delete-panel,
    .selection-counter {
        display: none !important;
    }
    
    /* Настройки для печати из основного окна (если вдруг кто-то нажмет Ctrl+P) */
    body {
        font-size: 12px;
        line-height: 1.3;
    }
    
    #mainContent {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    #tableContainer {
        max-height: none !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #spreadsheet {
        font-size: 10px;
    }
    
    #spreadsheet th,
    #spreadsheet td {
        padding: 2px 4px;
        font-size: 9px;
    }
    
    /* Разрывы страниц */
    .page-break {
        page-break-before: always;
    }
    
    .avoid-break {
        page-break-inside: avoid;
    }
}

/* Стили для индикатора печати */
.print-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 10000;
    display: none;
}

.print-indicator.show {
    display: block;
}

/* Анимация для кнопки печати */
.print-button-loading {
    position: relative;
    pointer-events: none;
}

.print-button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для быстрых кнопок печати */
.quick-print-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 10px;
}

.quick-print-buttons .btn {
    font-size: 0.8em;
    padding: 2px 6px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    transition: all 0.2s;
}

.quick-print-buttons .btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.quick-print-buttons .btn:active {
    transform: scale(0.98);
}

/* Стили для выпадающего меню печати */
.print-dropdown .dropdown-menu {
    min-width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.print-dropdown .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.print-dropdown .dropdown-item:active {
    background-color: #e3f2fd;
    color: #0056b3;
}

/* Стили для статуса печати */
.print-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.print-status.show {
    display: block;
    animation: slideInFromBottom 0.3s ease;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .print-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .print-buttons .btn {
        font-size: 0.8em;
        padding: 3px 6px;
    }
    
    .quick-print-buttons {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .print-dropdown .dropdown-menu {
        min-width: 150px;
    }
    
    .print-dropdown .dropdown-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Стили для иконок в кнопках */
.print-icon {
    font-size: 1.1em;
    margin-right: 4px;
}

/* Стили для разделителя в dropdown */
.print-dropdown .dropdown-divider {
    margin: 4px 0;
    border-top: 1px solid #e9ecef;
}

/* Стили для предупреждений печати */
.print-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.9em;
}

.print-warning .warning-icon {
    color: #f39c12;
    margin-right: 5px;
}

/* Стили для успешной печати */
.print-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.9em;
}

.print-success .success-icon {
    color: #28a745;
    margin-right: 5px;
}


/* =============================================================================
ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ РАСШИРЕННОЙ ПЕЧАТИ
Добавить в конец файла styles.css
============================================================================= */

/* ===== СТИЛИ ДЛЯ ДИАЛОГА РАСШИРЕННОЙ ПЕЧАТИ ===== */
.selection-mode-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.selection-mode-card:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.selection-mode-card .form-check-input:checked + .form-check-label {
    font-weight: bold;
    color: #007bff;
}

.selection-mode-card .form-check-input:disabled + .form-check-label {
    opacity: 0.5;
    color: #6c757d;
}

.selection-mode-card small {
    display: block;
    margin-top: 5px;
    font-style: italic;
}

/* ===== СТИЛИ ДЛЯ СЕЛЕКТОРА СТОЛБЦОВ ===== */
.column-selector {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    max-height: 120px;
    overflow-y: auto;
}

.column-selector .form-check-inline {
    margin-right: 15px;
    margin-bottom: 5px;
}

.column-selector .form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 500;
}

/* ===== СТИЛИ ДЛЯ РЕЖИМА ВЫДЕЛЕНИЯ ТАБЛИЦЫ ===== */
.table-selection-mode {
    cursor: crosshair !important;
}

.table-selection-mode * {
    cursor: crosshair !important;
}

/* Временное выделение */
#tempSelectionRect {
    border: 2px dashed #007bff !important;
    background: rgba(0, 123, 255, 0.2) !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5) !important;
    animation: selectionPulse 1s infinite;
}

@keyframes selectionPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Постоянное выделение */
.permanent-selection {
    border: 2px solid #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.6) !important;
}

.permanent-selection:hover {
    background: rgba(40, 167, 69, 0.2) !important;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.8) !important;
}

/* ===== СТИЛИ ДЛЯ ИНСТРУКЦИЙ ВЫДЕЛЕНИЯ ===== */
#selectionInstructions {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: instructionsFadeIn 0.3s ease;
}

@keyframes instructionsFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#selectionInstructions .btn {
    font-size: 12px;
    padding: 4px 8px;
    margin: 0 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.2s ease;
}

#selectionInstructions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* ===== СТИЛИ ДЛЯ ТАБЛИЦЫ В РЕЖИМЕ ВЫДЕЛЕНИЯ ===== */
.table-in-selection-mode {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.table-in-selection-mode td {
    position: relative;
}

.table-in-selection-mode td:hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.3);
}

/* ===== СТИЛИ ДЛЯ РАСШИРЕННОГО ВЫПАДАЮЩЕГО МЕНЮ ===== */
.advanced-print-dropdown .dropdown-menu {
    min-width: 280px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
}

.advanced-print-dropdown .dropdown-header {
    font-weight: 600;
    color: #495057;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 8px;
}

.advanced-print-dropdown .dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.advanced-print-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    transform: translateX(2px);
}

.advanced-print-dropdown .dropdown-item:active {
    background-color: #e3f2fd;
    color: #0056b3;
}

.advanced-print-dropdown .dropdown-item.disabled {
    color: #6c757d;
    opacity: 0.5;
    cursor: not-allowed;
}

.advanced-print-dropdown .dropdown-item.disabled:hover {
    background-color: transparent;
    transform: none;
}

/* ===== АДАПТИВНЫЕ СТИЛИ ===== */
@media (max-width: 768px) {
    .selection-mode-card {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .column-selector {
        padding: 8px;
        max-height: 100px;
    }
    
    .column-selector .form-check-inline {
        margin-right: 10px;
        margin-bottom: 8px;
    }
    
    #selectionInstructions {
        left: 10px;
        right: 10px;
        transform: none;
        padding: 12px;
    }
    
    .advanced-print-dropdown .dropdown-menu {
        min-width: 250px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .selection-mode-card {
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .selection-mode-card .form-check-label {
        font-size: 13px;
    }
    
    .selection-mode-card small {
        font-size: 11px;
    }
    
    .column-selector {
        padding: 6px;
        max-height: 80px;
    }
    
    .column-selector .form-check-inline {
        margin-right: 8px;
        margin-bottom: 6px;
    }
    
    .column-selector .form-check-label {
        font-size: 12px;
    }
    
    #selectionInstructions {
        padding: 10px;
        font-size: 12px;
    }
    
    #selectionInstructions .btn {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* ===== СТИЛИ ДЛЯ ПЕЧАТИ ===== */
@media print {
    .selection-mode-card,
    .column-selector,
    .advanced-print-dropdown,
    #selectionInstructions,
    .permanent-selection,
    #tempSelectionRect {
        display: none !important;
    }
}

/* ===== СТИЛИ ДЛЯ АНИМАЦИЙ ===== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.selection-mode-card {
    animation: fadeInScale 0.2s ease;
}

/* ===== СТИЛИ ДЛЯ ТЕМНОЙ ТЕМЫ ===== */
@media (prefers-color-scheme: dark) {
    .selection-mode-card {
        background: #343a40;
        border-color: #495057;
        color: #fff;
    }
    
    .selection-mode-card:hover {
        background: #495057;
        border-color: #007bff;
    }
    
    .column-selector {
        background: #343a40;
        border-color: #495057;
        color: #fff;
    }
    
    .advanced-print-dropdown .dropdown-menu {
        background: #343a40;
        border-color: #495057;
        color: #fff;
    }
    
    .advanced-print-dropdown .dropdown-item {
        color: #fff;
    }
    
    .advanced-print-dropdown .dropdown-item:hover {
        background-color: #495057;
        color: #4fc3f7;
    }
}







/* Стили для зарезервированных листов (серая подсветка) */
.row-reserved {
    background-color: rgba(128, 128, 128, 0.3) !important;
    border-left: 4px solid #6c757d !important;
}

.row-reserved td {
    background-color: rgba(128, 128, 128, 0.2) !important;
    color: #495057 !important;
}

.row-reserved:hover {
    background-color: rgba(128, 128, 128, 0.4) !important;
}

.row-reserved:hover td {
    background-color: rgba(128, 128, 128, 0.35) !important;
}

/* Ячейки зарезервированных листов */
.reserved-cell {
    background-color: rgba(128, 128, 128, 0.15) !important;
    border-color: #dee2e6 !important;
}

.reserved-cell:hover {
    background-color: rgba(128, 128, 128, 0.25) !important;
    cursor: pointer !important;
}

/* Выделение зарезервированных строк для удаления */
.row-reserved.row-selected-for-deletion {
    background-color: rgba(128, 128, 128, 0.6) !important;
    border: 3px solid #6c757d !important;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.5) !important;
}

.row-reserved.row-selected-for-deletion td {
    background-color: rgba(128, 128, 128, 0.55) !important;
    color: #212529 !important;
    font-weight: 500 !important;
    border-color: #6c757d !important;
}

/* Специальные стили для ID ячеек зарезервированных листов */
.row-reserved .inventoryplateid-cell {
    font-style: italic;
    position: relative;
}

.row-reserved .inventoryplateid-cell::after {
    content: " (зарезервирован)";
    font-size: 0.8em;
    color: #6c757d;
    font-weight: normal;
}





/* ────────────────────────────────────────────────
   В ФАЙЛ styles.css — ДОБАВИТЬ ЭТУ ЧАСТЬ В КОНЕЦ
   ──────────────────────────────────────────────── */

/* Стили для страницы склада обрезков */
#cutsTableContainer {
    margin-top: 20px;
    padding: 0;
    max-width: 100%;
    overflow-x: auto;
}

#cutsTable {
    width: 100%;
    table-layout: fixed;
}

#cutsTable th, #cutsTable td {
    text-align: center;
    vertical-align: middle;
}

#cutsTable th:first-child, #cutsTable td:first-child {
    width: 60px;
}

#cutsTable th:nth-child(2), #cutsTable td:nth-child(2) {
    width: 40%;
    text-align: left;
}

#cutsTable th:nth-child(3), #cutsTable td:nth-child(3) {
    width: 80px;
}

#cutsTable th:nth-child(4), #cutsTable td:nth-child(4) {
    width: 100px;
}

#cutsTable th:last-child, #cutsTable td:last-child {
    width: 120px;
}

/* Кнопки действий */
#cutsTable .btn-sm {
    font-size: 0.8em;
    padding: 4px 8px;
}

/* Модалка */
#editModal .modal-body {
    padding: 20px;
}

#deleteItem {
    margin-left: auto;
}