@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('switcher-resources/themes.css');
@import url('switcher-resources/theme-switcher.css');

:root {
    --global-size: 16px;
}

html, body {
    height: 100%;
    font-size: var(--global-size);
    /* 關鍵屬性：禁止超出邊界的捲動行為 */
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
}

.validation-message {
    color: var(--bs-danger);
}


/*#region ---------- MyDxFormLayout CSS ----------*/

.dxbl-row {
    margin: 0px !important;
}
/*#endregion ---------- DxFormLayout CSS ----------*/

/*#region ---------- MyPopup CSS ----------*/

.global-popup {
    white-space: pre-wrap;
}

.popup-editform-v2 {
    margin: .5rem auto .5rem auto !important;
    width: fit-content !important;
    max-width: 95% !important;
    height: fit-content !important;
    max-height: fit-content !important;
}

    .popup-editform-v2 .dxbl-modal-body {
        padding: 0 !important;
    }

    .popup-editform-v2 .dxbl-modal-footer {
        padding: 4px !important;
    }

    .popup-editform-v2 .dxbl-modal-content {
        width: fit-content !important;
    }
/*#endregion ---------- MyPopup CSS ----------*/

/*#region ---------- BlockUI CSS ----------*/
.screen-block {
    background: white;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 2147483647;
}

.body-block {
    background: white;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 2000;
}

.splash-screen {
    display: flex;
    flex-flow: column nowrap;
    font-family: "Segoe UI",Roboto,"Helvetica Neue","-apple-system",BlinkMacSystemFont,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

    .splash-screen .spinner-border {
        border: .2em solid;
        border-color: #5f368d #bfbfbf #bfbfbf;
        border-radius: 50%;
        width: 120px;
        height: 120px;
    }

.splash-screen-caption {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.splash-screen-text {
    color: #a1a1a1;
    margin-top: .5rem;
}
/*#endregion*/


/* 定位下拉選單容器 */
.has-more-hint:has(.dxbl-scroll-viewer-vert-scroll-bar.dxbl-active) {
    position: relative;
}

    /* 在底部建立一個半透明漸層與提示 */
    .has-more-hint:has(.dxbl-scroll-viewer-vert-scroll-bar.dxbl-active)::after {
        content: "▼ 往下滾動查看更多";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 35px; /* 提示區塊高度 */
        /* 這裡做出上方透明、下方半透明白色的漸層效果 */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%);
        /* 文字樣式 */
        color: #555;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none; /* 確保滑鼠可以穿透點擊後面的選單項 */
        z-index: 10;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.02);
    }

    /* 選項：當使用者真的滾動到底部時，您可以讓滾動條保留一點底部安全距離（Padding） */
    .has-more-hint:has(.dxbl-scroll-viewer-vert-scroll-bar.dxbl-active) .dxbl-scroll-viewer {
        padding-bottom: 25px;
    }