/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-qt3v8ryxbq] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-qt3v8ryxbq] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ksz0djm6ks],
.components-reconnect-repeated-attempt-visible[b-ksz0djm6ks],
.components-reconnect-failed-visible[b-ksz0djm6ks],
.components-pause-visible[b-ksz0djm6ks],
.components-resume-failed-visible[b-ksz0djm6ks],
.components-rejoining-animation[b-ksz0djm6ks] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ksz0djm6ks],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ksz0djm6ks],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ksz0djm6ks],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ksz0djm6ks],
#components-reconnect-modal.components-reconnect-retrying[b-ksz0djm6ks],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ksz0djm6ks],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ksz0djm6ks],
#components-reconnect-modal.components-reconnect-failed[b-ksz0djm6ks],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ksz0djm6ks] {
    display: block;
}


#components-reconnect-modal[b-ksz0djm6ks] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-ksz0djm6ks 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-ksz0djm6ks 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-ksz0djm6ks 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-ksz0djm6ks]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-ksz0djm6ks 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ksz0djm6ks {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ksz0djm6ks {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ksz0djm6ks {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-ksz0djm6ks] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ksz0djm6ks] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-ksz0djm6ks] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-ksz0djm6ks] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-ksz0djm6ks] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-ksz0djm6ks] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-ksz0djm6ks] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-ksz0djm6ks 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-ksz0djm6ks] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-ksz0djm6ks {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/ScadaPages/Mongo/CreateRecipeModal.razor.rz.scp.css */
/* CSS for CreateRecipeModal component */
/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay[b-h92pm2muad] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content[b-h92pm2muad] {
    background: #2d2d3f;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-header[b-h92pm2muad] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

    .modal-header h3[b-h92pm2muad] {
        margin: 0;
        font-weight: 300;
    }

.btn-close[b-h92pm2muad] {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body[b-h92pm2muad] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group[b-h92pm2muad] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .form-group label[b-h92pm2muad] {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .form-group input[b-h92pm2muad] {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 1rem;
    }

        .form-group input:focus[b-h92pm2muad] {
            outline: none;
            border-color: #a78bfa;
        }

.error-message[b-h92pm2muad] {
    color: #ff6b6b;
    font-size: 0.9rem;
    background: rgba(255, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.modal-footer[b-h92pm2muad] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel[b-h92pm2muad],
.btn-save[b-h92pm2muad] {
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel[b-h92pm2muad] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

    .btn-cancel:hover[b-h92pm2muad] {
        background: rgba(255, 255, 255, 0.25);
    }

.btn-save[b-h92pm2muad] {
    background: #7c3aed;
    color: #fff;
}

    .btn-save:hover[b-h92pm2muad] {
        background: #6d28d9;
    }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .modal-content[b-h92pm2muad] {
        max-width: 95%;
        padding: 16px;
    }
}

/* ===== СКРОЛЛБАРЫ ===== */
.modal-content[b-h92pm2muad]::-webkit-scrollbar {
    width: 6px;
}

.modal-content[b-h92pm2muad]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-content[b-h92pm2muad]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
/* /Components/ScadaPages/Mongo/Recipes - Копировать.razor.rz.scp.css */
/* ===== ОСНОВНАЯ СЕТКА ===== */
.recipes-page[b-49yd7jxqd8] {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== ЛЕВАЯ ПАНЕЛЬ ===== */
.recipes-sidebar[b-49yd7jxqd8] {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

    .recipes-sidebar h3[b-49yd7jxqd8] {
        margin-top: 0;
        margin-bottom: 16px;
        font-weight: 300;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

.recipe-list[b-49yd7jxqd8] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-btn[b-49yd7jxqd8] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

    .recipe-btn:hover[b-49yd7jxqd8] {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

    .recipe-btn.active[b-49yd7jxqd8] {
        background: rgba(255, 255, 255, 0.25);
        border-color: #fff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

.btn-refresh[b-49yd7jxqd8] {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    width: 100%;
    margin-bottom: 12px;
}

    .btn-refresh:hover[b-49yd7jxqd8] {
        background: rgba(255, 255, 255, 0.25);
    }

/* ===== ПРАВАЯ ПАНЕЛЬ ===== */
.recipe-details[b-49yd7jxqd8] {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.recipe-card[b-49yd7jxqd8] {
    flex: 1;
}

.recipe-header[b-49yd7jxqd8] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.recipe-title[b-49yd7jxqd8] {
    margin: 0;
    font-weight: 300;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    flex: 1;
}

.recipe-actions[b-49yd7jxqd8] {
    display: flex;
    gap: 10px;
}

.btn-add-step[b-49yd7jxqd8],
.btn-save-recipe[b-49yd7jxqd8] {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .btn-add-step:hover[b-49yd7jxqd8],
    .btn-save-recipe:hover[b-49yd7jxqd8] {
        background: rgba(255, 255, 255, 0.25);
    }

/* ===== ТАБЛИЦА ШАГОВ ===== */
.steps-table[b-49yd7jxqd8] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ===== ЗАГЛУШКА ===== */
.drop-placeholder[b-49yd7jxqd8] {
    height: 0;
    transform: scaleY(0);
    transform-origin: top;
    overflow: hidden;
    border: 2px dashed #a78bfa;
    background: rgba(167, 139, 250, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(167, 139, 250, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
    pointer-events: none;
    transition: transform 0.25s ease, height 0.25s ease;
    margin: 0;
}

    .drop-placeholder.active[b-49yd7jxqd8] {
        height: 56px;
        transform: scaleY(1);
        margin: 4px 0;
    }

    .drop-placeholder span[b-49yd7jxqd8] {
        display: block;
    }

/* ===== СТРОКА ШАГА ===== */
.step-row[b-49yd7jxqd8] {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.2s, opacity 0.2s;
}

    .step-row:hover[b-49yd7jxqd8] {
        background: rgba(255, 255, 255, 0.12);
    }

    .step-row.dragging[b-49yd7jxqd8] {
        opacity: 0.4;
    }

.step-header[b-49yd7jxqd8] {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    user-select: none;
    font-weight: 500;
    font-size: 1.05rem;
    gap: 8px;
}

.drag-handle[b-49yd7jxqd8] {
    cursor: grab;
    user-select: none;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

    .drag-handle:hover[b-49yd7jxqd8] {
        color: #fff;
    }

    .drag-handle:active[b-49yd7jxqd8] {
        cursor: grabbing;
    }

.step-label[b-49yd7jxqd8] {
    flex: 1;
    cursor: pointer;
}

.btn-edit-step[b-49yd7jxqd8] {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 6px;
    transition: color 0.2s;
}

    .btn-edit-step:hover[b-49yd7jxqd8] {
        color: #fff;
    }

.btn-delete-step[b-49yd7jxqd8] {
    background: none;
    border: none;
    color: rgba(255, 100, 100, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 6px;
    transition: color 0.2s;
}

    .btn-delete-step:hover[b-49yd7jxqd8] {
        color: #ff6b6b;
    }

.step-arrow[b-49yd7jxqd8] {
    cursor: pointer;
    font-size: 1.2rem;
}

.step-details[b-49yd7jxqd8] {
    padding: 0 16px 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn-b-49yd7jxqd8 0.25s ease;
}

.param[b-49yd7jxqd8] {
    padding: 4px 0;
    font-size: 0.95rem;
    color: #e0e0ff;
}

/* ===== ПЛЕЙСХОЛДЕР ===== */
.placeholder[b-49yd7jxqd8] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.6;
    font-style: italic;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes fadeIn-b-49yd7jxqd8 {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay[b-49yd7jxqd8] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content[b-49yd7jxqd8] {
    background: #2d2d3f;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-header[b-49yd7jxqd8] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

    .modal-header h3[b-49yd7jxqd8] {
        margin: 0;
        font-weight: 300;
    }

.btn-close[b-49yd7jxqd8] {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body[b-49yd7jxqd8] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group[b-49yd7jxqd8] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .form-group label[b-49yd7jxqd8] {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .form-group input[b-49yd7jxqd8] {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 1rem;
    }

        .form-group input:focus[b-49yd7jxqd8] {
            outline: none;
            border-color: #a78bfa;
        }

.modal-footer[b-49yd7jxqd8] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel[b-49yd7jxqd8],
.btn-save[b-49yd7jxqd8] {
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel[b-49yd7jxqd8] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

    .btn-cancel:hover[b-49yd7jxqd8] {
        background: rgba(255, 255, 255, 0.25);
    }

.btn-save[b-49yd7jxqd8] {
    background: #7c3aed;
    color: #fff;
}

    .btn-save:hover[b-49yd7jxqd8] {
        background: #6d28d9;
    }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .recipes-page[b-49yd7jxqd8] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 12px;
        gap: 12px;
        height: 100vh;
    }

    .recipes-sidebar[b-49yd7jxqd8] {
        max-height: 200px;
        overflow-y: auto;
    }

    .recipe-details[b-49yd7jxqd8] {
        min-height: 300px;
    }

    .modal-content[b-49yd7jxqd8] {
        max-width: 95%;
        padding: 16px;
    }
}

/* ===== СКРОЛЛБАРЫ ===== */
.recipes-sidebar[b-49yd7jxqd8]::-webkit-scrollbar,
.recipe-details[b-49yd7jxqd8]::-webkit-scrollbar,
.modal-content[b-49yd7jxqd8]::-webkit-scrollbar {
    width: 6px;
}

.recipes-sidebar[b-49yd7jxqd8]::-webkit-scrollbar-track,
.recipe-details[b-49yd7jxqd8]::-webkit-scrollbar-track,
.modal-content[b-49yd7jxqd8]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.recipes-sidebar[b-49yd7jxqd8]::-webkit-scrollbar-thumb,
.recipe-details[b-49yd7jxqd8]::-webkit-scrollbar-thumb,
.modal-content[b-49yd7jxqd8]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
/* /Components/ScadaPages/Mongo/Recipes.razor.rz.scp.css */
/* ===== ОСНОВНАЯ СЕТКА ===== */
.recipes-page[b-kztpqhjjor] {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== ЛЕВАЯ ПАНЕЛЬ ===== */
.recipes-sidebar[b-kztpqhjjor] {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

    .recipes-sidebar h3[b-kztpqhjjor] {
        margin-top: 16px;
        margin-bottom: 16px;
        font-weight: 300;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

.recipe-list[b-kztpqhjjor] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-btn[b-kztpqhjjor] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

    .recipe-btn:hover[b-kztpqhjjor] {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

    .recipe-btn.active[b-kztpqhjjor] {
        background: rgba(255, 255, 255, 0.25);
        border-color: #fff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

.btn-refresh[b-kztpqhjjor],
.btn-create-recipe[b-kztpqhjjor] {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    width: 100%;
    margin-bottom: 8px;
}

    .btn-refresh:hover[b-kztpqhjjor],
    .btn-create-recipe:hover[b-kztpqhjjor] {
        background: rgba(255, 255, 255, 0.25);
    }

.btn-create-recipe[b-kztpqhjjor] {
    background: rgba(167, 139, 250, 0.3);
    border: 1px solid rgba(167, 139, 250, 0.4);
}

    .btn-create-recipe:hover[b-kztpqhjjor] {
        background: rgba(167, 139, 250, 0.5);
    }

/* ===== ПРАВАЯ ПАНЕЛЬ ===== */
.recipe-details[b-kztpqhjjor] {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.recipe-card[b-kztpqhjjor] {
    flex: 1;
}

.recipe-header[b-kztpqhjjor] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.recipe-title[b-kztpqhjjor] {
    margin: 0;
    font-weight: 300;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    flex: 1;
}

.recipe-actions[b-kztpqhjjor] {
    display: flex;
    gap: 10px;
}

.btn-add-step[b-kztpqhjjor],
.btn-save-recipe[b-kztpqhjjor] {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .btn-add-step:hover[b-kztpqhjjor],
    .btn-save-recipe:hover[b-kztpqhjjor] {
        background: rgba(255, 255, 255, 0.25);
    }

/* ===== ТАБЛИЦА ШАГОВ ===== */
.steps-table[b-kztpqhjjor] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ===== ЗАГЛУШКА ===== */
.drop-placeholder[b-kztpqhjjor] {
    height: 0;
    transform: scaleY(0);
    transform-origin: top;
    overflow: hidden;
    border: 2px dashed #a78bfa;
    background: rgba(167, 139, 250, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(167, 139, 250, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
    pointer-events: none;
    transition: transform 0.25s ease, height 0.25s ease;
    margin: 0;
}

    .drop-placeholder.active[b-kztpqhjjor] {
        height: 56px;
        transform: scaleY(1);
        margin: 4px 0;
    }

    .drop-placeholder span[b-kztpqhjjor] {
        display: block;
    }

/* ===== СТРОКА ШАГА ===== */
.step-row[b-kztpqhjjor] {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.2s, opacity 0.2s;
}

    .step-row:hover[b-kztpqhjjor] {
        background: rgba(255, 255, 255, 0.12);
    }

    .step-row.dragging[b-kztpqhjjor] {
        opacity: 0.4;
    }

.step-header[b-kztpqhjjor] {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    user-select: none;
    font-weight: 500;
    font-size: 1.05rem;
    gap: 8px;
}

.drag-handle[b-kztpqhjjor] {
    cursor: grab;
    user-select: none;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

    .drag-handle:hover[b-kztpqhjjor] {
        color: #fff;
    }

    .drag-handle:active[b-kztpqhjjor] {
        cursor: grabbing;
    }

.step-label[b-kztpqhjjor] {
    flex: 1;
    cursor: pointer;
}

.btn-edit-step[b-kztpqhjjor] {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 6px;
    transition: color 0.2s;
}

    .btn-edit-step:hover[b-kztpqhjjor] {
        color: #fff;
    }

.btn-delete-step[b-kztpqhjjor] {
    background: none;
    border: none;
    color: rgba(255, 100, 100, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 6px;
    transition: color 0.2s;
}

    .btn-delete-step:hover[b-kztpqhjjor] {
        color: #ff6b6b;
    }

.step-arrow[b-kztpqhjjor] {
    cursor: pointer;
    font-size: 1.2rem;
}

.step-details[b-kztpqhjjor] {
    padding: 0 16px 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn-b-kztpqhjjor 0.25s ease;
}

.param[b-kztpqhjjor] {
    padding: 4px 0;
    font-size: 0.95rem;
    color: #e0e0ff;
}

/* ===== ПЛЕЙСХОЛДЕР ===== */
.placeholder[b-kztpqhjjor] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.6;
    font-style: italic;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes fadeIn-b-kztpqhjjor {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay[b-kztpqhjjor] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content[b-kztpqhjjor] {
    background: #2d2d3f;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-header[b-kztpqhjjor] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

    .modal-header h3[b-kztpqhjjor] {
        margin: 0;
        font-weight: 300;
    }

.btn-close[b-kztpqhjjor] {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body[b-kztpqhjjor] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group[b-kztpqhjjor] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .form-group label[b-kztpqhjjor] {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .form-group input[b-kztpqhjjor] {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 1rem;
    }

        .form-group input:focus[b-kztpqhjjor] {
            outline: none;
            border-color: #a78bfa;
        }

.error-message[b-kztpqhjjor] {
    color: #ff6b6b;
    font-size: 0.9rem;
    background: rgba(255, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.modal-footer[b-kztpqhjjor] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel[b-kztpqhjjor],
.btn-save[b-kztpqhjjor] {
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel[b-kztpqhjjor] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

    .btn-cancel:hover[b-kztpqhjjor] {
        background: rgba(255, 255, 255, 0.25);
    }

.btn-save[b-kztpqhjjor] {
    background: #7c3aed;
    color: #fff;
}

    .btn-save:hover[b-kztpqhjjor] {
        background: #6d28d9;
    }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .recipes-page[b-kztpqhjjor] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 12px;
        gap: 12px;
        height: 100vh;
    }

    .recipes-sidebar[b-kztpqhjjor] {
        max-height: 200px;
        overflow-y: auto;
    }

    .recipe-details[b-kztpqhjjor] {
        min-height: 300px;
    }

    .modal-content[b-kztpqhjjor] {
        max-width: 95%;
        padding: 16px;
    }
}

/* ===== СКРОЛЛБАРЫ ===== */
.recipes-sidebar[b-kztpqhjjor]::-webkit-scrollbar,
.recipe-details[b-kztpqhjjor]::-webkit-scrollbar,
.modal-content[b-kztpqhjjor]::-webkit-scrollbar {
    width: 6px;
}

.recipes-sidebar[b-kztpqhjjor]::-webkit-scrollbar-track,
.recipe-details[b-kztpqhjjor]::-webkit-scrollbar-track,
.modal-content[b-kztpqhjjor]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.recipes-sidebar[b-kztpqhjjor]::-webkit-scrollbar-thumb,
.recipe-details[b-kztpqhjjor]::-webkit-scrollbar-thumb,
.modal-content[b-kztpqhjjor]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}


.btn-delete-recipe[b-kztpqhjjor] {
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;

    background: rgba(255, 80, 80, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #fff;
}

    .btn-delete-recipe:hover[b-kztpqhjjor] {
        background: rgba(255, 80, 80, 0.4);
    }
/* /Components/ScadaPages/Mongo/StepModal.razor.rz.scp.css */
/* CSS for StepModal component */
.modal-overlay[b-9uap4a5jhb] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content[b-9uap4a5jhb] {
    background: #2d2d3f;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.modal-header[b-9uap4a5jhb] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

    .modal-header h3[b-9uap4a5jhb] {
        margin: 0;
        font-weight: 300;
    }

.btn-close[b-9uap4a5jhb] {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.form-group[b-9uap4a5jhb] {
    margin-bottom: 12px;
}

    .form-group label[b-9uap4a5jhb] {
        display: block;
        font-size: 0.9rem;
        opacity: 0.8;
        margin-bottom: 4px;
    }

    .form-group input[b-9uap4a5jhb] {
        width: 100%;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.08);
        color: #fff;
        font-size: 1rem;
    }

        .form-group input:focus[b-9uap4a5jhb] {
            outline: none;
            border-color: #a78bfa;
        }

.modal-footer[b-9uap4a5jhb] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel[b-9uap4a5jhb], .btn-save[b-9uap4a5jhb] {
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel[b-9uap4a5jhb] {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

    .btn-cancel:hover[b-9uap4a5jhb] {
        background: rgba(255,255,255,0.25);
    }

.btn-save[b-9uap4a5jhb] {
    background: #7c3aed;
    color: #fff;
}

    .btn-save:hover[b-9uap4a5jhb] {
        background: #6d28d9;
    }
/* /Components/ScadaPages/Mongo/WriteRecipeModal.razor.rz.scp.css */
/* CSS for WriteRecipeModal component */
/* modal-overlay */
.modal-overlay[b-zo3vqkuntx] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .modal-overlay.active[b-zo3vqkuntx] {
        display: flex;
    }

.modal-content[b-zo3vqkuntx] {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    min-width: 400px;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header[b-zo3vqkuntx] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

    .modal-header .btn-close[b-zo3vqkuntx] {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

        .modal-header .btn-close:disabled[b-zo3vqkuntx] {
            cursor: not-allowed;
            opacity: 0.5;
        }

.form-group[b-zo3vqkuntx] {
    margin-bottom: 15px;
}

    .form-group label[b-zo3vqkuntx] {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .form-group select[b-zo3vqkuntx] {
        width: 100%;
        padding: 8px;
    }

.progress-container[b-zo3vqkuntx] {
    margin: 15px 0;
}

.progress-bar[b-zo3vqkuntx] {
    background: #4CAF50;
    height: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    line-height: 20px;
    transition: width 0.3s;
}

.status-message[b-zo3vqkuntx] {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

    .status-message.success[b-zo3vqkuntx] {
        background: #d4edda;
        color: #155724;
    }

    .status-message.error[b-zo3vqkuntx] {
        background: #f8d7da;
        color: #721c24;
    }

.modal-footer[b-zo3vqkuntx] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

    .modal-footer button[b-zo3vqkuntx] {
        padding: 8px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .modal-footer button:disabled[b-zo3vqkuntx] {
            opacity: 0.6;
            cursor: not-allowed;
        }

.btn-cancel[b-zo3vqkuntx] {
    background: #6c757d;
    color: white;
}

.btn-write[b-zo3vqkuntx] {
    background: #007bff;
    color: white;
}

    .btn-write:hover:not(:disabled)[b-zo3vqkuntx] {
        background: #0056b3;
    }
/* /Components/ScadaPages/Tags/TagEditor/Recipes - Копировать - Копировать.razor.rz.scp.css */
/* ===== ОСНОВНАЯ СЕТКА ===== */
.recipes-page[b-mvn8g44c94] {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== ЛЕВАЯ ПАНЕЛЬ ===== */
.recipes-sidebar[b-mvn8g44c94] {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

    .recipes-sidebar h3[b-mvn8g44c94] {
        margin-top: 0;
        margin-bottom: 16px;
        font-weight: 300;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

.recipe-list[b-mvn8g44c94] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-btn[b-mvn8g44c94] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

    .recipe-btn:hover[b-mvn8g44c94] {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

    .recipe-btn.active[b-mvn8g44c94] {
        background: rgba(255, 255, 255, 0.25);
        border-color: #fff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

.btn-refresh[b-mvn8g44c94] {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    width: 100%;
    margin-bottom: 12px;
}

    .btn-refresh:hover[b-mvn8g44c94] {
        background: rgba(255, 255, 255, 0.25);
    }

/* ===== ПРАВАЯ ПАНЕЛЬ ===== */
.recipe-details[b-mvn8g44c94] {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.recipe-card[b-mvn8g44c94] {
    flex: 1;
}

.recipe-header[b-mvn8g44c94] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.recipe-title[b-mvn8g44c94] {
    margin: 0;
    font-weight: 300;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    flex: 1;
}

.recipe-actions[b-mvn8g44c94] {
    display: flex;
    gap: 10px;
}

.btn-add-step[b-mvn8g44c94],
.btn-save-recipe[b-mvn8g44c94] {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .btn-add-step:hover[b-mvn8g44c94],
    .btn-save-recipe:hover[b-mvn8g44c94] {
        background: rgba(255, 255, 255, 0.25);
    }

/* ===== ТАБЛИЦА ШАГОВ ===== */
.steps-table[b-mvn8g44c94] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ===== ЗАГЛУШКА ===== */
.drop-placeholder[b-mvn8g44c94] {
    height: 0;
    transform: scaleY(0);
    transform-origin: top;
    overflow: hidden;
    border: 2px dashed #a78bfa;
    background: rgba(167, 139, 250, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(167, 139, 250, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
    pointer-events: none;
    transition: transform 0.25s ease, height 0.25s ease;
    margin: 0;
}

    .drop-placeholder.active[b-mvn8g44c94] {
        height: 56px;
        transform: scaleY(1);
        margin: 4px 0;
    }

    .drop-placeholder span[b-mvn8g44c94] {
        display: block;
    }

/* ===== СТРОКА ШАГА ===== */
.step-row[b-mvn8g44c94] {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.2s, opacity 0.2s;
}

    .step-row:hover[b-mvn8g44c94] {
        background: rgba(255, 255, 255, 0.12);
    }

    .step-row.dragging[b-mvn8g44c94] {
        opacity: 0.4;
    }

.step-header[b-mvn8g44c94] {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    user-select: none;
    font-weight: 500;
    font-size: 1.05rem;
    gap: 8px;
}

.drag-handle[b-mvn8g44c94] {
    cursor: grab;
    user-select: none;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

    .drag-handle:hover[b-mvn8g44c94] {
        color: #fff;
    }

    .drag-handle:active[b-mvn8g44c94] {
        cursor: grabbing;
    }

.step-label[b-mvn8g44c94] {
    flex: 1;
    cursor: pointer;
}

.btn-edit-step[b-mvn8g44c94] {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 6px;
    transition: color 0.2s;
}

    .btn-edit-step:hover[b-mvn8g44c94] {
        color: #fff;
    }

.step-arrow[b-mvn8g44c94] {
    cursor: pointer;
    font-size: 1.2rem;
}

.step-details[b-mvn8g44c94] {
    padding: 0 16px 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn-b-mvn8g44c94 0.25s ease;
}

.param[b-mvn8g44c94] {
    padding: 4px 0;
    font-size: 0.95rem;
    color: #e0e0ff;
}

/* ===== ПЛЕЙСХОЛДЕР ===== */
.placeholder[b-mvn8g44c94] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.6;
    font-style: italic;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes fadeIn-b-mvn8g44c94 {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay[b-mvn8g44c94] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content[b-mvn8g44c94] {
    background: #2d2d3f;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-header[b-mvn8g44c94] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

    .modal-header h3[b-mvn8g44c94] {
        margin: 0;
        font-weight: 300;
    }

.btn-close[b-mvn8g44c94] {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body[b-mvn8g44c94] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group[b-mvn8g44c94] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .form-group label[b-mvn8g44c94] {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .form-group input[b-mvn8g44c94] {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 1rem;
    }

        .form-group input:focus[b-mvn8g44c94] {
            outline: none;
            border-color: #a78bfa;
        }

.modal-footer[b-mvn8g44c94] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel[b-mvn8g44c94],
.btn-save[b-mvn8g44c94] {
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel[b-mvn8g44c94] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

    .btn-cancel:hover[b-mvn8g44c94] {
        background: rgba(255, 255, 255, 0.25);
    }

.btn-save[b-mvn8g44c94] {
    background: #7c3aed;
    color: #fff;
}

    .btn-save:hover[b-mvn8g44c94] {
        background: #6d28d9;
    }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .recipes-page[b-mvn8g44c94] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 12px;
        gap: 12px;
        height: 100vh;
    }

    .recipes-sidebar[b-mvn8g44c94] {
        max-height: 200px;
        overflow-y: auto;
    }

    .recipe-details[b-mvn8g44c94] {
        min-height: 300px;
    }

    .modal-content[b-mvn8g44c94] {
        max-width: 95%;
        padding: 16px;
    }
}

/* ===== СКРОЛЛБАРЫ ===== */
.recipes-sidebar[b-mvn8g44c94]::-webkit-scrollbar,
.recipe-details[b-mvn8g44c94]::-webkit-scrollbar,
.modal-content[b-mvn8g44c94]::-webkit-scrollbar {
    width: 6px;
}

.recipes-sidebar[b-mvn8g44c94]::-webkit-scrollbar-track,
.recipe-details[b-mvn8g44c94]::-webkit-scrollbar-track,
.modal-content[b-mvn8g44c94]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.recipes-sidebar[b-mvn8g44c94]::-webkit-scrollbar-thumb,
.recipe-details[b-mvn8g44c94]::-webkit-scrollbar-thumb,
.modal-content[b-mvn8g44c94]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
/* /Components/ScadaPages/Tags/TagEditor/Recipes - Копировать.razor.rz.scp.css */
/* CSS for Recipes component */
/* Основной контейнер страницы */
.recipes-page[b-5rkmzkpiw6] {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Левая колонка */
.recipes-sidebar[b-5rkmzkpiw6] {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

    .recipes-sidebar h3[b-5rkmzkpiw6] {
        margin-top: 0;
        margin-bottom: 16px;
        font-weight: 300;
        letter-spacing: 1px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

.recipe-list[b-5rkmzkpiw6] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-btn[b-5rkmzkpiw6] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

    .recipe-btn:hover[b-5rkmzkpiw6] {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

    .recipe-btn.active[b-5rkmzkpiw6] {
        background: rgba(255, 255, 255, 0.25);
        border-color: #fff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

/* Правая колонка */
.recipe-details[b-5rkmzkpiw6] {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.recipe-card[b-5rkmzkpiw6] {
    flex: 1;
}

.recipe-title[b-5rkmzkpiw6] {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.steps-table[b-5rkmzkpiw6] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-row[b-5rkmzkpiw6] {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.2s;
}

    .step-row:hover[b-5rkmzkpiw6] {
        background: rgba(255, 255, 255, 0.12);
    }

.step-header[b-5rkmzkpiw6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.step-arrow[b-5rkmzkpiw6] {
    transition: transform 0.2s;
    font-size: 1.2rem;
}

.step-details[b-5rkmzkpiw6] {
    padding: 0 16px 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn-b-5rkmzkpiw6 0.25s ease;
}

.param[b-5rkmzkpiw6] {
    padding: 4px 0;
    font-size: 0.95rem;
    color: #e0e0ff;
}

.param-delay[b-5rkmzkpiw6] {
    grid-column: 1 / -1;
    padding-top: 6px;
    font-weight: 500;
    color: #c0c0ff;
}

.placeholder[b-5rkmzkpiw6] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.6;
    font-style: italic;
}

/* Анимация */
@keyframes fadeIn-b-5rkmzkpiw6 {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .recipes-page[b-5rkmzkpiw6] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 12px;
        gap: 12px;
        height: 100vh;
    }

    .recipes-sidebar[b-5rkmzkpiw6] {
        max-height: 200px;
        overflow-y: auto;
    }

    .recipe-details[b-5rkmzkpiw6] {
        min-height: 300px;
    }
}

/* Стилизация скроллбара */
.recipes-sidebar[b-5rkmzkpiw6]::-webkit-scrollbar,
.recipe-details[b-5rkmzkpiw6]::-webkit-scrollbar {
    width: 6px;
}

.recipes-sidebar[b-5rkmzkpiw6]::-webkit-scrollbar-track,
.recipe-details[b-5rkmzkpiw6]::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.recipes-sidebar[b-5rkmzkpiw6]::-webkit-scrollbar-thumb,
.recipe-details[b-5rkmzkpiw6]::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}
/* /Components/ScadaPages/Tags/TagEditor/Recipes.razor.rz.scp.css */
/* CSS for Recipes component */
/* Основной контейнер страницы */
.recipes-page[b-jzxc8v2tax] {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Левая колонка */
.recipes-sidebar[b-jzxc8v2tax] {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

    .recipes-sidebar h3[b-jzxc8v2tax] {
        margin-top: 0;
        margin-bottom: 16px;
        font-weight: 300;
        letter-spacing: 1px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

.recipe-list[b-jzxc8v2tax] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-btn[b-jzxc8v2tax] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

    .recipe-btn:hover[b-jzxc8v2tax] {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(4px);
    }

    .recipe-btn.active[b-jzxc8v2tax] {
        background: rgba(255, 255, 255, 0.25);
        border-color: #fff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    }

/* Правая колонка */
.recipe-details[b-jzxc8v2tax] {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.recipe-card[b-jzxc8v2tax] {
    flex: 1;
}

.recipe-title[b-jzxc8v2tax] {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.steps-table[b-jzxc8v2tax] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-row[b-jzxc8v2tax] {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.2s;
}

    .step-row:hover[b-jzxc8v2tax] {
        background: rgba(255, 255, 255, 0.12);
    }

.step-header[b-jzxc8v2tax] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.step-arrow[b-jzxc8v2tax] {
    transition: transform 0.2s;
    font-size: 1.2rem;
}

.step-details[b-jzxc8v2tax] {
    padding: 0 16px 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn-b-jzxc8v2tax 0.25s ease;
}

.param[b-jzxc8v2tax] {
    padding: 4px 0;
    font-size: 0.95rem;
    color: #e0e0ff;
}

.param-delay[b-jzxc8v2tax] {
    grid-column: 1 / -1;
    padding-top: 6px;
    font-weight: 500;
    color: #c0c0ff;
}

.placeholder[b-jzxc8v2tax] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.6;
    font-style: italic;
}

/* Анимация */
@keyframes fadeIn-b-jzxc8v2tax {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .recipes-page[b-jzxc8v2tax] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 12px;
        gap: 12px;
        height: 100vh;
    }

    .recipes-sidebar[b-jzxc8v2tax] {
        max-height: 200px;
        overflow-y: auto;
    }

    .recipe-details[b-jzxc8v2tax] {
        min-height: 300px;
    }
}

/* Стилизация скроллбара */
.recipes-sidebar[b-jzxc8v2tax]::-webkit-scrollbar,
.recipe-details[b-jzxc8v2tax]::-webkit-scrollbar {
    width: 6px;
}

.recipes-sidebar[b-jzxc8v2tax]::-webkit-scrollbar-track,
.recipe-details[b-jzxc8v2tax]::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.recipes-sidebar[b-jzxc8v2tax]::-webkit-scrollbar-thumb,
.recipe-details[b-jzxc8v2tax]::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}
/* /Components/ScadaPages/Tags/TagPanel - Копировать.razor.rz.scp.css */
.tagpanel-main[b-ome7buuhcq] {
    display: grid;
    grid-template-columns: 20% 1fr; /* две равные колонки */
    gap: 3px; /* небольшой отступ между колонками */
    height: 100vh; /* на всю высоту окна */
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.tagpanel-column-1[b-ome7buuhcq] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    background-color: #f0f0f0;
    padding: 5px;
    border-radius: 0px 0px 0px 3px;
    box-sizing: border-box;
}

.tagpanel-column-2[b-ome7buuhcq] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 0px 0px 3px 0px;
}
.tagpanel-row-top[b-ome7buuhcq] {
    background-color: #d4e6f1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 50px;
    padding: 5px;
    border-radius: 8px;
    box-sizing: border-box;
}

.tagpanel-row[b-ome7buuhcq] {
    background-color: #d4e6f1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    padding: 5px;
    border-radius: 8px;
    box-sizing: border-box;
}
/* /Components/ScadaPages/Tags/TagPanel.razor.rz.scp.css */
.tagpanel-main[b-5gqw0r1pfq] {
    display: grid;
    grid-template-columns: 300px 100px 100px 50px 50px 50px 50px;
    padding: 1px;
}
.table-scroll[b-5gqw0r1pfq] {
    max-height: 300px; /* или любая удобная высота */
    overflow-y: auto;
    display: block; /* чтобы работал overflow */
}

    .table-scroll thead[b-5gqw0r1pfq] {
        position: sticky;
        top: 0;
        background: gray; /* чтобы не просвечивали строки */
        z-index: 1;
    }
tbody tr.selected-row[b-5gqw0r1pfq] {
    background-color: green !important;
}
.table-striped tbody tr:nth-child(even)[b-5gqw0r1pfq] {
    background-color: gray;
}
.table-striped tbody tr:nth-child(odd)[b-5gqw0r1pfq] {
    background-color: darkgray; /* светло-серый */
}

.table-striped tbody tr:hover[b-5gqw0r1pfq] {
    background-color: #dee2e6;
}

.tagpanel-main > div[b-5gqw0r1pfq] {
    background: #4a90e2;
    color: white;
    border: 1px solid black;
    padding: 12px;
}
