@layer components {
    .custom-reporting-period-modal {
            max-height: min(90vh, 34rem);
            max-width: 32rem;
        }

    .custom-reporting-period-modal__form {
            display: grid;
        }

    .custom-reporting-period-modal__fields {
            display: grid;
            gap: 1rem;
        }

    .custom-reporting-period-modal__error {
            color: var(--dashboard-color-negative);
            font-size: 0.875rem;
            line-height: 1.25rem;
            margin-top: 0.75rem;
        }

    body.custom-reporting-period-modal-open [data-portfolio-value-chart-data-container-id],
    body.custom-reporting-period-modal-open [data-portfolio-performance-chart-data-container-id] {
        pointer-events: none !important;
    }
}
