.hp-families {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    background-color: #f8f9fa !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1e21;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 15px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #004466;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Page Header */
.hp-page-header {
    background: #5c5c5c;
    color: white;
    padding: 15px 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
}

.hp-page-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.hp-page-header .count {
    color: #e0e0e0;
    font-size: 16px;
}

/* Tree Filter */
.hp-tree-filter {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin-bottom: 20px;
}

.hp-tree-filter .filter-label {
    font-weight: 500;
    margin-right: 15px;
    color: #333;
}

.hp-tree-filter .tree-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    background: #f0f0f0;
    color: #333;
}

.hp-tree-filter .tree-btn.active {
    background: #004466;
    color: white;
    font-weight: 600;
}

/* Search Section */
.hp-search-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hp-search-section .showing-count {
    color: #666;
    font-size: 14px;
}

.hp-search-section .search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.hp-search-section .search-input {
    width: 200px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.hp-search-section .sort-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 180px;
}

.hp-search-section .per-page-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 120px;
}

.hp-search-section .apply-btn {
    padding: 10px 20px;
    background: #004466;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.hp-search-section .apply-btn:hover {
    background: #003355;
}

.hp-search-section .clear-btn {
    padding: 10px 20px;
    background: #666;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.hp-search-section .clear-btn:hover {
    background: #555;
}

/* Families Table */
.hp-families-table {
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.hp-families-table table {
    width: 100%;
    border-collapse: collapse;
}

.hp-families-table thead tr {
    background: #f5f5f5;
}

.hp-families-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.hp-families-table th.center {
    text-align: center;
}

.hp-families-table tbody tr {
    border: none;
}

.hp-families-table td {
    padding: 15px;
}

.hp-families-table td.center {
    text-align: center;
}

.hp-families-table td.empty {
    padding: 40px;
    text-align: center;
    color: #666;
}

.hp-families-table td a {
    color: #004466;
    text-decoration: none;
    font-weight: 500;
}

.hp-families-table td a:hover {
    text-decoration: underline;
}

.hp-families-table .birth-year {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.hp-families-table .marr-date {
    font-weight: 500;
}

.hp-families-table .marr-place {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.hp-families-table .unknown {
    color: #999;
}

.hp-families-table .children-badge {
    display: inline-block;
    background: #004466;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* Pagination */
.hp-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.hp-pagination .item-count {
    color: #666;
    margin-right: 20px;
}

.hp-pagination .page-link {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    text-decoration: none;
    color: #004466;
}

.hp-pagination .page-link:hover {
    background: #f8f9fa;
}

.hp-pagination .page-link.active {
    background: #004466;
    color: white;
    border-color: #004466;
    font-weight: 600;
}

.hp-pagination .ellipsis {
    color: #666;
}
