.pdf-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 50px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-button:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-button.active {
    background: rgba(100, 100, 100, 0.3);
    color: #333;
    border-color: rgba(100, 100, 100, 0.5);
}

/* --- Year Filter --- */
.year-filter {
    margin-bottom: 15px;
}

#year-select {
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#year-select:hover {
    border-color: #999;
}

.pdf-selector label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Custom dropdown */
.custom-select {
    position: relative;
    width: 100%;
}

.select-selected {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.select-selected:hover {
    border-color: #999;
}

.select-selected.active {
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(150, 150, 150, 0.1);
}

.select-selected::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    pointer-events: none;
}

.select-items {
    position: absolute;
    background-color: white;
    border: 2px solid #999;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 99;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    margin-top: -2px;
}

.select-items.show {
    display: block;
}

.select-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 15px;
    color: #333;
}

.select-item:hover {
    background-color: #f5f5f5;
}

/* Year divider */
.year-divider {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    pointer-events: none;
    user-select: none;
}

.year-divider::before,
.year-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #999 20%, #999 80%, transparent);
}

.year-divider span {
    padding: 0 15px;
    color: #666;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.pdf-wrapper iframe {
    width: 100%;
    height: 90vh;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-group {
    display: none;
}

.doc-group.active {
    display: block;
}
