/* ========================================== */
/* ФАЙЛ: pdf-export-modal.css
 * НАЗНАЧЕНИЕ: Модальное окно выбора параметров экспорта в PDF
 * ========================================== */

.pdf-export-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.pdf-export-modal.active {
    display: flex;
}

.pdf-export-modal__content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.pdf-export-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 28px;
    line-height: 1;
    color: var(--text-dark, #222);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pdf-export-modal__close:hover {
    transform: scale(1.15);
}

.pdf-export-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark, #222);
    margin: 0 28px 22px 0;
    text-align: center;
}

.pdf-export-modal__section {
    margin-bottom: 20px;
}

.pdf-export-modal__section-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 10px 0;
}

.pdf-export-modal__scope {
    display: flex;
    gap: 12px;
}

.pdf-export-modal__scope .pdf-export-modal__option {
    flex: 1;
}

.pdf-export-modal__types {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-export-modal__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background: #fafafa;
}

.pdf-export-modal__option:hover {
    border-color: #b0b0b0;
    background: #f5f5f5;
}

.pdf-export-modal__option:has(input:checked) {
    border-color: #1a6b6d;
    background: rgba(26, 107, 109, 0.08);
}

.pdf-export-modal__option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1a6b6d;
    flex-shrink: 0;
    cursor: pointer;
}

.pdf-export-modal__option span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark, #222);
}

.pdf-export-modal__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.pdf-export-modal__btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pdf-export-modal__btn--download {
    background-color: #1a6b6d;
    color: #ffffff;
}

.pdf-export-modal__btn--download:hover {
    background-color: #155557;
    transform: translateY(-1px);
}

.pdf-export-modal__btn--download:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}

.pdf-export-modal__btn--cancel {
    background-color: #e0e0e0;
    color: var(--text-dark, #222);
}

.pdf-export-modal__btn--cancel:hover {
    background-color: #d0d0d0;
}

@media (max-width: 480px) {
    .pdf-export-modal__content {
        padding: 24px 16px 20px;
    }

    .pdf-export-modal__scope {
        flex-direction: column;
        gap: 8px;
    }

    .pdf-export-modal__title {
        font-size: 16px;
    }
}
