/*version=1.00*/
/* Log here
//2025/08/07
// 複合グラフのレンジ設定のスタイル */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    font-family: Arial, sans-serif;
    overflow-y: auto;
}


.popup {
    background: white;
    border-radius: 8px;
    width: 400px;
    /* max-height: 80vh; */
    /* overflow-y: auto; */
    max-height: calc(100vh - 120px); /* Flexible height */
    overflow-y: auto; /* Scroll khi cần */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 高さがある画面用のメディアクエリ */
@media (min-height: 700px) {
    .popup {
        max-height: none;    /* 画面が十分高い場合は高さ制限を解除 */
        overflow-y: visible; /* スクロールバーを表示しない */
    }
}

/* 非常に短い画面用のメディアクエリ */
@media (max-height: 500px) {
    .popup-overlay {
        padding-top: 20px;
    }
    
    .popup {
        max-height: calc(100vh - 40px);
    }
}