.flipbook-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .flipbook-modal-content {
            background: white;
            border-radius: 8px;
            width: 90%;
            max-width: 1200px;
            height: 90%;
            max-height: 800px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }

        .flipbook-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #e0e0e0;
        }

        .flipbook-modal-header .flipbook-modal-title {
            flex: 1;
            font-size: 1.2em;
            color: #333;
            font-family: var(--e-global-typography-primary-font-family), Sans-serif;
            font-weight: var(--e-global-typography-primary-font-weight);
            color: var(--e-global-color-primary, #28373E);
            /* margin-right: 20px; */
            /* overflow: hidden; */
            /* text-overflow: ellipsis; */
            white-space: nowrap;
            max-width: 40px;
        }

        .flipbook-modal-close {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            color: #666;
            transition: background-color 0.2s;
        }

        .flipbook-modal-close:hover {
            background-color: #f0f0f0;
        }

        .flipbook-download-btn {
                background: transparent !important;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
        }

        .flipbook-download-btn svg {
            width: 16px;
            height: 16px;
        }

        .flipbook-modal-body {
            flex: 1;
            padding: 20px;
            overflow: auto;
        }

        .flipbook-loading {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            font-size: 1.2em;
            color: #666;
        }

        .pdf-view-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background-color: #f5f5f5;
            color: #999;
        }

        .pdf-actions a{
            border: 2px solid var(--e-global-color-primary) !important;
            animation: all 0.3s ease-in-out;
        }

        .pdf-view-btn:hover {
            transform: scale(1.1) !important;
        }

        .pdf-view-btn{
            border-radius: 0 !important;
        }


        /* Style the view button */
        .flipbook-modal-close {
            background: transparent !important;
        }

        /* Hide download button in flipbook */
        .df-ui-download {
            display: none !important;
        }

        /* Style navigation buttons */
        .df-ui-nav .df-ui-btn:before {
            color: var(--e-global-color-secondary) !important;
            filter: none !important;
            box-shadow: none !important;
        }

        /* Responsive: Flipbook modal header */
        @media (max-width: 1199px) {
            .flipbook-modal-header {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }

            .flipbook-modal-header .flipbook-modal-title {
                max-width: 100%;
                white-space: normal;
                text-align: center;
            }

            .flipbook-download-btn {
                width: 100%;
                justify-content: center;
            }

            .flipbook-modal-close {
                position: absolute;
                top: 10px;
                right: 10px;
                z-index: 10;
            }
        }

        /* Download Form Modal Styles */
        .download-form-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 999999999999;
        }

        .download-form-modal-content {
            background: white;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .flipbook-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #e0e0e0;
        }

        .download-form-modal-header h3 {
            margin: 0;
            font-size: 1.3em;
            font-family: var(--e-global-typography-primary-font-family), Sans-serif;
            font-weight: var(--e-global-typography-primary-font-weight);
            color: var(--colore-grigio-chiaro, #28373E);
            padding: 8px;
            padding-top: 20px;
        }

        .download-form-modal-header {
            display: flex !important;
            justify-content: space-between !important;
            padding: 0 10px !important;
        }

        .download-form-modal-close {
            background: transparent !important;
        }

        .download-form-modal-close {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            color: #666;
            transition: background-color 0.2s;
        }

        .download-form-modal-close:hover {
            background-color: #f0f0f0;
        }

        .download-form-modal-body {
            padding: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .download-submit-btn {
    width: 100%;
    background: var(--e-global-color-secondary) !important;
    color: var(--colore-grigio-chiaro) !important;
    border: 2px solid var(--e-global-color-secondary) !important;
    padding: 14px;
    border-radius: 4px !important;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
    transition: background-color 0.2s;
}


        .download-submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .pdf-direct-download-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--e-global-color-secondary, #007cba) !important;
            color: white !important;
            border: none !important;
            padding: 14px 20px;
            border-radius: 4px !important;
            font-size: 16px;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
            transition: background-color 0.2s;
            margin-top: 15px;
        }

        .pdf-direct-download-btn:hover {
            background: var(--e-global-color-primary, #005a87) !important;
            text-decoration: none;
            color: white !important;
        }

        .pdf-direct-download-btn svg {
            stroke: currentColor;
        }