body {
    font-family: 'Times New Roman', Arial, sans-serif;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}

.admin-panel {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1000px;
    text-align: left;
    margin: 20px 0;
}

h1, h2 {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 20px;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
    margin-top: 0;
}

ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.section {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.section img.icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 10px;
}

a {
    color: blue;
    text-decoration: none;
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
}

a:hover {
    text-decoration: underline;
}

.logout {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ff0000;
}

.logout:hover {
    text-decoration: underline;
}

.table-wrapper {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

label, input, select, button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    box-sizing: border-box;
}

/* Стили для диалогового окна */
.ui-dialog {
    width: 80% !important;
    height: 80% !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box;
    overflow: hidden; /* Обеспечивает корректное отображение содержимого */
}

.ui-dialog .ui-dialog-content {
    box-sizing: border-box;
    overflow: auto; /* Обеспечивает прокрутку при необходимости */
    height: 100%; /* Задает высоту содержимого */
    padding: 0 !important; /* Убирает отступы для лучшего заполнения */
}

.calendar-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-button {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.green-background {
    background-color: green;
    color: white;
}

.red-background {
    background-color: red;
    color: white;
}
