/* Стили для панели управления таблицей */


/* Текущий блок .table-header-controls-unified - ИЗМЕНИТЬ padding-bottom и margin-bottom */
.table-header-controls-unified {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 15px 20px 5px 20px; /* ИЗМЕНИТЬ: убрать нижний padding */
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0; /* ДОБАВИТЬ: убрать отступ снизу */
}

.entries-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d6efed;
    font-size: 14px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.entries-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px 12px;
    color: #d6efed;
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
}

.entries-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Стили для нижней панели с пагинацией */


/* Текущий блок .table-footer-controls - ИЗМЕНИТЬ padding-top и margin-top */
.table-footer-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 15px 20px 15px 20px; /* ИЗМЕНИТЬ: убрать верхний padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
    gap: 20px;
    margin-top: 0; /* ДОБАВИТЬ: убрать отступ сверху */
}


/* Стили для пагинации */

/* Текущий блок .pagination - ИЗМЕНИТЬ justify-self */
.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-self: end; /* ОСТАВИТЬ как есть, но убедитесь что это значение установлено */
}

.pagination-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px 12px;
    color: #d6efed;
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 35px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
}

.pagination-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: #d6efed;
    padding: 6px 4px;
    font-family: Arial, sans-serif;
}

/* Стили для поля поиска */
.search-control {
    justify-self: end;
}

.search-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px 12px;
    color: #d6efed;
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    width: 200px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-input::placeholder {
    color: rgba(214, 239, 237, 0.6);
}

/* Стили для информации о таблице */

/* Текущий блок .table-info - ИЗМЕНИТЬ background и border */
.table-info {
    color: #d6efed;
    font-size: 14px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    justify-self: start;
    /* ДОБАВИТЬ следующие строки: */
    background: transparent; /* Явно указываем прозрачный фон */

}

/* Адаптивность для панелей управления */
@media (max-width: 768px) {
    .table-header-controls-unified {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .table-footer-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        justify-self: center;
    }
    
    .entries-control {
        justify-content: center;
    }
    
    .search-control {
        justify-self: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .table-info {
        text-align: center;
        justify-self: center;
    }
}

/* Убираем отступы Bootstrap у таблицы */
.table.m-t-30 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Убираем отступы у контейнера таблицы */
.table-responsive {
    margin-bottom: 0;
}