body {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px; /* Отступ для фиксированной навигации */
}
#response {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    white-space: pre-wrap;
}
button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}
button:hover {
    background-color: #45a049;
}
#submitForm {
    background-color: #2196F3;
}
#submitForm:hover {
    background-color: #0b7dda;
}
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
button:disabled:hover {
    background-color: #cccccc;
}
input[type="text"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed; /* Фиксированная ширина столбцов */
}
th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
th {
    background-color: #f2f2f2;
}
.documents-column {
    vertical-align: top;
}
.doc-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}
.doc-item {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
}
.doc-item a {
    color: #2196F3;
    text-decoration: none;
}
.doc-item a:hover {
    text-decoration: underline;
}
.auth-hint {
    display: inline-block;
    margin-left: 10px;
    color: #ff5722;
    font-size: 14px;
    vertical-align: middle;
}
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Стили для основного контента */
.main-content {
    margin-top: 20px;
}

/* Стили для статичной таблицы */
.auctions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    table-layout: fixed; /* Фиксированная ширина столбцов */
}
.auctions-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}
.auctions-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.auctions-table tr:hover {
    background-color: #f5f5f5;
}
.auctions-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}
.table-header {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}
.error {
    color: #d32f2f;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
    margin: 10px 0;
}

/* Определяем ширины столбцов */
.auctions-table th:nth-child(1), 
.auctions-table td:nth-child(1) {
    width: 5%; /* ID */
}
.auctions-table th:nth-child(2), 
.auctions-table td:nth-child(2) {
    width: 14%; /* Номер извещения */
}
.auctions-table th:nth-child(3), 
.auctions-table td:nth-child(3) {
    width: 25%; /* Наименование */
    white-space: normal; /* Разрешаем перенос текста */
}
.auctions-table th:nth-child(4), 
.auctions-table td:nth-child(4) {
    width: 9%; /* Сумма */
}
.auctions-table th:nth-child(5), 
.auctions-table td:nth-child(5) {
    width: 12%; /* Срок подачи */
}
.auctions-table th:nth-child(6), 
.auctions-table td:nth-child(6) {
    width: 12%; /* Срок проведения */
}
.auctions-table th:nth-child(7), 
.auctions-table td:nth-child(7) {
    width: 9%; /* ОЗ */
}
.auctions-table th:nth-child(8), 
.auctions-table td:nth-child(8) {
    width: 9%; /* ОК */
}

/* Стили для кнопки обновления */
.refresh-btn {
    background-color: #ff9800;
    padding: 8px 16px;
    font-size: 14px;
}
.refresh-btn:hover {
    background-color: #f57c00;
}

/* Анимация загрузки */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для модального окна авторизации */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.auth-modal h3 {
    color: #d32f2f;
    margin-bottom: 20px;
    font-size: 20px;
}

.auth-modal p {
    margin-bottom: 25px;
    line-height: 1.5;
    color: #333;
}

.auth-modal-button {
    padding: 12px 24px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.auth-modal-button:hover {
    background-color: #0b7dda;
}