.ap-pdf-tab-nav-item,
.ap-pdf-tab-link {
    cursor: pointer;
}

/* Ab Version 1.6.0: Das PDF-Panel darf nur beim aktiven PDF-Reiter sichtbar sein. */
#ap-pdf-tab-documents-panel:not(.ap-pdf-active) {
    display: none !important;
}

#ap-pdf-tab-documents-panel.ap-pdf-active {
    display: block !important;
}

#ap-pdf-tab-documents-link {
    cursor: pointer !important;
    user-select: none;
}


.ap-pdf-combined-panel {
    display: none;
    padding: 24px 0;
}

.ap-pdf-combined-panel.active,
.ap-pdf-combined-panel.show {
    display: block;
}

.ap-pdf-direct-box {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
}

.ap-pdf-direct-title {
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 18px;
}

.ap-pdf-direct-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
}

.ap-pdf-document-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 240px;
    max-width: 100%;
    padding: 18px 22px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    text-decoration: none !important;
    background: #fff;
    color: #333 !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ap-pdf-document-link:hover,
.ap-pdf-document-link:focus {
    border-color: #6baa2c;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
    text-decoration: none !important;
    color: #333 !important;
}

.ap-pdf-document-icon {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    width: 54px;
    height: 70px;
    flex: 0 0 54px;
    border: 3px solid #6baa2c;
    color: #6baa2c;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    padding-bottom: 9px;
    background: #fff;
}

.ap-pdf-document-icon:after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #fff 0%, #fff 48%, #e8f4dd 50%, #e8f4dd 100%);
    border-left: 3px solid #6baa2c;
    border-bottom: 3px solid #6baa2c;
}

.ap-pdf-document-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ap-pdf-document-title {
    font-weight: 700;
    font-size: 17px;
    color: #333;
}

.ap-pdf-document-subtitle {
    font-size: 15px;
    color: #555;
}

.ap-pdf-debug-visible,
.ap-pdf-debug-box {
    margin: 12px 0;
    padding: 12px 16px;
    border: 2px dashed #6baa2c;
    border-radius: 6px;
    color: #333;
    background: #f7fbf2;
}
