﻿@charset "UTF-8";

/* 自定义弹窗蒙版 */
.custom-dialog-mask {
    width: 100dvw;
    height: 100dvh;
    min-height: 100vh;
    z-index: 81;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .6);
}

/* 自定义弹窗主体 */
.custom-dialog {
    height: min(25rem, calc(100dvh - 2rem));
    width: min(40rem, calc(100dvw - 2rem));
    max-height: calc(100dvh - 2rem);
    max-width: calc(100dvw - 2rem);
    padding: 1rem;
    z-index: 88;
    border-radius: 1rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bkerp-card-bg-gradient);
    color: var(--bkerp-card-text-color);
    display: grid;
    grid-template-rows: 6rem 1fr 5rem;
    grid-template-areas:
        "title "
        "content  "
        "yes ";
    align-items: center;
    justify-items: center;
    font-size: var(--bkerp-font-size-base);
}

@media (max-width: 768px) {
    .custom-dialog {
        width: auto;
        height: auto;
        max-width: calc(100dvw - max(1rem, env(safe-area-inset-left)) - max(1rem, env(safe-area-inset-right)));
        max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
    }
}



    .custom-dialog .custom-dialog-title {
        grid-area: title;
        font-size: 2rem;
    }

    .custom-dialog .custom-dialog-content {
        grid-area: content;
        font-size: var(--bkerp-font-size-base);
        line-height: 2.5rem;
        font-weight: 300;
        height: 100%;
        width: 100%;
        overflow: auto;
        word-wrap: break-word;
        text-align: center;
    }


    /* 自定义弹窗按钮 */
    .custom-dialog .custom-dialog-btnyes {
        grid-area: yes;
        width: 10rem;
        height: 3rem;
        font-size: var(--bkerp-font-size-base);
        border-radius: 0.5rem;
        background-color: var(--bkerp-btn-primary-bg);
        color: var(--bkerp-btn-text);
    }

        .custom-dialog .custom-dialog-btnyes:disabled {
            cursor: not-allowed !important;
            opacity: 0.6 !important;
        }