/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-c30scj5mlv] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-c30scj5mlv] {
    flex: 1;
    min-width: 0;
    background:
        radial-gradient(circle at 88% 4%, rgba(83, 177, 145, .055), transparent 24%),
        #f4f6f9;
    display: flex;
    flex-direction: column;
}

/* 内容区铺满视口高度，页面卡片作为唯一滚动容器 */
.content[b-c30scj5mlv] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* 邮箱页面自带工作台卡片，不再叠加布局层 page-card，避免双重边框 */
.mail-page-wrap[b-c30scj5mlv] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mail-page-wrap[b-c30scj5mlv]  .mail-workspace {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.sidebar[b-c30scj5mlv] {
    position: relative;
    background: linear-gradient(180deg, #142c30 0%, #10242d 42%, #0d1b28 100%);
    isolation: isolate;
}

@media (max-width: 640.98px) {
    /* 移动端：侧栏压缩成顶部品牌条（高度由 NavMenu 自身 top-row 撑出），
       菜单由 NavMenu 的 checkbox hack 以全屏抽屉形式覆盖展开，不再把内容区往下推 */
    .sidebar[b-c30scj5mlv] {
        position: sticky;
        top: 0;
        z-index: 1200;
    }
}

.top-row[b-c30scj5mlv] {
    background-color: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e7ebf0;
    justify-content: space-between;
    height: 3.75rem;
    display: flex;
    align-items: center;
}

.page-title[b-c30scj5mlv] {
    position: relative;
    padding-left: .8rem;
    font-size: 1.02rem;
    font-weight: 400;
    letter-spacing: .015em;
    color: #243248;
    margin: 0;
    line-height: 1.2;
}

.page-title[b-c30scj5mlv]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #1aa97b, #75c8aa);
    transform: translateY(-50%);
}

.top-actions[b-c30scj5mlv] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-chip[b-c30scj5mlv] {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #4b596c;
    font-size: .82rem;
}

.user-avatar[b-c30scj5mlv] {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1c7662, #164a50);
    box-shadow: 0 3px 8px rgba(17, 80, 69, .16), inset 0 1px 0 rgba(255,255,255,.16);
}

    .top-row[b-c30scj5mlv]  a, .top-row[b-c30scj5mlv]  .btn-link {
        white-space: nowrap;
        text-decoration: none;
    }

    .top-row[b-c30scj5mlv]  a:last-child {
        display: inline-flex;
        align-items: center;
        min-height: 2rem;
        padding: .3rem .65rem;
        border: 1px solid #e2e7ed;
        border-radius: 7px;
        color: #748094;
        font-size: .78rem;
        transition: color .16s ease, border-color .16s ease, background-color .16s ease;
    }
    
    .top-row[b-c30scj5mlv]  a:last-child:hover {
        color: #b34545;
        border-color: #edcccc;
        background: #fff7f7;
        text-decoration: none;
    }
    
    .top-row[b-c30scj5mlv]  a:hover, .top-row[b-c30scj5mlv]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-c30scj5mlv]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-c30scj5mlv] {
        justify-content: space-between;
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .page-title[b-c30scj5mlv] {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .top-actions[b-c30scj5mlv] {
        flex: 0 0 auto;
        gap: .5rem;
        margin-left: .6rem;
    }

    .user-chip[b-c30scj5mlv] {
        gap: 0;
    }

    .user-name[b-c30scj5mlv] {
        display: none;
    }

    .top-row[b-c30scj5mlv]  a, .top-row[b-c30scj5mlv]  .btn-link {
        margin-left: 0;
    }

    /* 移动端：内容链退回文档流自然高度，整页滚动（卡片内滚在短屏上双重滚动难用），
       顶栏吸顶保留页面标题；横向滚动仍收在表格自己的 .table-responsive 层 */
    main[b-c30scj5mlv] {
        min-width: 0;
    }

    .content[b-c30scj5mlv] {
        flex: none;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    [b-c30scj5mlv] .page-card,
    [b-c30scj5mlv] .cat-main {
        flex: none;
        min-height: 0;
    }
}

@media (min-width: 641px) {
    .page[b-c30scj5mlv] {
        flex-direction: row;
        height: 100vh;
    }

    main[b-c30scj5mlv] {
        height: 100vh;
    }

    .sidebar[b-c30scj5mlv] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }

    .top-row[b-c30scj5mlv] {
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .top-row.auth[b-c30scj5mlv]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-c30scj5mlv], article[b-c30scj5mlv] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-c30scj5mlv] {
    color-scheme: light only;
    background: #fff7e6;
    color: #855b13;
    bottom: 0;
    box-shadow: 0 -4px 18px rgba(58, 44, 18, .12);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #f0dcae;
}

    #blazor-error-ui .dismiss[b-c30scj5mlv] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ===== 品牌区 ===== */
.top-row[b-a0d1sd20c8] {
    min-height: 3.75rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.65rem 0.9rem;
}

.navbar-brand[b-a0d1sd20c8] {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    letter-spacing: .015em;
    color: #f2f7f8;
}

.navbar-brand .brand-logo[b-a0d1sd20c8] {
    margin-right: .6rem;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 8px;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
}

/* ===== 移动端汉堡按钮 ===== */
.navbar-toggler[b-a0d1sd20c8] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-a0d1sd20c8] {
    background-color: rgba(255, 255, 255, 0.5);
}

/* ===== 查找模块搜索框 ===== */
.nav-search[b-a0d1sd20c8] {
    position: relative;
    padding: .9rem .9rem .65rem;
}

.nav-search .nav-search-icon[b-a0d1sd20c8] {
    position: absolute;
    left: 1.62rem;
    top: 50%;
    transform: translateY(-50%);
    width: .9rem;
    height: .9rem;
    opacity: .42;
    pointer-events: none;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-search .nav-search-icon[b-a0d1sd20c8]  svg {
    width: .9rem;
    height: .9rem;
    display: block;
}

.nav-search input[b-a0d1sd20c8] {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #e8eef2;
    border-radius: 9px;
    min-height: 2.2rem;
    padding-left: 2.25rem;
    font-size: .8rem;
}

.nav-search input[b-a0d1sd20c8]::placeholder {
    color: rgba(226, 238, 241, .38);
}

.nav-search input:focus[b-a0d1sd20c8] {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(72, 198, 156, .55);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(72, 198, 156, .10);
}

/* ===== Bootstrap Icons（保留兼容） ===== */
.bi[b-a0d1sd20c8] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-a0d1sd20c8] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-a0d1sd20c8] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-a0d1sd20c8] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

