body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}


.site-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
}

.site-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 260px;
    background: #34495e;
    color: white;
    padding: 15px;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a, .sidebar span {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.sidebar ul ul {
    padding-left: 15px;
    margin-top: 5px;
}

.sidebar ul ul li {
    font-size: 0.95em;
}

.content {
    flex-grow: 1;
    background: white;
    padding: 20px;
}



h1 {
    color: #333;
    text-align: center;
}

/* Контейнер для всего содержимого */
.container {
    max-width: 1200px;
    margin: 0 auto;  /* по центру */
}

/* Форма */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Таблица */
.dataTables_wrapper {
    background-color: #fff;   /* таблица на белом фоне */
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.button-row {
    display: flex;
    justify-content: space-between;  /* Левая группа слева, правая кнопка справа */
    align-items: center;
    margin-bottom: 10px;
}

.left-buttons button-row,
.right-buttons button-row {
    margin-right: 10px;
}




label {
    display: block;
    margin-top: 10px;
}

input, select {
    margin-top: 5px;
    width: 100%;
    padding: 5px;
}

button {
    margin-top: 15px;
    padding: 8px 12px;
    cursor: pointer;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background-color: #fff;
}

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

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

th {
    background-color: #eee;
}

form {
    display: flex;
    flex-wrap: wrap;  /* если экран узкий, блоки переносятся */
    gap: 20px;        /* расстояние между группами */
}

fieldset {
    flex: 1 1 300px;  /* каждый блок растягивается, но минимум 300px */
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


.params-container {
    width: fit-content;      /* ← ключевая строка */
    margin-bottom: 20px;
}

.params-table {
    border-collapse: collapse;
}

.params-table th,
.params-table td {
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
}

.params-table th {
    background-color: #f0f0f0;
}





