* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
html {
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    /* background-color: #006DB6; */
    height: 100%;
    font-size: 100%;
}
header {
    display: flex;
    /* height: 25%; */
    flex-direction: column;
    justify-content: center;
    background-color: #006DB6;
    color: white;
    text-transform: uppercase;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Контейнер навигации */
.navigation {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Левая часть (home) */
.menu-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* min-width: 100px; */
}

.menu-left ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* Центральная часть (список) */
.menu-center {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.menu-center ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Правая часть (выход) */
.menu-right {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.menu-right ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Стиль для ссылок */
.navigation a {
    display: flex;
    text-decoration: none;
    color: #007bff;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    /* border: 3px solid #007bff; */
    transition: background-color 0.3s, color 0.3s;
    background-color: #eef;
    /* margin: 3px; */
}

/* Эффект при наведении */
.navigation a:hover {
    background-color: #007bff;
    color: white;
}

/* Стиль для "Выход" */
.logout-link {
    color: #dc3545;
}

#red-link {
    color: red;
}

body {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: column;
    justify-content: start;
    overflow: scroll;

    height: 100%;
}

/* body div {
    margin: 10px;
} */

footer {
    display: flex;
    flex-direction: column;
    height: 20%;
    background-color: #006DB6;
    margin-top: 10px;
}

header .login-hello {
    align-self: center;
    display: flex;
}

iframe {
    width: 100%;
    height: 300px;
    display: block;
}




select {
    width: 340px; /* Устанавливаем фиксированную ширину */
    overflow: visible; /* Сохраняем видимую область содержимого */
}

.title {
    font-size: 1.3rem;
}

.container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    margin: 0;
}
.section {
    background-color: #006DB6;
    margin: 10px;
    border-radius: 20px;
    min-width: 40%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

details {
    display: flex;
    flex-direction: column;
    background-color: #006DB6;
    border: 2px #ccc solid;
    border-radius: 20px;
    
    /* max-height: 300px; */
    width: 480px;
    margin: 10px;
    padding: 0px;

    /* text-transform: uppercase; */
    /* text-align: left; */
    /* font-weight: bold; */
    font-size: 1rem;
    /* color: white; */
}

details > summary {
    display: flex;
    justify-content: space-between;
    color: white;
    background-color:#004777;
    padding: 10px;
    height: 4rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

details[open] > summary {
    display: flex;
    justify-content: space-between;
    color: white; 
    background-color:#004777;
    padding: 10px;
    height: 4rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
}



details[open] summary::after {
    /* content: "-"; */
}
details[open] > summary:hover {
    /*  */
}

.message {
    background-color: red;
}

.message > summary {
    background-color: red;
}

.item {
    
    
}

.inner {
    /* display: flex; */
    
}

.down{
    
}

.code {
    color: red;
    /* font-weight: bold;
    font-size: 300%; */
}
table {
    width: 100%;
    margin-bottom: 20px;
    border: 15px solid #F2F8F8;
    border-top: 5px solid #F2F8F8;
    border-collapse: collapse; 
}

table caption {
    display: table-caption;
    color: white;
    /* width: 80%; */
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: #007bff;
    margin-bottom: 10px;
    padding: 5px;
    background-color: white;
    font-variant-caps: all-petite-caps;
}
table th {
    font-weight: bold;
    padding: 5px;
    background: #F2F8F8;
    border: none;
    border-bottom: 5px solid #F2F8F8;
}
table td {
    padding: 5px;
    border: none;
    border-bottom: 5px solid #F2F8F8;
    text-align: center; 
    background-color: #006DB6;
    /* vertical-align: middle; */
}

td a {
    text-decoration: none;
    color: white;
    /* color: #007bff; */
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    margin: 20px;
}

td a:hover {
    background-color: #007bff;
    color: white;
    margin: 20px;
}

.btn {
    display: block;
    height: 50px;
    width: 100%;
    align-self: center;
    margin-top: auto;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: bolder;
    background-color: #eef;
    color: #007bff;
}

.btn:hover {
    background-color: #007bff;
    color: white;
    border-color: white;
}

.registration {
    display: flex;
    /* text-align: center; */
    background-color: rgb(80, 160, 246);
    
}

@media (max-width: 480px) {
    header {
        font-size: 1.8rem;
    }
    .title {
        font-size: 1.1rem;
    }

    .section {
        width: 100%;
    }
    details {
        width: 100%;
    }
}

@media (max-width: 410px) {
    header {
        font-size: 1.6rem;
    }
    .title {
        font-size: 1rem;
    }
    .section {
        width: 100%;
    }
    details {
        width: 100%;
    }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.data-table td, .data-table th {
    padding: 8px;
    text-align: center;
    border: 1px solid white;
    
}

.data-table thead th {
    background-color: #007bff;
}

.input-cell input[type='number'] {
    width: 50px;
    height: 20px;
    font-size: 14px;
    text-align: right;
}

#loading-message {
    margin-bottom: 20px;
    color: blue;
}
.organization-row {
    background-color: #076283;
    font-weight: bold;
}
textarea {
    /* flex-grow: 1;     Растягиваем поле ввода на всю свободную область */
    /* min-height: 100px; Минимальная высота поля текста */
    /* padding: 10px;    Внутренние отступы для удобства чтения */
    /* font-size: inherit;Наследуем размер шрифта от родителя */

    padding: 5px;                     /* Уменьшаем внутренние отступы */
    border: 1px solid #ccc;           /* Ставим простую рамку */
    border-radius: 5px;               /* Меняем угол округления */
    font-size: 1em;                   /* Приводим размер шрифта к единице em */
    line-height: 1.2;                 /* Нормализуем высоту строки */
    resize: both;                     /* Разрешим изменение размера вручную */
    min-height: 100px;                /* Минимальная высота остается прежней */
    font-family: inherit;             /* Наследуем семейство шрифтов от родителей */
    vertical-align: top;              /* Всегда вертикально сверху */
}

/* #description::placeholder {
    color: #888;
    font-style: italic;
    opacity: 0.5;
}

textarea::placeholder {
    color: #888;
} */