/* ===== 导航项容器 ===== */
.nav-item[b-a0d1sd20c8] {
    font-size: 0.88rem;
    padding-bottom: 0;
}

/* ===== 分组标题（展开/收起行） ===== */
.sidebar-heading[b-a0d1sd20c8] {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.nav-group-toggle[b-a0d1sd20c8] {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.8rem;
    padding: 0 .78rem;
    margin: 0 .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: rgba(233, 242, 245, 0.78);
    text-transform: none;
    letter-spacing: .025em;
    user-select: none;
    border-radius: 10px;
    line-height: 1;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

    .nav-group-toggle:hover[b-a0d1sd20c8] {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.06);
    }

    /* 展开只表示分组已打开，不使用当前页的青绿高亮，避免与独立主导航同时点亮。 */
    .nav-group-toggle.group-open[b-a0d1sd20c8] {
        background-color: rgba(255, 255, 255, .045);
        color: #ffffff;
        box-shadow: none;
    }

        .nav-group-toggle.group-open:hover[b-a0d1sd20c8] {
            background-color: rgba(255, 255, 255, .075);
            box-shadow: none;
        }

.group-label[b-a0d1sd20c8] {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.5rem;
}

.nav-plain-link[b-a0d1sd20c8] {
    color: inherit;
    text-decoration: none;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .nav-plain-link:hover[b-a0d1sd20c8],
    .nav-plain-link.active[b-a0d1sd20c8] {
        color: #ffffff;
    }
    
    /* 首页与分组子项使用同一套激活语义：浅绿底 + 左侧指示条 */
    .nav-group-toggle:has(.nav-plain-link.active)[b-a0d1sd20c8] {
        background: linear-gradient(110deg, rgba(22, 163, 116, .92), rgba(20, 111, 107, .90));
        color: #ffffff;
        box-shadow: 0 7px 18px rgba(3, 16, 20, .22), inset 2px 0 0 #49caa2;
    }
    
    .nav-group-toggle:has(.nav-plain-link.active):hover[b-a0d1sd20c8] {
        background: linear-gradient(110deg, rgba(24, 178, 129, .95), rgba(22, 122, 117, .92));
    }

.nav-group-toggle[b-a0d1sd20c8]  a {
    color: inherit;
    text-decoration: none;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .nav-group-toggle[b-a0d1sd20c8]  a:hover,
    .nav-group-toggle[b-a0d1sd20c8]  a.active {
        color: #ffffff;
    }

.nav-icon[b-a0d1sd20c8] {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: currentColor;
}

.nav-icon[b-a0d1sd20c8]  svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.group-arrow[b-a0d1sd20c8] {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-group-toggle.group-open .group-arrow[b-a0d1sd20c8] {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== 子项容器（带左侧连接线） ===== */
.nav-group-body[b-a0d1sd20c8] {
    padding: .35rem 0 .55rem 0;
    margin: 0 .45rem;
    border-left: 1px solid rgba(126, 205, 181, .18);
    margin-left: 1.7rem;
    padding-left: .85rem;
}

    .nav-group-body[b-a0d1sd20c8]  .nav-link {
        color: rgba(221, 233, 237, 0.57);
        background: none;
        border: none;
        border-radius: 7px;
        min-height: 2.25rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding-left: 0.55rem;
        font-size: .82rem;
        font-weight: 400;
        transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
    }

        .nav-group-body[b-a0d1sd20c8]  .nav-link::before {
            content: "";
            display: inline-block;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            margin-right: 0.6rem;
            flex-shrink: 0;
            transition: background 0.15s ease;
        }

        .nav-group-body[b-a0d1sd20c8]  .nav-link:hover {
            color: #ffffff;
            background-color: rgba(255, 255, 255, 0.05);
        }

            .nav-group-body[b-a0d1sd20c8]  .nav-link:hover::before {
                background: #16b886;
            }

    .nav-group-body[b-a0d1sd20c8]  a.active {
        color: #ffffff;
        background: linear-gradient(90deg, rgba(43, 181, 139, .20), rgba(43, 181, 139, .06));
        box-shadow: inset 2px 0 0 #31bd91;
        font-weight: 400;
    }

        .nav-group-body[b-a0d1sd20c8]  a.active::before {
            background: #16b886;
        }

/* ===== 首页看板独立行 ===== */
.nav-item:first-of-type[b-a0d1sd20c8] {
    padding-top: 0.25rem;
}

.nav-item:last-of-type[b-a0d1sd20c8] {
    padding-bottom: 0.25rem;
}

/* ===== 滚动区域 ===== */
.nav-scrollable[b-a0d1sd20c8] {
    display: none;
    position: relative;
    z-index: 1;
}

.navbar-toggler:checked ~ .nav-scrollable[b-a0d1sd20c8] {
    display: block;
}

.nav-backdrop[b-a0d1sd20c8] {
    display: none;
}

/* ===== 移动端响应 ===== */
@media (max-width: 640.98px) {
    .top-row[b-a0d1sd20c8] {
        min-height: 3.75rem;
    }

    .navbar-toggler:checked ~ .nav-backdrop[b-a0d1sd20c8] {
        display: block;
        position: fixed;
        inset: 3.75rem 0 0 0;
        z-index: 1099;
        background: rgba(7, 17, 25, .58);
        backdrop-filter: blur(2px);
    }

    .navbar-toggler:checked ~ .nav-scrollable[b-a0d1sd20c8] {
        position: fixed;
        left: 0;
        right: 0;
        top: 3.75rem;
        max-height: 72dvh;
        overflow-y: auto;
        background: linear-gradient(180deg, #142c30, #0d1b28);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
        padding-bottom: 1rem;
        z-index: 1100;
        animation: nav-drawer-in-b-a0d1sd20c8 .2s ease both;
    }
}

@keyframes nav-drawer-in-b-a0d1sd20c8 {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 桌面端 ===== */
@media (min-width: 641px) {
    .navbar-toggler[b-a0d1sd20c8] {
        display: none;
    }

    .nav-scrollable[b-a0d1sd20c8] {
        display: block;
        height: calc(100vh - 3.75rem);
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-group-toggle[b-a0d1sd20c8],
    .nav-group-body[b-a0d1sd20c8]  .nav-link,
    .group-arrow[b-a0d1sd20c8] {
        transition: none;
    }

    .navbar-toggler:checked ~ .nav-scrollable[b-a0d1sd20c8] {
        animation: none;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-dd6t27k9vl],
.components-reconnect-repeated-attempt-visible[b-dd6t27k9vl],
.components-reconnect-failed-visible[b-dd6t27k9vl],
.components-pause-visible[b-dd6t27k9vl],
.components-resume-failed-visible[b-dd6t27k9vl],
.components-rejoining-animation[b-dd6t27k9vl] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-dd6t27k9vl],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-dd6t27k9vl],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-dd6t27k9vl],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-dd6t27k9vl],
#components-reconnect-modal.components-reconnect-retrying[b-dd6t27k9vl],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-dd6t27k9vl],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-dd6t27k9vl],
#components-reconnect-modal.components-reconnect-failed[b-dd6t27k9vl],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-dd6t27k9vl] {
    display: block;
}


#components-reconnect-modal[b-dd6t27k9vl] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-dd6t27k9vl 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-dd6t27k9vl 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-dd6t27k9vl 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-dd6t27k9vl]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-dd6t27k9vl 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-dd6t27k9vl {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-dd6t27k9vl {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-dd6t27k9vl {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-dd6t27k9vl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-dd6t27k9vl] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-dd6t27k9vl] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-dd6t27k9vl] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-dd6t27k9vl] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-dd6t27k9vl] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-dd6t27k9vl] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-dd6t27k9vl 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-dd6t27k9vl] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-dd6t27k9vl {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/MailBox.razor.rz.scp.css */
.mail-settings-form[b-iyd3npqqoa] {
    width: 100%;
    max-width: 920px;
}

.mail-read-header[b-iyd3npqqoa] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid #e8eeeb;
}

.mail-read-subject[b-iyd3npqqoa] {
    margin-bottom: .35rem;
    color: #1c332b;
    font-size: 1.15rem;
    line-height: 1.45;
}
/* /Components/Pages/MailCenter.razor.rz.scp.css */
.mail-workspace[b-8dvpi1c3ac] {
    overflow: hidden;
    height: calc(100vh - 170px);
    min-height: 560px;
    border-color: #dce8e3;
}

.mail-toolbar[b-8dvpi1c3ac] {
    min-height: 54px;
    padding: .65rem .85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-bottom: 1px solid #e4ece8;
    background: #fbfdfc;
}

.mail-toolbar-divider[b-8dvpi1c3ac] {
    width: 1px;
    height: 22px;
    background: #dbe5e1;
    margin: 0 .15rem;
}

.mail-columns[b-8dvpi1c3ac] {
    display: grid;
    grid-template-columns: 180px minmax(280px, 350px) minmax(360px, 1fr);
    height: calc(100% - 54px);
    min-height: 0;
}

.mail-folders[b-8dvpi1c3ac] {
    padding: .85rem .65rem;
    border-right: 1px solid #e4ece8;
    background: #f7faf9;
    overflow-y: auto;
}

.mail-folder[b-8dvpi1c3ac] {
    display: block;
    padding: .55rem .65rem;
    margin-bottom: .18rem;
    border-radius: 8px;
    color: #52655e;
    text-decoration: none;
    font-size: .88rem;
}

.mail-folder:hover[b-8dvpi1c3ac] {
    background: #edf4f1;
    color: #176b52;
}

.mail-folder.active[b-8dvpi1c3ac] {
    background: linear-gradient(110deg, #16a374, #14866f);
    color: #fff;
    box-shadow: 0 5px 14px rgba(22, 163, 116, .18);
}

.mail-folder-separator[b-8dvpi1c3ac] {
    height: 1px;
    margin: .65rem .5rem;
    background: #e1e9e5;
}

.mail-list-pane[b-8dvpi1c3ac] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-right: 1px solid #e4ece8;
}

.mail-list-header[b-8dvpi1c3ac] {
    padding: .65rem;
    display: grid;
    gap: .45rem;
    border-bottom: 1px solid #e4ece8;
}

.mail-list[b-8dvpi1c3ac] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.mail-list-item[b-8dvpi1c3ac] {
    display: block;
    width: 100%;
    padding: .8rem .85rem;
    border: 0;
    border-bottom: 1px solid #edf1ef;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.mail-list-item:hover[b-8dvpi1c3ac] {
    background: #f6faf8;
}

.mail-list-item.selected[b-8dvpi1c3ac] {
    background: #eaf6f1;
    box-shadow: inset 3px 0 0 #1aa77a;
}

.mail-list-item.unread[b-8dvpi1c3ac] {
    background: #f5fbf8;
}

.mail-list-item.unread .mail-item-subject[b-8dvpi1c3ac] {
    color: #123f30;
    font-weight: 700;
}

.mail-unread-dot[b-8dvpi1c3ac] {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: .35rem;
    border-radius: 50%;
    background: #16a374;
    vertical-align: middle;
}

.mail-item-top[b-8dvpi1c3ac],
.mail-item-meta[b-8dvpi1c3ac] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.mail-item-top[b-8dvpi1c3ac] {
    color: #62736d;
    font-size: .78rem;
}

.mail-item-top time[b-8dvpi1c3ac] {
    flex-shrink: 0;
    color: #93a19c;
}

.mail-item-subject[b-8dvpi1c3ac] {
    margin: .28rem 0;
    overflow: hidden;
    color: #20362e;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-item-snippet[b-8dvpi1c3ac] {
    overflow: hidden;
    color: #84928d;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-item-meta[b-8dvpi1c3ac] {
    margin-top: .38rem;
    color: #93a19c;
    font-size: .74rem;
}

.mail-item-to[b-8dvpi1c3ac] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-empty[b-8dvpi1c3ac] {
    padding: 3rem 1rem;
    color: #93a19c;
    text-align: center;
}

.mail-reading-pane[b-8dvpi1c3ac] {
    min-width: 0;
    overflow-y: auto;
    padding: 1.1rem 1.25rem;
    background: #fff;
}

.mail-read-header[b-8dvpi1c3ac] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid #e8eeeb;
}

.mail-read-subject[b-8dvpi1c3ac] {
    margin-bottom: .35rem;
    color: #1c332b;
    font-size: 1.15rem;
    line-height: 1.45;
}

.mail-read-meta[b-8dvpi1c3ac] {
    padding: .85rem 0;
    border-bottom: 1px solid #e8eeeb;
}

.mail-read-meta > div[b-8dvpi1c3ac] {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: .65rem;
    padding: .2rem 0;
    font-size: .84rem;
}

.mail-read-meta span[b-8dvpi1c3ac] {
    color: #8a9993;
}

.mail-read-meta strong[b-8dvpi1c3ac] {
    color: #465a52;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.mail-read-meta strong a[b-8dvpi1c3ac] {
    color: #176b52;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mail-read-meta strong a:hover[b-8dvpi1c3ac] {
    color: #0d523d;
}

.mail-html-frame[b-8dvpi1c3ac] {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
    background: #fff;
}

.mail-sent-frame[b-8dvpi1c3ac] {
    margin-top: .75rem;
    border-top: 1px solid #eef2f0;
}

.mail-quote-toggle:focus[b-8dvpi1c3ac],
.mail-quote-toggle:focus-visible[b-8dvpi1c3ac],
.mail-quote-toggle:active[b-8dvpi1c3ac] {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.mail-read-body[b-8dvpi1c3ac] {
    margin: 1rem 0 0;
    color: #2f433b;
    font-family: inherit;
    font-size: .92rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mail-read-attachments[b-8dvpi1c3ac] {
    margin-top: 1rem;
    padding: .8rem;
    border: 1px solid #e4ece8;
    border-radius: 8px;
    background: #fbfdfc;
}

.mail-read-attachments-title[b-8dvpi1c3ac] {
    margin-bottom: .5rem;
    color: #52655e;
    font-size: .82rem;
    font-weight: 600;
}

.mail-read-attachment[b-8dvpi1c3ac] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .38rem 0;
    color: #176b52;
    text-decoration: none;
    border-top: 1px solid #edf1ef;
}

.mail-read-attachment:hover[b-8dvpi1c3ac] {
    text-decoration: underline;
}

.mail-read-attachment span[b-8dvpi1c3ac] {
    overflow-wrap: anywhere;
}

.mail-read-attachment small[b-8dvpi1c3ac] {
    flex-shrink: 0;
    color: #93a19b;
}

.mail-reading-empty[b-8dvpi1c3ac] {
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: #9aa8a2;
}

.mail-reading-empty-icon[b-8dvpi1c3ac] {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f6f4;
    color: #8fb5a7;
}

.mail-reading-empty-icon svg[b-8dvpi1c3ac] {
    width: 26px;
    height: 26px;
}

@media (max-width: 1180px) {
    .mail-columns[b-8dvpi1c3ac] {
        grid-template-columns: 155px minmax(250px, 300px) minmax(320px, 1fr);
    }
}

@media (max-width: 920px) {
    .mail-workspace[b-8dvpi1c3ac] {
        height: auto;
        min-height: 0;
    }

    .mail-columns[b-8dvpi1c3ac] {
        grid-template-columns: 150px 1fr;
        height: auto;
    }

    .mail-list-pane[b-8dvpi1c3ac] {
        min-height: 420px;
    }

    .mail-reading-pane[b-8dvpi1c3ac] {
        grid-column: 1 / -1;
        min-height: 360px;
        border-top: 1px solid #e4ece8;
    }
}

@media (max-width: 620px) {
    .mail-columns[b-8dvpi1c3ac] {
        grid-template-columns: 1fr;
    }

    .mail-folders[b-8dvpi1c3ac] {
        display: flex;
        gap: .25rem;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #e4ece8;
    }

    .mail-folder-separator[b-8dvpi1c3ac] {
        display: none;
    }

    .mail-folder[b-8dvpi1c3ac] {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .mail-list-pane[b-8dvpi1c3ac] {
        min-height: 360px;
        border-right: 0;
    }
}
/* /Components/Pages/MailCompose.razor.rz.scp.css */
.mail-compose-page[b-9xs13pai8e] {
    flex: 1 1 auto;
    min-height: 0;
    margin-left: 0;
    margin-right: 0;
}

.mail-compose-page > div[b-9xs13pai8e] {
    display: flex;
    min-height: 0;
}

.mail-compose-card[b-9xs13pai8e] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 620px;
    border-color: #dce8e3;
    box-shadow: 0 8px 24px rgba(28, 62, 49, .05);
}

.mail-compose-card > .card-body[b-9xs13pai8e] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.mail-compose-header[b-9xs13pai8e] {
    padding: .8rem 1rem;
}

.mail-compose-heading[b-9xs13pai8e] {
    min-width: 220px;
}

.mail-compose-actions[b-9xs13pai8e] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem;
}

.mail-compose-actions .btn[b-9xs13pai8e] {
    white-space: nowrap;
}

.mail-compose-fields[b-9xs13pai8e] {
    flex: 0 0 auto;
}

.mail-compose-fields .form-label[b-9xs13pai8e] {
    margin-bottom: .25rem;
}

.mail-compose-fields .form-control[b-9xs13pai8e] {
    min-height: 32px;
}

.mail-compose-workspace[b-9xs13pai8e] {
    flex: 1 1 auto;
    min-height: 0;
}

.mail-compose-editor[b-9xs13pai8e] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mail-compose-body[b-9xs13pai8e] {
    flex: 1 1 auto;
    min-height: 120px;
    resize: none;
    line-height: 1.6;
}

.mail-quote-preview[b-9xs13pai8e] {
    flex: 0 1 auto;
    min-height: 0;
    margin-top: .5rem;
    border: 1px solid #dce8e3;
    border-radius: 8px;
    background: #f8fbfa;
    overflow: hidden;
}

.mail-quote-preview[open][b-9xs13pai8e] {
    display: flex;
    flex-direction: column;
    max-height: 40%;
}

.mail-quote-preview summary[b-9xs13pai8e] {
    flex: 0 0 auto;
    padding: .65rem .75rem;
    color: #176b52;
    cursor: pointer;
    user-select: none;
}

.mail-quote-content[b-9xs13pai8e] {
    min-height: 0;
    overflow: auto;
}

.mail-quote-meta[b-9xs13pai8e] {
    padding: 0 .75rem .65rem;
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.6;
}

.mail-quote-meta span[b-9xs13pai8e] {
    color: #4b5563;
}

.mail-quote-frame[b-9xs13pai8e] {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
    border-top: 1px solid #e4ece8;
    background: #fff;
}

.mail-attachment-panel[b-9xs13pai8e] {
    min-height: 220px;
    border-color: #dce8e3;
    background: #f8fbfa;
}

.mail-compose-side[b-9xs13pai8e] {
    min-height: 0;
}

.mail-attachment-list[b-9xs13pai8e] {
    border: 1px solid #e4ece8;
    border-radius: 8px;
    background: #fbfdfc;
}

.mail-attachment-item[b-9xs13pai8e] {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .65rem;
    border-bottom: 1px solid #edf1ef;
}

.mail-attachment-item:last-child[b-9xs13pai8e] {
    border-bottom: 0;
}

.mail-attachment-name[b-9xs13pai8e] {
    flex: 1;
    min-width: 0;
    color: #176b52;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.mail-attachment-name:hover[b-9xs13pai8e] {
    text-decoration: underline;
}

.mail-attachment-size[b-9xs13pai8e] {
    flex-shrink: 0;
    color: #93a19b;
    font-size: .78rem;
}

.mail-recipient-input[b-9xs13pai8e] {
    cursor: pointer;
}

.mail-recipient-mask[b-9xs13pai8e] {
    z-index: 1100;
}

.mail-recipient-modal[b-9xs13pai8e] {
    width: calc(100% - 2rem);
    max-width: 760px;
}

.mail-recipient-modal .mail-contact-list[b-9xs13pai8e] {
    max-height: 45vh;
}

.mail-contact-title[b-9xs13pai8e] {
    margin: .7rem 0 .35rem;
    color: #52665e;
    font-size: .82rem;
    font-weight: 600;
}

.mail-contact-list[b-9xs13pai8e] {
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid #e4ece8;
    border-radius: 8px;
    background: #fff;
}

.mail-contact-option[b-9xs13pai8e] {
    display: grid;
    grid-template-columns: 18px minmax(90px, .7fr) minmax(140px, 1.3fr) auto;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border-bottom: 1px solid #edf1ef;
    cursor: pointer;
}

.mail-contact-option:last-child[b-9xs13pai8e] {
    border-bottom: 0;
}

.mail-contact-option:hover[b-9xs13pai8e] {
    background: #f2f8f5;
}

.mail-contact-name[b-9xs13pai8e] {
    color: #334b41;
    font-size: .84rem;
    font-weight: 600;
}

.mail-contact-email[b-9xs13pai8e] {
    color: #60756c;
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.mail-contact-title-text[b-9xs13pai8e] {
    color: #93a19b;
    font-size: .76rem;
}

@media (max-width: 991.98px) {
    .mail-compose-page[b-9xs13pai8e] {
        flex: 0 0 auto;
    }

    .mail-compose-page > div[b-9xs13pai8e] {
        display: block;
        min-height: 0;
    }

    .mail-compose-card[b-9xs13pai8e] {
        display: block;
        min-height: 0;
    }

    .mail-compose-card > .card-body[b-9xs13pai8e] {
        display: block;
        overflow: visible;
    }

    .mail-compose-editor[b-9xs13pai8e] {
        display: block;
        min-height: 0;
    }

    .mail-compose-body[b-9xs13pai8e] {
        min-height: 160px;
        resize: vertical;
    }

    .mail-quote-preview[open][b-9xs13pai8e] {
        display: block;
        max-height: none;
    }

    .mail-quote-content[b-9xs13pai8e] {
        overflow: visible;
    }
}

@media (max-width: 767.98px) {
    .mail-compose-header[b-9xs13pai8e] {
        flex-direction: column;
    }

    .mail-compose-actions[b-9xs13pai8e] {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .mail-contact-option[b-9xs13pai8e] {
        grid-template-columns: 18px 1fr;
    }

    .mail-contact-email[b-9xs13pai8e],
    .mail-contact-title-text[b-9xs13pai8e] {
        grid-column: 2;
    }
}
/* /Components/Pages/Permissions.razor.rz.scp.css */
/* ===== 权限设置页 Scoped CSS ===== */

.permissions-toolbar[b-mbynr5wvkf] {
    padding-bottom: .9rem;
    margin-bottom: .9rem;
    border-bottom: 1px solid #edf1f4;
}

.permissions-toolbar > .btn[b-mbynr5wvkf] {
    margin-left: auto;
}

.perm-cat-tabs[b-mbynr5wvkf] {
    flex-wrap: wrap;
    gap: .35rem;
}

.perm-cat-tabs .nav-link[b-mbynr5wvkf] {
    white-space: nowrap;
}

/* 分组卡片 */
.perm-group[b-mbynr5wvkf] {
    overflow-x: auto;
    margin-bottom: 0;
    background: #fff;
}

/* 主体布局：左侧导航 + 右侧内容，宽度与系统设置/打印模板统一 */
.perm-body[b-mbynr5wvkf] {
    min-width: 0;
}

.perm-nav[b-mbynr5wvkf] {
    width: 100%;
    min-width: 0;
    gap: .15rem;
    padding: .35rem;
    margin: 0;
}

.perm-nav-item[b-mbynr5wvkf] {
    padding: .62rem .8rem;
    border: 0;
    border-radius: 8px;
    background: #fff;
    font-size: .86rem;
    color: #4b596d;
    cursor: pointer;
    text-align: left;
    transition: all .15s;
}

.perm-nav-item:hover[b-mbynr5wvkf] {
    border-color: #16b886;
    color: #0f6f51;
    background: #f3f8f6;
}

.perm-nav-item.active[b-mbynr5wvkf] {
    background: linear-gradient(110deg, var(--crm-green), #14866f);
    border-color: var(--crm-green);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 6px 14px rgba(22, 163, 116, .18), inset 3px 0 0 #58c9a4;
}

.perm-content[b-mbynr5wvkf] {
    flex: 1;
    min-width: 0;
}

.perm-group-header[b-mbynr5wvkf] {
    background: #eef8f4;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0c6d50;
    border-bottom: 1px solid #e8ecf0;
}

/* 桌面表格美化 */
.perm-table[b-mbynr5wvkf] {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    table-layout: fixed;
}

.perm-table thead th[b-mbynr5wvkf] {
    background: #fafbfc;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.perm-table thead th:first-child[b-mbynr5wvkf] {
    text-align: left;
    width: 28%;
}

.perm-table tbody tr[b-mbynr5wvkf] {
    transition: background 0.15s;
}

.perm-table tbody tr:hover[b-mbynr5wvkf] {
    background: #f7fafb;
}

.perm-table tbody td[b-mbynr5wvkf] {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.85rem;
}

.perm-table tbody td:first-child[b-mbynr5wvkf] {
    text-align: left;
    font-weight: 500;
    color: #333;
}

/* 自定义开关样式（替代原生 checkbox） */
.perm-switch[b-mbynr5wvkf] {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    cursor: pointer;
}

.perm-switch input[b-mbynr5wvkf] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.perm-switch .slider[b-mbynr5wvkf] {
    position: absolute;
    inset: 0;
    background: #dde1e6;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.perm-switch .slider[b-mbynr5wvkf]::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.perm-switch input:checked + .slider[b-mbynr5wvkf] {
    background: #16b886;
}

.perm-switch input:checked + .slider[b-mbynr5wvkf]::before {
    transform: translateX(16px);
}

.perm-switch input:disabled + .slider[b-mbynr5wvkf] {
    opacity: 0.3;
    cursor: default;
}

/* 列头全选开关（小型） */
.perm-col-all[b-mbynr5wvkf] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #666;
}

.perm-switch-sm[b-mbynr5wvkf] {
    width: 28px;
    height: 16px;
}

.perm-switch-sm .slider[b-mbynr5wvkf]::before {
    width: 12px;
    height: 12px;
}

.perm-switch-sm input:checked + .slider[b-mbynr5wvkf]::before {
    transform: translateX(12px);
}

/* ===== 移动端胶囊视图 ===== */
.perm-mobile[b-mbynr5wvkf] {
    display: none;
}

.perm-mobile-group[b-mbynr5wvkf] {
    margin-bottom: 1rem;
}

.perm-mobile-group-title[b-mbynr5wvkf] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a7a5a;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

.perm-mobile-item[b-mbynr5wvkf] {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.perm-mobile-item-name[b-mbynr5wvkf] {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.4rem;
}

.perm-pills[b-mbynr5wvkf] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.perm-pill[b-mbynr5wvkf] {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    cursor: pointer;
    border: 1.5px solid #ddd;
    color: #888;
    background: #fafafa;
    transition: all 0.15s ease;
    user-select: none;
}

.perm-pill.active[b-mbynr5wvkf] {
    border-color: #16b886;
    background: #e6f9f2;
    color: #0d8a62;
    font-weight: 500;
}

.perm-pill.disabled[b-mbynr5wvkf] {
    opacity: 0.3;
    pointer-events: none;
}

/* 响应式切换 */
@media (max-width: 640.98px) {
    .perm-desktop[b-mbynr5wvkf] { display: none !important; }
    .perm-mobile[b-mbynr5wvkf] { display: block; }
    .perm-cat-list[b-mbynr5wvkf] { max-width: 60vw; }
    .perm-cat-pill[b-mbynr5wvkf] { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
    .perm-body[b-mbynr5wvkf] { flex-direction: column; gap: 0.5rem; }
    .perm-nav[b-mbynr5wvkf] { flex-direction: row; flex-wrap: wrap; min-width: 0; gap: 6px; }
    .perm-nav-item[b-mbynr5wvkf] { padding: 0.3rem 0.7rem; font-size: 0.75rem; border-radius: 16px; }
}
/* /Components/Shared/BizStatusChips.razor.rz.scp.css */
/* 业务状态多标签：达成=绿、未达成=灰、付款/收款未结清=琥珀；Toggleable 项（采购已收货）可点击 */
.stc[b-bod450rdvb] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    margin: 1px 3px 1px 0;
    padding: .16rem .46rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: .74rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease;
}

.stc-on[b-bod450rdvb] {
    background-color: #e7f5ee;
    border-color: #d3ecdf;
    color: #17714f;
}

.stc-off[b-bod450rdvb] {
    background-color: #f1f4f7;
    border-color: #e7ebf0;
    color: #7c8796;
}

.stc-pending[b-bod450rdvb] {
    background-color: #fff5df;
    border-color: #f6e7bf;
    color: #9a6815;
}

.stc-toggle[b-bod450rdvb] {
    cursor: pointer;
    user-select: none;
}

    .stc-toggle:hover[b-bod450rdvb] {
        filter: brightness(.95);
    }
/* /Components/Shared/CategoryCell.razor.rz.scp.css */
/* 列表分类单元格：色块标签常驻，编辑铅笔仅悬停/聚焦时出现，避免每行两个下拉挤占表格 */
.cat-cell[b-w3vkiles54] {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.cat-tag[b-w3vkiles54] {
    display: inline-block;
    max-width: 150px;
    padding: .18rem .5rem;
    border-radius: .35rem;
    font-size: .84rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
    cursor: pointer;
}

.cat-tag.none[b-w3vkiles54] {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    box-shadow: none;
}

.cat-edit[b-w3vkiles54] {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: .95rem;
    line-height: 1;
    padding: .15rem .25rem;
    border-radius: .3rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .12s ease;
}

.cat-cell:hover .cat-edit[b-w3vkiles54],
.cat-edit:focus-visible[b-w3vkiles54] {
    opacity: 1;
}

.cat-edit:hover[b-w3vkiles54] {
    color: #1d4ed8;
    background: #eef2ff;
}
/* /Components/Shared/MailWorkspace.razor.rz.scp.css */
.mail-workspace[b-77f4adb0bc] {
    overflow: hidden;
    height: calc(100vh - 170px);
    min-height: 560px;
    border-color: #dce8e3;
}

.mail-toolbar[b-77f4adb0bc] {
    min-height: 54px;
    padding: .65rem .85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-bottom: 1px solid #e4ece8;
    background: #fbfdfc;
}

.mail-toolbar-divider[b-77f4adb0bc] {
    width: 1px;
    height: 22px;
    background: #dbe5e1;
    margin: 0 .15rem;
}

.mail-columns[b-77f4adb0bc] {
    display: grid;
    grid-template-columns: 180px minmax(240px, var(--mail-list-width, 350px)) 6px minmax(300px, 1fr);
    height: calc(100% - 54px);
    min-height: 0;
}

.mail-columns.no-list[b-77f4adb0bc] {
    grid-template-columns: 180px minmax(0, 1fr);
}

.mail-folders[b-77f4adb0bc] {
    padding: .85rem .65rem;
    border-right: 1px solid #e4ece8;
    background: #f7faf9;
    overflow-y: auto;
}

.mail-folder[b-77f4adb0bc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .65rem;
    margin-bottom: .18rem;
    border-radius: 8px;
    color: #52655e;
    text-decoration: none;
    font-size: .88rem;
}

.mail-folder:hover[b-77f4adb0bc] {
    background: #edf4f1;
    color: #176b52;
}

.mail-folder.active[b-77f4adb0bc] {
    background: linear-gradient(110deg, #16a374, #14866f);
    color: #fff;
    box-shadow: 0 5px 14px rgba(22, 163, 116, .18);
}

.mail-folder-count[b-77f4adb0bc] {
    min-width: 1.5rem;
    padding: .08rem .38rem;
    border-radius: 999px;
    background: #e7efeb;
    color: #64776f;
    font-size: .74rem;
    line-height: 1.35;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.mail-folder.active .mail-folder-count[b-77f4adb0bc] {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.mail-folder-separator[b-77f4adb0bc] {
    height: 1px;
    margin: .65rem .5rem;
    background: #e1e9e5;
}

.mail-list-pane[b-77f4adb0bc] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.mail-splitter[b-77f4adb0bc] {
    position: relative;
    min-height: 0;
    background: #e4ece8;
    cursor: col-resize;
    touch-action: none;
    transition: background-color .15s ease;
}

.mail-splitter[b-77f4adb0bc]::after {
    content: "";
    position: absolute;
    inset: 0 -4px;
}

.mail-splitter:hover[b-77f4adb0bc],
.mail-splitter:focus-visible[b-77f4adb0bc] {
    background: #16a374;
    outline: none;
}

.mail-list-header[b-77f4adb0bc] {
    padding: .65rem;
    display: grid;
    gap: .45rem;
    border-bottom: 1px solid #e4ece8;
}

.mail-list[b-77f4adb0bc] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.mail-list-item[b-77f4adb0bc] {
    display: block;
    width: 100%;
    padding: .8rem .85rem;
    border: 0;
    border-bottom: 1px solid #edf1ef;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.mail-list-item:hover[b-77f4adb0bc] {
    background: #f6faf8;
}

.mail-list-item.selected[b-77f4adb0bc] {
    background: #eaf6f1;
    box-shadow: inset 3px 0 0 #1aa77a;
}

.mail-item-top[b-77f4adb0bc],
.mail-item-meta[b-77f4adb0bc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.mail-item-top[b-77f4adb0bc] {
    color: #62736d;
    font-size: .78rem;
}

.mail-item-top time[b-77f4adb0bc] {
    flex-shrink: 0;
    color: #93a19c;
}

.mail-item-subject[b-77f4adb0bc] {
    margin: .28rem 0;
    overflow: hidden;
    color: #20362e;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-item-snippet[b-77f4adb0bc] {
    overflow: hidden;
    color: #84928d;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-item-meta[b-77f4adb0bc] {
    margin-top: .38rem;
    color: #93a19c;
    font-size: .74rem;
}

.mail-item-to[b-77f4adb0bc] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-empty[b-77f4adb0bc] {
    padding: 3rem 1rem;
    color: #93a19c;
    text-align: center;
}

.mail-reading-pane[b-77f4adb0bc] {
    min-width: 0;
    overflow-y: auto;
    padding: 1.1rem 1.25rem;
    background: #fff;
}

.mail-read-header[b-77f4adb0bc] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid #e8eeeb;
}

.mail-read-subject[b-77f4adb0bc] {
    margin-bottom: .35rem;
    color: #1c332b;
    font-size: 1.15rem;
    line-height: 1.45;
}

.mail-read-meta[b-77f4adb0bc] {
    padding: .85rem 0;
    border-bottom: 1px solid #e8eeeb;
}

.mail-read-meta > div[b-77f4adb0bc] {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: .65rem;
    padding: .2rem 0;
    font-size: .84rem;
}

.mail-read-meta span[b-77f4adb0bc] {
    color: #8a9993;
}

.mail-read-meta strong[b-77f4adb0bc] {
    color: #465a52;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.mail-read-body[b-77f4adb0bc] {
    margin: 1rem 0 0;
    color: #2f433b;
    font-family: inherit;
    font-size: .92rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mail-reading-empty[b-77f4adb0bc] {
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: #9aa8a2;
}

.mail-reading-empty-icon[b-77f4adb0bc] {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f6f4;
    color: #8fb5a7;
}

.mail-reading-empty-icon svg[b-77f4adb0bc] {
    width: 26px;
    height: 26px;
}

@media (max-width: 1180px) {
    .mail-columns[b-77f4adb0bc] {
        grid-template-columns: 155px minmax(230px, var(--mail-list-width, 300px)) 6px minmax(280px, 1fr);
    }

    .mail-columns.no-list[b-77f4adb0bc] {
        grid-template-columns: 155px minmax(0, 1fr);
    }
}

@media (max-width: 920px) {
    .mail-workspace[b-77f4adb0bc] {
        height: auto;
        min-height: 0;
    }

    .mail-columns[b-77f4adb0bc] {
        grid-template-columns: 150px 1fr;
        height: auto;
    }

    .mail-columns.no-list[b-77f4adb0bc] {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .mail-columns.no-list .mail-reading-pane[b-77f4adb0bc] {
        grid-column: auto;
        border-top: 0;
    }

    .mail-list-pane[b-77f4adb0bc] {
        grid-column: 2;
        min-height: 420px;
    }

    .mail-splitter[b-77f4adb0bc] {
        display: none;
    }

    .mail-reading-pane[b-77f4adb0bc] {
        grid-column: 1 / -1;
        min-height: 360px;
        border-top: 1px solid #e4ece8;
    }
}

@media (max-width: 620px) {
    .mail-columns[b-77f4adb0bc],
    .mail-columns.no-list[b-77f4adb0bc] {
        grid-template-columns: 1fr;
    }

    .mail-folders[b-77f4adb0bc] {
        display: flex;
        gap: .25rem;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #e4ece8;
    }

    .mail-folder-separator[b-77f4adb0bc] {
        display: none;
    }

    .mail-folder[b-77f4adb0bc] {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .mail-list-pane[b-77f4adb0bc] {
        grid-column: 1;
        min-height: 360px;
    }
}
/* /Components/Shared/MobileCardList.razor.rz.scp.css */
/* 移动端只读卡片列表：一行一张，左主体右金额，整卡可点跳只读详情页。
   显隐切换（m-cards）在全局 app.css 的 641px 媒体查询里，这里只管卡片自身长相。
   口径复用：边框/圆角同 .stat-card，主色 #1b6ec2，金额数字同 .money（tabular-nums 右对齐）。 */
.m-card[b-i08sczlg1x] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 14px rgba(21, 35, 56, .05);
}

.m-main[b-i08sczlg1x] {
    flex: 1 1 auto;
    min-width: 0;
}

.m-side[b-i08sczlg1x] {
    flex: 0 0 auto;
    text-align: right;
    padding-left: 0.5rem;
    border-left: 1px solid #f1f5f9;
}

/* 卡片内文本行：标题大、副行小灰、底行浅灰，均允许换行不撑破卡片 */
.m-title[b-i08sczlg1x] {
    font-size: .96rem;
    font-weight: 400;
    color: #263449;
    line-height: 1.4;
    word-break: break-all;
}

.m-sub[b-i08sczlg1x] {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.1rem;
    word-break: break-all;
}

.m-row[b-i08sczlg1x] {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
}

/* 右侧金额区：主金额大数字，副金额小灰 */
.m-amt[b-i08sczlg1x] {
    font-size: 1.02rem;
    font-weight: 400;
    color: #263449;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.m-amt-sub[b-i08sczlg1x] {
    font-size: 0.78rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    margin-top: 0.15rem;
    white-space: nowrap;
}

/* 卡片内的轻量状态标签（不带交互，替代桌面端 BizStatusChips/CategoryCell 的只读呈现） */
.m-tag[b-i08sczlg1x] {
    display: inline-block;
    font-size: 0.76rem;
    line-height: 1;
    padding: 0.28rem 0.5rem;
    border-radius: 4px;
    background: #eef2f7;
    color: #475569;
    white-space: nowrap;
}

.m-tag.lit[b-i08sczlg1x] {
    background: #e6f6ec;
    color: #1a7f45;
}

.m-tag.pending[b-i08sczlg1x] {
    background: #fdecec;
    color: #c0392b;
}

.m-tag.info[b-i08sczlg1x] {
    background: #e8f1fb;
    color: #1b6ec2;
}

/* 分类色点：与全局 .cat-dot 同口径，但 scoped 内无法复用全局类，这里等价复刻 */
.m-dot[b-i08sczlg1x] {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
    margin-right: 0.3rem;
    vertical-align: baseline;
}

.m-empty[b-i08sczlg1x] {
    text-align: center;
    color: #8a94a6;
    font-size: 0.9rem;
    padding: 2rem 0;
}

/* 卡片内链接维持全站链接色（模板来自父页面标记、带父作用域属性，scoped 规则只能以 .m-card 为锚后代匹配） */
.m-card a[b-i08sczlg1x] {
    color: #128363;
    text-decoration: none;
}
/* /Components/Shared/StatusSelect.razor.rz.scp.css */
/* 状态直改下拉：淡底色 + 同色系文字，保持与 StatusBadge 一致的可读配色 */
.status-select[b-6pq4orivgr] {
    width: auto;
    min-width: 104px;
    min-height: 2rem;
    border-radius: 7px;
    font-weight: 400;
    font-size: .8rem;
}

.st-draft[b-6pq4orivgr] {
    background-color: #f1f3f5;
    color: #495057;
}

.st-confirmed[b-6pq4orivgr] {
    background-color: #e9f6f0;
    color: #167355;
}

.st-completed[b-6pq4orivgr] {
    background-color: #e6f6ec;
    color: #157347;
}

.st-voided[b-6pq4orivgr] {
    background-color: #fdeaea;
    color: #b02a37;
}

.st-converted[b-6pq4orivgr] {
    background-color: #dff4fb;
    color: #087990;
}
