/* PDF popup modal */
.pdf-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pdf-popup-overlay.pdf-popup-visible {
    opacity: 1;
    visibility: visible;
}

.pdf-popup-modal {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-popup-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.pdf-popup-open-new {
    font-size: 0.8rem;
    color: #059669;
    text-decoration: none;
}

.pdf-popup-open-new:hover {
    text-decoration: underline;
}

.pdf-popup-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.pdf-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.pdf-popup-iframe {
    width: 100%;
    height: 85vh;
    flex: 1;
    min-height: 600px;
    border: none;
    display: block;
}
