﻿/* BỘ LỌC VÀ ĐIỀU HƯỚNG TÌM KIẾM */
.search-filter-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #edf2f0;
    box-shadow: var(--card-shadow);
    margin-top: -20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 20;
}

.filter-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-tab-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: var(--transition);
    cursor: pointer;
}

    .filter-tab-btn:hover, .filter-tab-btn.active {
        background: var(--aof-primary);
        color: #ffffff;
        border-color: var(--aof-primary);
    }

/* DANH SÁCH VĂN BẢN (DATA LAYOUT) */
.document-list-container {
    margin-bottom: 50px;
}

.doc-item-row {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 22px 30px;
    border: 1px solid #eef3f1;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 180px 1fr 150px 180px;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

    .doc-item-row:hover {
        border-color: rgba(0, 122, 94, 0.2);
        box-shadow: var(--card-shadow-hover);
        transform: translateX(4px);
    }

.doc-id-box {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--aof-primary);
}

.doc-main-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

    .doc-main-title a {
        color: var(--text-main);
        text-decoration: none;
        transition: var(--transition);
    }

        .doc-main-title a:hover {
            color: var(--aof-primary);
        }

.doc-date-col {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.doc-actions-col {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-doc-action {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-doc-view {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

    .btn-doc-view:hover {
        background: #e2e8f0;
        color: var(--text-main);
    }

.btn-doc-dl-pdf {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

    .btn-doc-dl-pdf:hover {
        background: #ef4444;
        color: #ffffff;
    }

.btn-doc-dl-word {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

    .btn-doc-dl-word:hover {
        background: #2563eb;
        color: #ffffff;
    }

/* PAGINATION */
.aof-pagination .page-link {
    border-radius: 10px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    font-weight: 700;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.aof-pagination .page-item.active .page-link {
    background: var(--aof-primary);
    border-color: var(--aof-primary);
    color: #ffffff;
}

.aof-pagination .page-link:hover {
    background: var(--bg-light);
    color: var(--aof-primary);
}
