﻿
html, body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* убирает прокрутку на уровне страницы */
}
.center-container {
    display: grid;
    place-items: center;
    height: 100vh; /* Вся высота окна */
    width: 100vw; /* Вся ширина окна */
    margin: 0;
    padding: 0;
    overflow: hidden; /* Отключаем прокрутку */
}

.center-content {
    text-align: center;
    padding: 0;
}

/* Стили для диалогов*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* Блокируем прокрутку фона */
    overflow: hidden;
}

.modal-container {
    background: linear-gradient(135deg, #667eea 0%, #764b67 100%);
    border-radius: 3px;
    border: 1px solid white;
    min-width: 300px;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modal-appear 0.2s ease-out;
    color: white;
}

.modal-header {
    display: flex;
    min-height: 25px;
    max-height: 25px;
    justify-content: center;
    border-bottom: 1px solid #eee;
    color:white;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn {
   
    border: none;
    height: 30px;
    width: 120px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.modal-footer {
    padding-top: 5px;
    display: flex;
    height: 35px;
    justify-content: center; /* выравнивание по центру */
    gap: 10px; /* отступ между кнопками */
    /* border-top: 1px solid #eee;  опционально, для отделения от тела */
}

/* Стили для просмотра тегов */
.scada-tagview {
    height: 25px;
    background-color: lightgray;
    border: 1px solid black;
    border-radius:7px 7px 7px 7px;
}
