/* =========================================
   Стили для раздела "Вузли обліку" (snodes)
   ========================================= */

/* --- 1. Панель поиска и верхние блоки --- */

.search-panel {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-panel {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #1e6091;
    height: 100%;
}

.info-panel h4 {
    color: #1e6091;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.info-icon {
    font-size: 2rem;
    color: #1e6091;
    opacity: 0.8;
    margin-bottom: 15px;
}

/* --- 2. Карточки вузлов (для ListView или ручного вывода) --- */

.node-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.node-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.node-icon {
    font-size: 2rem;
    color: #1e6091;
    margin-bottom: 15px;
    opacity: 0.7;
}

.node-card h5 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* --- 3. Таблица GridView --- */

.table-vacancies-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.table-vacancies {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 1rem;
}

.table-vacancies thead th {
    background-color: #1e6091;
    color: #ffffff;
    font-weight: 600;
    padding: 15px;
    text-align: center;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}

.table-vacancies thead th a {
    color: #ffffff !important;
    text-decoration: none;
}

.table-vacancies thead th a:hover {
    text-decoration: underline;
}

.table-vacancies tbody td {
    padding: 14px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    color: #333;
}

.table-vacancies tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-vacancies tbody tr:hover {
    background-color: #eef2f5;
}

.table-vacancies .form-control {
    border-radius: 5px;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid #ddd;
    width: 100%;
}

/* --- 4. Кнопки действий в таблице --- */

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    color: #fff !important;
    text-decoration: none !important;
    margin: 0 2px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn-action:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.btn-action-delete {
    background-color: #dc3545;
}

.btn-action-edit {
    background-color: #f0ad4e;
}

/* --- 5. Кнопка "Додати вузол" --- */

.btn-add-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background-color: #1e6091;
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid #1e6091;
}

.btn-add-new:hover {
    background-color: transparent;
    color: #1e6091 !important;
    transform: translateY(-2px);
}

/* --- 6. Сводка и пагинация --- */

.summary {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.pagination {
    justify-content: center;
    margin-top: 20px;
}

/* --- 7. Адаптивность --- */

@media (max-width: 767px) {
    .table-vacancies thead th,
    .table-vacancies tbody td {
        font-size: 0.85rem;
        padding: 8px;
    }
    .table-vacancies-wrapper {
        padding: 10px;
    }
}

/* =========================================
   Стилизация пагинации (LinkPager)
   ========================================= */

/* Контейнер пагинации */
ul.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 30px 0 0 0;
    list-style: none;
}

/* Элементы списка */
ul.pagination li {
    display: inline-block;
}

/* Ссылки и активные элементы */
ul.pagination li a,
ul.pagination li span,
ul.pagination li.active a,
ul.pagination li.disabled span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e6091;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Наведение */
ul.pagination li a:hover {
    background-color: #eef2f5;
    border-color: #1e6091;
    color: #1e6091;
}

/* Активная страница */
ul.pagination li.active a,
ul.pagination li.active span {
    background-color: #1e6091;
    border-color: #1e6091;
    color: #fff !important;
}

/* Неактивные кнопки (напр. «<» в начале) */
ul.pagination li.disabled span {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #eee;
    cursor: not-allowed;
}

/* Кнопки «Назад» / «Вперед» */
ul.pagination li.prev a,
ul.pagination li.next a {
    font-weight: 700;
}

/* Стили для даты загрузки в карточках */
.node-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    padding: 4px 10px;
    background-color: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

/* Убеждаемся, что карточка тянется по высоте и кнопка прижата вниз */
.node-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.node-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background-color: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Стили для даты в карточках "Вузли обліку" на главной */
.node-date {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    background-color: #f1f5f9 !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

.node-date i {
    font-size: 0.9rem !important;
    color: #94a3b8 !important;
}