* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fb;
    color: #1e293b;
}

.navbar {
    background: #1e3a8a;
    color: white;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-menu a:hover {
    background: #3b82f6;
}

.user-info {
    background: #0f172a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Выпадающее меню */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown .dropbtn {
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}
.dropdown-content a:hover {
    background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
    display: block;
}

.container {
    max-width: 1280px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Таблицы с горизонтальной прокруткой */
.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th, .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f1f5f9;
    font-weight: 600;
}

/* Формы */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}
input, select, button, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}
button {
    background: #1e3a8a;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
button:hover {
    background: #2563eb;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        display: block;
        text-align: center;
    }
    .user-info {
        margin-left: auto;
    }
    .data-table th, .data-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    input, select, button, textarea {
        font-size: 16px;
    }
    /* Выпадающее меню на мобильных */
    .dropdown-content {
        position: static;
        background: #2d4a8a;
    }
    .dropdown-content a {
        color: white;
        padding-left: 2rem;
    }
}

.message {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #e2e8f0;
}
.message.error {
    background: #fee2e2;
    color: #b91c1c;
}
.message.success {
    background: #dcfce7;
    color: #166534;
}
<style>
    /* ... существующие стили ... */
    
    /* Управление шириной столбцов */
    .data-table th:nth-child(1), 
    .data-table td:nth-child(1) {
        width: 5%;
        min-width: 40px;
    }
    .data-table th:nth-child(2), 
    .data-table td:nth-child(2) {
        width: 20%;
    }
    .data-table th:nth-child(5), 
    .data-table td:nth-child(5) {
        width: 14%;
        max-width: 150px;
    }
	/* Стили для выпадающего меню пользователя */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.user-info {
    background: #0f172a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
}
.user-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}
.user-dropdown-content a:hover {
    background-color: #f1f1f1;
}
.user-dropdown:hover .user-dropdown-content {
    display: block;
}
/* Цветовая индикация тарифа ЕРЦ */
.tariff-match {
    color: #059669;
    font-weight: bold;
}
.tariff-mismatch {
    color: #dc2626;
    font-weight: bold;
}
.erc-input.tariff-match {
    border-color: #059669;
    background-color: #ecfdf5;
}
.erc-input.tariff-mismatch {
    border-color: #dc2626;
    background-color: #fef2f2;
}
/* Бургер-кнопка – скрыта на десктопе, видна на мобильных */
.burger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    padding: 0.2rem 0.5rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .burger-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
        background-color: #1e3a8a;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        padding: 0.5rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
    }
    
    /* Выпадающие списки в мобильном меню */
    .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        background-color: #2d4a8a;
        box-shadow: none;
        width: 100%;
        margin-top: 0;
    }
    
    .dropdown-content a {
        padding: 0.5rem 1rem;
        color: white;
        text-align: center;
    }
    
    /* Меню пользователя – корректировка на мобильных */
    .user-dropdown {
        position: static;
        margin-left: auto;
    }
    
    .user-dropdown-content {
        right: 0;
        left: auto;
    }
}

/* Дополнительно: плавное появление */
.nav-menu {
    transition: all 0.3s ease;
}    
    /* Остальные столбцы распределят оставшееся пространство автоматически */
</style>