/**
 * Copyright：ChengDu YunSu Technology Company Ltd.
 * Author：Criss
 * File：public/assets/app/css/legacy-app.css
 * Date：2026-07-26
 */
/* ===== 云进销存 · 设计令牌 ===== */
:root,
[data-bs-theme="light"] {
    --erp-font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --erp-brand: #206bc4;
    --erp-brand-light: #4299e1;
    --erp-brand-glow: rgba(32, 107, 196, 0.35);
    --erp-sidebar-width: 5.9375rem;
    --erp-sidebar-bg: #f8fafc;
    --erp-sidebar-bg2: #eef2f7;
    --erp-sidebar-fg: #334155;
    --erp-sidebar-fg-muted: #64748b;
    --erp-sidebar-border: rgba(15, 23, 42, 0.08);
    --erp-sidebar-hover: rgba(15, 23, 42, 0.05);
    --erp-sidebar-active-bg: rgba(32, 107, 196, 0.1);
    --erp-sidebar-glow: rgba(32, 107, 196, 0.08);
    --erp-sidebar-shadow: 4px 0 24px rgba(15, 23, 42, 0.06);
    --erp-sidebar-input-bg: #fff;
    --erp-sidebar-input-border: rgba(15, 23, 42, 0.1);
    --erp-sidebar-scroll: rgba(15, 23, 42, 0.18);
    --erp-page-bg: #eef2f7;
    --erp-page-bg2: #e4eaf2;
    --erp-topbar-h: 3.5rem;
    --erp-radius: 0.75rem;
    --erp-radius-lg: 1rem;
    --erp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --erp-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --erp-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
    --erp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 全局 ===== */
body,
.erp-body {
    font-family: var(--erp-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.erp-app.page {
    padding-left: 0 !important;
}

.erp-app .page-wrapper {
    padding-top: 0 !important;
    flex: 1;
    min-width: 0;
}

@media (min-width: 992px) {
    /* Tabler 侧栏须 fixed 脱离 .page 纵向 flex，否则 inner 的 100dvh 会把 page-wrapper 顶到视口下方 */
    .erp-sidebar.navbar-vertical.navbar-expand-lg {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--erp-sidebar-width) !important;
        z-index: 1030;
    }

    .erp-app .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
        margin-left: var(--erp-sidebar-width) !important;
    }
}

.erp-app .page-body.erp-page-body {
    background: var(--erp-page-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(32, 107, 196, 0.06), transparent),
        linear-gradient(180deg, var(--erp-page-bg) 0%, var(--erp-page-bg2) 100%);
    min-height: calc(100dvh - var(--erp-topbar-h));
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.erp-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ===== 多标签页 ===== */
.erp-tab-bar {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem 0;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.erp-tab-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.erp-tab-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.erp-tab-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2rem;
}

.erp-tab-bar-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding-bottom: 0.25rem;
}

.erp-tab-bar-nav[hidden] {
    display: none !important;
}

.erp-tab-nav-btn {
    padding: 0.25rem 0.3rem;
    border-radius: 0.375rem;
    line-height: 1;
}

.erp-tab-nav-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.erp-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 11rem;
    padding: 0.3125rem 0.625rem;
    border: 1px solid transparent;
    border-radius: 0.4375rem 0.4375rem 0 0;
    background: transparent;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--erp-transition), color var(--erp-transition), border-color var(--erp-transition);
    flex-shrink: 0;
}

.erp-tab-item:hover {
    background: rgba(15, 23, 42, 0.04);
    color: #334155;
}

.erp-tab-item.is-active {
    background: var(--erp-page-bg);
    border-color: rgba(15, 23, 42, 0.08);
    border-bottom-color: var(--erp-page-bg);
    color: #0f172a;
    font-weight: 600;
    margin-bottom: -1px;
}

.erp-tab-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-tab-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.125rem;
    border-radius: 0.25rem;
    opacity: 0.55;
    flex-shrink: 0;
    transition: opacity var(--erp-transition), background var(--erp-transition);
}

.erp-tab-item.is-active .erp-tab-close,
.erp-tab-item:hover .erp-tab-close {
    opacity: 0.85;
}

.erp-tab-close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.erp-tab-bar-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.125rem;
    padding-bottom: 0.25rem;
}

.erp-tab-action-btn {
    padding: 0.25rem 0.375rem;
    border-radius: 0.375rem;
}

/* 标签右键：竖向浮动菜单（挂到 body，避免落在文档流里） */
.erp-tab-ctx {
    position: fixed !important;
    z-index: 2000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.125rem;
    min-width: 9.75rem;
    max-width: 14rem;
    margin: 0;
    padding: 0.375rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.625rem;
    background: #fff;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 16px 40px rgba(15, 23, 42, 0.14);
    box-sizing: border-box;
}

.erp-tab-ctx[hidden] {
    display: none !important;
}

.erp-tab-ctx-item {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.5rem 0.75rem !important;
    border: 0 !important;
    border-radius: 0.4375rem !important;
    background: transparent !important;
    color: #334155 !important;
    font: inherit;
    font-size: 0.8125rem !important;
    font-weight: 500;
    line-height: 1.3;
    text-align: left !important;
    cursor: pointer;
    box-shadow: none !important;
}

.erp-tab-ctx-item:hover:not(:disabled) {
    background: rgba(32, 107, 196, 0.08) !important;
    color: #1d4ed8 !important;
}

.erp-tab-ctx-item:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.erp-tab-ctx-sep {
    height: 1px;
    margin: 0.25rem 0.375rem;
    background: rgba(15, 23, 42, 0.08);
    border: 0;
}

.erp-tab-panels {
    flex: 1;
    min-height: 0;
    position: relative;
}

.erp-tab-pane {
    display: none;
    height: 100%;
}

.erp-tab-pane.is-active {
    display: flex;
    flex-direction: column;
}

.erp-tab-pane.is-active > .erp-tab-content,
.erp-tab-pane.is-active > .erp-tab-iframe {
    flex: 1;
    min-height: calc(100dvh - var(--erp-topbar-h) - 2.75rem);
}

.erp-tab-iframe {
    display: block;
    width: 100%;
    border: 0;
    min-height: calc(100dvh - var(--erp-topbar-h) - 2.5rem);
    background: #fff;
}

.erp-main-content {
    padding-top: 0.875rem;
    padding-bottom: 1.25rem;
    animation: erp-fade-in 0.35s ease;
}

@keyframes erp-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* HTMX 顶栏进度条 */
.erp-htmx-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 9999;
    background: linear-gradient(90deg, var(--erp-brand), var(--erp-brand-light));
    box-shadow: 0 0 12px var(--erp-brand-glow);
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.erp-htmx-bar.is-active {
    opacity: 1;
    animation: erp-bar-pulse 1.2s ease infinite;
}

@keyframes erp-bar-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

#page-body-loading.htmx-request #main-content {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ===== 侧栏 ===== */
.erp-sidebar {
    width: var(--erp-sidebar-width);
    background:
        linear-gradient(175deg, var(--erp-sidebar-bg) 0%, var(--erp-sidebar-bg2) 100%) !important;
    border-right: 1px solid var(--erp-sidebar-border);
    box-shadow: var(--erp-sidebar-shadow);
}

.erp-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(ellipse 80% 100% at 50% -20%, var(--erp-sidebar-glow), transparent);
    pointer-events: none;
}

.erp-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100dvh;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: none !important;
    position: relative;
    z-index: 1;
    --tblr-gutter-x: 0;
}

/* 桌面窄栏：整列内容有效宽度 = 侧栏宽度，取消 Tabler/Bootstrap 左右 gutter */
@media (min-width: 992px) {
    .erp-sidebar.navbar-vertical {
        padding: 0 !important;
    }

    .erp-sidebar > .erp-sidebar-inner,
    .erp-sidebar > .erp-sidebar-inner.container-fluid {
        --tblr-gutter-x: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .erp-sidebar-brand,
    .erp-sidebar-search,
    .erp-sidebar-nav,
    .erp-nav-rail,
    .erp-nav-rail-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .erp-sidebar-nav {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .erp-nav-rail-link,
    .erp-nav-rail-btn {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box;
    }

    .erp-nav-group.is-open > .erp-nav-rail-btn,
    .erp-nav-group.has-active > .erp-nav-rail-btn,
    .erp-nav-home .erp-nav-rail-link.active,
    .erp-nav-rail-link:hover,
    .erp-nav-rail-btn:hover {
        border-radius: 0 !important;
    }
}

.erp-sidebar-offcanvas .erp-sidebar-inner {
    min-height: auto;
    height: 100%;
}

.erp-sidebar-brand {
    padding: 0.75rem 0 0.625rem;
    border-bottom: 1px solid var(--erp-sidebar-border);
    text-align: center;
}

.erp-sidebar-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    color: var(--erp-sidebar-fg) !important;
    border-radius: 0;
    padding: 0.35rem 0.15rem;
    transition: background var(--erp-transition);
    width: 100%;
    max-width: 100%;
}

.erp-sidebar-brand-link.active {
    background: var(--erp-sidebar-active-bg);
}

.erp-sidebar-brand-link:hover {
    background: var(--erp-sidebar-hover);
}

.erp-sidebar-logo {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.erp-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 0 0.15rem;
}

.erp-sidebar-user-name,
.erp-sidebar-app-name {
    display: block;
    width: 100%;
    max-width: 100%;
    font-weight: 700;
    font-size: 0.6875rem;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--erp-sidebar-fg);
}

.erp-sidebar-company {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.5625rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--erp-sidebar-fg-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-sidebar-search {
    padding: 0.45rem 0.35rem 0.5rem !important;
}

.erp-sidebar-search .form-control {
    background: var(--erp-sidebar-input-bg);
    border: 1px solid var(--erp-sidebar-input-border);
    color: var(--erp-sidebar-fg);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    height: 2rem;
    padding-left: 2rem;
    padding-right: 0.35rem;
    transition: border-color var(--erp-transition), background var(--erp-transition), box-shadow var(--erp-transition);
}

.erp-sidebar-search .form-control::placeholder {
    color: var(--erp-sidebar-fg-muted);
    font-size: 0.6875rem;
}

.erp-sidebar-search .form-control:focus {
    background: #fff;
    border-color: rgba(66, 153, 225, 0.55);
    color: var(--erp-sidebar-fg);
    box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12);
}

.erp-sidebar-search .input-icon-addon {
    color: var(--erp-sidebar-fg-muted);
}

.erp-sidebar-nav {
    overflow-y: auto;
    overflow-x: visible;
    padding: 0.25rem 0 1rem;
    /* 未溢出时不占位；溢出时仍可用滚轮滚动，不显示滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.erp-sidebar-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.erp-sidebar-offcanvas {
    width: min(18rem, 88vw);
}

.erp-sidebar-offcanvas .erp-sidebar-brand-link {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.erp-sidebar-offcanvas .erp-sidebar-brand-text {
    align-items: flex-start;
}

.erp-sidebar-offcanvas .erp-sidebar-user-name,
.erp-sidebar-offcanvas .erp-sidebar-company {
    text-align: left;
}

.erp-sidebar-offcanvas .erp-nav-rail-link,
.erp-sidebar-offcanvas .erp-nav-rail-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
}

.erp-sidebar-offcanvas .erp-nav-rail-label {
    font-size: 0.875rem;
}

.erp-sidebar-offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.875rem 1rem;
}

/* ===== 侧栏导航轨（仿旧版窄栏铺满 + 右侧贴边弹出） ===== */
.erp-nav-rail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.erp-nav-rail-item {
    position: relative;
}

.erp-nav-rail-link,
.erp-nav-rail-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 5.5rem;
    padding: 0.55rem 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--erp-sidebar-fg-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--erp-transition), color var(--erp-transition);
    position: relative;
}

.erp-nav-rail-link:hover,
.erp-nav-rail-btn:hover {
    background: var(--erp-sidebar-hover);
    color: var(--erp-sidebar-fg);
}

.erp-nav-rail-icon {
    width: 100%;
    height: auto;
    min-height: 2.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 2.125rem;
    flex-shrink: 0;
    transition: transform var(--erp-transition), color var(--erp-transition);
}

.erp-nav-rail-label {
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.erp-nav-rail-arrow {
    display: none;
}

/* 打开时高亮铺满整列（贴右缘，避免视觉偏左） */
.erp-nav-group.is-open > .erp-nav-rail-btn {
    background: var(--erp-sidebar-active-bg) !important;
    color: var(--erp-brand);
    border-radius: 0 !important;
    box-shadow: inset -2px 0 0 0 #fff;
}

.erp-nav-group.has-active > .erp-nav-rail-btn {
    color: var(--erp-brand);
}

.erp-nav-group.has-active > .erp-nav-rail-btn .erp-nav-rail-icon,
.erp-nav-group.is-open > .erp-nav-rail-btn .erp-nav-rail-icon {
    transform: none;
    box-shadow: none;
}

/* 右侧弹出菜单层：贴导航右缘，左侧直角 + 三角衔接 */
.erp-nav-flyout {
    position: fixed;
    z-index: 1045;
    color-scheme: light;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-left: 0 !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    box-shadow:
        4px 4px 16px rgba(15, 23, 42, 0.1),
        0 2px 6px rgba(15, 23, 42, 0.04);
    overflow: visible;
    margin: 0 !important;
    animation: erp-flyout-in 0.12s ease-out;
}

@keyframes erp-flyout-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 三角画在菜单左侧，尖端插入导航（对齐旧版 sub-nav-wrap b） */
.erp-nav-flyout::before {
    content: "";
    position: absolute;
    left: -8px;
    top: var(--erp-flyout-arrow-top, 50%);
    width: 0;
    height: 0;
    margin-top: -8px;
    border-style: solid;
    border-width: 8px;
    border-color: transparent;
    border-right-color: #fff;
    border-left-width: 0;
    z-index: 2;
    pointer-events: none;
}

.erp-nav-flyout-pointer {
    display: none !important;
}

.erp-nav-flyout-title {
    margin: 0;
    padding: 0.75rem 1rem 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.erp-nav-flyout-body {
    padding: 0.5rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #fff;
}

.erp-nav-rail-link .ti,
.erp-nav-rail-btn .ti,
.erp-theme-trigger-icon .ti,
.erp-shortcut-icon .ti,
.erp-stat-icon .ti,
.erp-quick-icon .ti {
    font-family: "tabler-icons" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.erp-sidebar .ti,
.erp-topbar .ti,
.erp-main-content .ti {
    font-family: "tabler-icons" !important;
}

/* 分组图标：桌面窄栏仅着色 */
.erp-nav-icon-accent {
    border: 0;
}

.erp-accent-green.erp-nav-icon-accent .ti { color: #74b816; }
.erp-accent-azure.erp-nav-icon-accent .ti { color: #1c7ed6; }
.erp-accent-orange.erp-nav-icon-accent .ti { color: #f76707; }
.erp-accent-teal.erp-nav-icon-accent .ti { color: #0ca678; }
.erp-accent-cyan.erp-nav-icon-accent .ti { color: #15aabf; }
.erp-accent-purple.erp-nav-icon-accent .ti { color: #ae3ec9; }
.erp-accent-secondary.erp-nav-icon-accent .ti { color: #64748b; }

.erp-nav-flyout--single {
    min-width: 12.5rem;
}

.erp-nav-flyout--single .erp-nav-flyout-body {
    padding-top: 0.25rem;
}

.erp-nav-flyout--group .erp-nav-flyout-body {
    display: flex;
    padding: 0.75rem 0.5rem 0.625rem;
    gap: 0;
}

.erp-nav-flyout--cols-2,
.erp-nav-flyout--biz {
    min-width: 18rem;
}

.erp-nav-flyout--cols-3 {
    min-width: 26rem;
}

.erp-nav-flyout--cols-4,
.erp-nav-flyout--report {
    min-width: 36rem;
    max-width: min(66rem, calc(100vw - var(--erp-sidebar-width) - 1rem));
}

/* 报表菜单列多、条目名较长：按内容撑开列宽，不折行 */
.erp-nav-flyout--report .erp-nav-flyout-col {
    flex: 1 0 auto;
}

.erp-nav-flyout--report .erp-flyout-link {
    white-space: nowrap;
}

.erp-nav-flyout--setting {
    min-width: 32rem;
    max-width: min(40rem, calc(100vw - var(--erp-sidebar-width)));
}
.erp-nav-flyout-col {
    flex: 1;
    min-width: 0;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0 0.25rem;
}

.erp-nav-flyout-col:last-child {
    border-right: 0;
}

.erp-nav-flyout-heading {
    margin: 0 0 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #94a3b8;
}

.erp-nav-flyout-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.erp-flyout-item {
    position: relative;
    margin-bottom: 0.125rem;
}

.erp-flyout-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #334155 !important;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background var(--erp-transition), color var(--erp-transition), box-shadow var(--erp-transition);
}

.erp-flyout-link::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background var(--erp-transition), transform var(--erp-transition);
}

.erp-flyout-link:hover {
    background: rgba(32, 107, 196, 0.08);
    color: #1d4ed8 !important;
}

.erp-flyout-link:hover::before {
    background: var(--erp-brand);
    transform: scale(1.15);
}

.erp-flyout-item.is-active .erp-flyout-link,
.erp-flyout-link.active {
    background: rgba(32, 107, 196, 0.12);
    color: #1d4ed8 !important;
    font-weight: 600;
}

.erp-flyout-item.is-active .erp-flyout-link::before,
.erp-flyout-link.active::before {
    background: var(--erp-brand);
}

.erp-flyout-query {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #fff !important;
    background: var(--erp-brand);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(32, 107, 196, 0.25);
}

.erp-flyout-item:hover .erp-flyout-query,
.erp-flyout-item.is-active .erp-flyout-query {
    display: inline-block;
}

.erp-flyout-query:hover {
    background: #1a5da8;
    color: #fff !important;
}

/* 移动端抽屉：弹出层在项下方展开 */
@media (max-width: 991.98px) {
    .erp-sidebar-offcanvas {
        width: min(18rem, 88vw);
    }

    .erp-nav-rail-link,
    .erp-nav-rail-btn {
        flex-direction: row;
        justify-content: flex-start;
        min-height: auto;
        padding: 0.625rem 0.875rem;
        gap: 0.625rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
    }

    .erp-nav-group.is-open > .erp-nav-rail-btn::after,
    .erp-nav-flyout::before {
        display: none;
    }

    .erp-nav-rail-icon {
        width: 2rem;
        height: 2rem;
        min-height: 0;
        font-size: 1.125rem;
        flex-shrink: 0;
    }

    .erp-nav-rail-arrow {
        display: block;
        margin-left: auto;
        opacity: 0.45;
        font-size: 1rem;
        transition: transform 0.2s ease;
    }

    .erp-nav-group.is-open .erp-nav-rail-arrow {
        transform: rotate(90deg);
    }

    /* 移动端：不弹出定位，样式与桌面飞出层一致（白底深色字） */
    .erp-nav-flyout {
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin: 0 0.5rem 0.375rem !important;
        border: 1px solid rgba(15, 23, 42, 0.12) !important;
        border-left: 1px solid rgba(15, 23, 42, 0.12) !important;
        border-radius: 0.5rem !important;
        box-shadow:
            0 2px 8px rgba(15, 23, 42, 0.08),
            0 1px 2px rgba(15, 23, 42, 0.04) !important;
        background: #fff !important;
        color-scheme: light;
        overflow: hidden;
    }

    .erp-nav-flyout-pointer {
        display: none;
    }

    .erp-nav-flyout-body {
        background: #fff !important;
        max-height: none;
        padding: 0.375rem 0.5rem;
    }

    .erp-nav-flyout--group .erp-nav-flyout-body {
        flex-direction: column;
    }

    .erp-nav-flyout-col {
        border-right: 0;
        border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
        padding-bottom: 0.5rem;
        margin-bottom: 0.375rem;
    }

    .erp-nav-flyout-col:last-child {
        border-bottom: 0;
        margin-bottom: 0;
    }

    .erp-nav-flyout-title,
    .erp-nav-flyout-heading {
        color: #94a3b8 !important;
    }

    .erp-flyout-link {
        color: #334155 !important;
        border-radius: 0.4375rem;
    }

    .erp-flyout-link::before {
        background: #cbd5e1;
    }

    .erp-flyout-link:hover,
    .erp-flyout-item.is-active .erp-flyout-link,
    .erp-flyout-link.active {
        background: rgba(32, 107, 196, 0.1);
        color: #1d4ed8 !important;
    }

    .erp-flyout-link:hover::before,
    .erp-flyout-item.is-active .erp-flyout-link::before,
    .erp-flyout-link.active::before {
        background: var(--erp-brand, #206bc4);
    }

    .erp-flyout-query {
        background: rgba(99, 201, 99, 0.85);
    }
}

/* 旧版内联导航样式（已废弃，保留选择器避免残留引用） */
.erp-nav-tree { gap: 0.2rem; }
.erp-nav-tree > .nav-item { margin-bottom: 0.2rem; }

.erp-nav-top {
    display: flex;
    align-items: center;
    border-radius: 0.5625rem;
    padding: 0.5rem 0.625rem;
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background var(--erp-transition), color var(--erp-transition), transform 0.15s ease;
}

.erp-nav-top:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

.erp-nav-top .nav-link-icon .ti,
.erp-theme-trigger-icon .ti,
.erp-shortcut-icon .ti,
.erp-stat-icon .ti,
.erp-quick-icon .ti {
    font-family: "tabler-icons" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.erp-sidebar .ti,
.erp-topbar .ti,
.erp-main-content .ti {
    font-family: "tabler-icons" !important;
}

.erp-nav-top .nav-link-icon {
    width: 2.125rem;
    height: 2.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5625rem;
    margin-right: 0.625rem;
    flex-shrink: 0;
    font-size: 1.125rem;
    transition: transform var(--erp-transition), box-shadow var(--erp-transition);
}

.erp-nav-top:hover .nav-link-icon {
    transform: scale(1.04);
}

/* 工作台：选中态见 .erp-nav-home .erp-nav-rail-link.active（勿在默认态加高亮） */
.erp-nav-home .erp-nav-link.active {
    background: var(--erp-sidebar-active-bg);
    color: var(--erp-brand);
    font-weight: 600;
}

.erp-nav-home .erp-nav-link.active .erp-nav-icon-home {
    background: transparent !important;
    border: 0 !important;
    color: var(--erp-brand);
    box-shadow: none !important;
}

.erp-nav-home .erp-nav-link.active .erp-nav-icon-home .ti {
    color: var(--erp-brand);
}

.erp-nav-group.is-open > .erp-nav-group-toggle,
.erp-nav-group.is-open > .erp-nav-rail-btn {
    background: var(--erp-sidebar-active-bg) !important;
    color: var(--erp-brand) !important;
}

.erp-nav-group.has-active > .erp-nav-group-toggle,
.erp-nav-group.has-active > .erp-nav-rail-btn {
    color: var(--erp-brand) !important;
}

.erp-nav-group-toggle .nav-link-toggle {
    opacity: 0.4;
    font-size: 0.875rem;
    transition: transform 0.25s ease, opacity var(--erp-transition);
}

.erp-nav-group-toggle:hover .nav-link-toggle {
    opacity: 0.7;
}

.erp-nav-group-toggle:not(.collapsed) .nav-link-toggle {
    transform: rotate(180deg);
    opacity: 0.75;
}

.erp-nav-submenu {
    position: relative;
    margin-left: 1.125rem;
    padding-left: 0.625rem;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.erp-nav-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.28);
    padding: 0.75rem 0.5rem 0.3rem 0.75rem;
    position: relative;
}

.erp-nav-section-label::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 0.375rem;
    vertical-align: middle;
}

.erp-nav-children { padding: 0.2rem 0 0.45rem; }

.erp-nav-leaf-row {
    display: flex;
    align-items: stretch;
    padding-right: 0.15rem;
}

.erp-nav-child {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.625rem 0.4rem 0.75rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.62) !important;
    border-radius: 0.4375rem;
    min-width: 0;
    transition: background var(--erp-transition), color var(--erp-transition), padding-left var(--erp-transition);
}

.erp-nav-child:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95) !important;
    padding-left: 0.875rem;
}

.erp-nav-child.active {
    background: linear-gradient(90deg, rgba(32, 107, 196, 0.26) 0%, rgba(32, 107, 196, 0.05) 100%);
    color: #fff !important;
    font-weight: 600;
}

.erp-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: background var(--erp-transition), box-shadow var(--erp-transition), transform var(--erp-transition);
}

.erp-nav-child:hover .erp-nav-dot {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.15);
}

.erp-nav-child.active .erp-nav-dot {
    background: var(--erp-brand-light);
    box-shadow: 0 0 10px var(--erp-brand-glow);
    transform: scale(1.2);
}

.erp-nav-child .nav-link-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-nav-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    flex-shrink: 0;
    align-self: center;
    color: rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.8125rem;
    border: 1px solid transparent;
    transition: background var(--erp-transition), color var(--erp-transition), border-color var(--erp-transition);
}

.erp-nav-list-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.erp-nav-list-btn.active {
    color: var(--erp-brand-light);
    background: rgba(32, 107, 196, 0.15);
    border-color: rgba(32, 107, 196, 0.25);
}

/* ===== 顶栏 ===== */
.erp-topbar {
    min-height: var(--erp-topbar-h);
    height: var(--erp-topbar-h);
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: var(--erp-shadow-sm);
    flex-shrink: 0;
    z-index: 1020;
}

.erp-topbar-desktop,
.erp-topbar-mobile {
    display: flex;
    align-items: center;
}

.erp-topbar-mobile {
    padding-top: env(safe-area-inset-top, 0);
}

.erp-breadcrumb {
    font-size: 0.9375rem;
    margin: 0;
}

.erp-breadcrumb-home {
    color: #64748b;
    text-decoration: none;
    transition: color var(--erp-transition);
}

.erp-breadcrumb-home:hover { color: var(--erp-brand); }

.erp-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 600;
}

.erp-topbar-divider {
    width: 1px;
    height: 1.5rem;
    background: rgba(15, 23, 42, 0.1);
}

.erp-topbar-date { color: #64748b; }

.erp-topbar-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.erp-mobile-header {
    padding-top: env(safe-area-inset-top, 0);
}

.erp-topbar-btn {
    border-radius: 0.5rem;
}

/* ===== 主题切换 ===== */
.erp-theme-switcher--topbar .erp-theme-trigger {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #64748b;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.03);
    transition: background var(--erp-transition), color var(--erp-transition), border-color var(--erp-transition);
}

.erp-theme-switcher--topbar .erp-theme-trigger:hover {
    color: var(--erp-brand);
    background: rgba(32, 107, 196, 0.08);
    border-color: rgba(32, 107, 196, 0.15);
}

.erp-theme-switcher--topbar .erp-theme-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.erp-theme-trigger-sidebar {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.75) !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    transition: background var(--erp-transition), border-color var(--erp-transition), color var(--erp-transition);
}

.erp-theme-trigger-sidebar:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.erp-theme-trigger-sidebar .erp-theme-trigger-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4375rem;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    flex-shrink: 0;
}

.erp-theme-trigger-sidebar .erp-theme-trigger-icon .ti-sun { color: #fcc419; }
.erp-theme-trigger-sidebar .erp-theme-trigger-icon .ti-moon { color: #74c0fc; }
.erp-theme-trigger-sidebar .erp-theme-trigger-icon .ti-device-desktop { color: #adb5bd; }

.erp-theme-trigger-chevron {
    font-size: 0.75rem;
    opacity: 0.45;
}

.erp-theme-menu {
    min-width: 11rem;
    border: 0;
    box-shadow: var(--erp-shadow-lg);
    border-radius: var(--erp-radius);
    padding: 0.375rem;
}

.erp-theme-option.active {
    background: rgba(32, 107, 196, 0.08);
}

[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger:hover {
    color: #74c0fc;
    background: rgba(32, 107, 196, 0.15);
    border-color: rgba(32, 107, 196, 0.25);
}

[data-bs-theme="dark"] .erp-theme-option.active {
    background: rgba(255, 255, 255, 0.06);
}

/* 用户下拉 */
.erp-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 2rem;
    transition: background var(--erp-transition);
}

.erp-user-trigger:hover { background: rgba(15, 23, 42, 0.05); }

.erp-user-avatar,
.erp-user-menu-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--erp-brand), var(--erp-brand-light));
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.erp-user-menu-avatar {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.erp-user-name { font-weight: 500; font-size: 0.875rem; }
.erp-user-chevron { font-size: 0.75rem; color: #94a3b8; }

.erp-user-menu {
    min-width: 14rem;
    border: 0;
    box-shadow: var(--erp-shadow-lg);
    border-radius: var(--erp-radius);
    padding: 0.5rem;
}

.erp-user-menu-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* ===== 页面头（业务页通用） ===== */
.erp-page-header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.erp-page-header-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.erp-page-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--erp-radius);
    background: linear-gradient(135deg, rgba(32, 107, 196, 0.12), rgba(66, 153, 225, 0.08));
    color: var(--erp-brand);
    font-size: 1.375rem;
    flex-shrink: 0;
}

.erp-page-header-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #0f172a;
}

.erp-page-header-subtitle {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.875rem;
}

/* ===== 面板卡片 ===== */
.erp-panel-card,
.erp-data-card {
    border: 0;
    border-radius: var(--erp-radius-lg);
    box-shadow: var(--erp-shadow);
    overflow: hidden;
    background: #fff;
}

.erp-panel-header {
    background: transparent;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1rem 1.25rem;
}

.erp-data-card .table thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #64748b;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.875rem 1rem;
}

.erp-data-card .table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.erp-data-card .table tbody tr:last-child td { border-bottom: 0; }
.erp-data-card .table tbody tr:hover { background: rgba(32, 107, 196, 0.03); }

/* ===== 工作台 Hero ===== */
.erp-hero {
    position: relative;
    border: 0;
    border-radius: var(--erp-radius-lg);
    overflow: hidden;
    box-shadow: var(--erp-shadow);
}

.erp-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, #1a4480 0%, #206bc4 40%, #4299e1 100%);
}

.erp-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 35%);
}

.erp-hero-bg::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.erp-hero-content {
    position: relative;
    z-index: 1;
    padding: 1.75rem 2rem;
    color: #fff;
}

.erp-hero-greeting {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.erp-hero-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
}

.erp-hero-desc {
    font-size: 0.9375rem;
    opacity: 0.88;
}

.erp-hero-sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.erp-hero-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.erp-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #64748b;
}

/* ===== 快捷入口卡片 ===== */
.erp-shortcut-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--erp-radius-lg);
    background: #fff;
    transition: transform var(--erp-transition), box-shadow var(--erp-transition), border-color var(--erp-transition);
    overflow: hidden;
    position: relative;
}

.erp-shortcut-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--erp-accent-color, var(--erp-brand));
    opacity: 0;
    transition: opacity var(--erp-transition);
}

.erp-shortcut-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--erp-shadow-lg);
    border-color: rgba(15, 23, 42, 0.08);
}

.erp-shortcut-card:hover::before { opacity: 1; }

.erp-shortcut-card .card-body {
    padding: 1.25rem;
    position: relative;
}

.erp-accent-green  { --erp-accent-color: #82c91e; }
.erp-accent-azure  { --erp-accent-color: #4dabf7; }
.erp-accent-orange { --erp-accent-color: #ff922b; }
.erp-accent-cyan   { --erp-accent-color: #22b8cf; }
.erp-accent-purple { --erp-accent-color: #cc5de8; }

.erp-shortcut-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 0.875rem;
    background: color-mix(in srgb, var(--erp-accent-color) 12%, transparent);
    color: var(--erp-accent-color);
}

.erp-shortcut-label {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.2rem;
    color: #0f172a;
}

.erp-shortcut-sub {
    font-size: 0.8125rem;
    color: #64748b;
}

.erp-shortcut-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 1.125rem;
    transition: transform var(--erp-transition), color var(--erp-transition);
}

.erp-shortcut-card:hover .erp-shortcut-arrow {
    transform: translateY(-50%) translateX(3px);
    color: var(--erp-accent-color);
}

/* ===== 快速查看列表 ===== */
.erp-quick-list .list-group-item { border-left: 0; border-right: 0; }
.erp-quick-list .list-group-item:first-child { border-top: 0; }

.erp-quick-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem !important;
    transition: background var(--erp-transition);
}

.erp-quick-item:hover { background: rgba(32, 107, 196, 0.04) !important; }

.erp-quick-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.erp-quick-icon-blue   { background: rgba(32, 107, 196, 0.1);  color: #206bc4; }
.erp-quick-icon-cyan   { background: rgba(21, 170, 191, 0.1); color: #15aabf; }
.erp-quick-icon-orange { background: rgba(247, 103, 7, 0.1);  color: #f76707; }
.erp-quick-icon-purple { background: rgba(174, 62, 201, 0.1); color: #ae3ec9; }

.erp-quick-text { font-weight: 500; flex: 1; }
.erp-quick-chevron { color: #cbd5e1; font-size: 1rem; transition: transform var(--erp-transition); }
.erp-quick-item:hover .erp-quick-chevron { transform: translateX(3px); color: #94a3b8; }

/* ===== 工作台统计卡片 ===== */
.erp-stats-section .col-xxl {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 1399.98px) {
    .erp-stats-section .col-xxl {
        width: 33.333333%;
    }
}

@media (max-width: 991.98px) {
    .erp-stats-section .col-xxl {
        width: 50%;
    }
}

.erp-stat-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--erp-radius-lg);
    background: #fff;
    transition: transform var(--erp-transition), box-shadow var(--erp-transition);
    overflow: hidden;
    position: relative;
}

.erp-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--erp-stat-color, var(--erp-brand));
}

.erp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--erp-shadow-lg);
}

.erp-stat-blue   { --erp-stat-color: #206bc4; }
.erp-stat-teal   { --erp-stat-color: #15aabf; }
.erp-stat-orange { --erp-stat-color: #f76707; }
.erp-stat-green  { --erp-stat-color: #82c91e; }
.erp-stat-purple { --erp-stat-color: #ae3ec9; }

.erp-stat-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.erp-stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    background: color-mix(in srgb, var(--erp-stat-color) 12%, transparent);
    color: var(--erp-stat-color);
}

.erp-stat-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0f172a;
}

.erp-stat-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.erp-stat-metric {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.erp-stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.erp-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.erp-stat-delta {
    display: inline-block;
    margin-top: 0.125rem;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.erp-stat-delta-up { color: #2fb344; }
.erp-stat-delta-down { color: #d63939; }
.erp-stat-delta-flat { color: #868e96; }

.erp-spin {
    animation: erp-spin 0.8s linear infinite;
}

@keyframes erp-spin {
    to { transform: rotate(360deg); }
}

[data-bs-theme="dark"] .erp-stat-card {
    background: #1a2332;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .erp-stat-title,
[data-bs-theme="dark"] .erp-stat-value {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .erp-stat-label {
    color: #94a3b8;
}

/* ===== 业务 iframe ===== */
.legacy-frame {
    width: 100%;
    min-height: calc(100dvh - 14rem);
    border: 0;
    display: block;
    background: #fff;
}

.erp-frame-header-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    margin: 0;
}

.legacy-frame-card { overflow: hidden; }

/* ===== 空状态 / 403 ===== */
.erp-empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.erp-empty-state .empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #94a3b8;
}

/* ===== 深色主题 ===== */
[data-bs-theme="dark"] {
    --erp-page-bg: #0c101a;
    --erp-page-bg2: #0f172a;
    --erp-sidebar-bg: #121a28;
    --erp-sidebar-bg2: #0a0e16;
    --erp-sidebar-fg: #f1f5f9;
    --erp-sidebar-fg-muted: rgba(255, 255, 255, 0.72);
    --erp-sidebar-border: rgba(255, 255, 255, 0.06);
    --erp-sidebar-hover: rgba(255, 255, 255, 0.06);
    --erp-sidebar-active-bg: rgba(255, 255, 255, 0.1);
    --erp-sidebar-glow: rgba(32, 107, 196, 0.14);
    --erp-sidebar-shadow: 4px 0 40px rgba(0, 0, 0, 0.28);
    --erp-sidebar-input-bg: rgba(255, 255, 255, 0.05);
    --erp-sidebar-input-border: rgba(255, 255, 255, 0.08);
    --erp-sidebar-scroll: rgba(255, 255, 255, 0.14);
}

[data-bs-theme="dark"] .erp-sidebar-search .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

[data-bs-theme="dark"] .erp-nav-home .erp-nav-rail-link.active {
    background: linear-gradient(180deg, rgba(32, 107, 196, 0.35) 0%, rgba(32, 107, 196, 0.08) 100%);
    color: #fff;
}

[data-bs-theme="dark"] .erp-nav-group.is-open > .erp-nav-rail-btn,
[data-bs-theme="dark"] .erp-nav-group.has-active > .erp-nav-rail-btn,
[data-bs-theme="dark"] .erp-nav-group.is-open > .erp-nav-group-toggle,
[data-bs-theme="dark"] .erp-nav-group.has-active > .erp-nav-group-toggle {
    color: #fff !important;
}

html[data-bs-theme="dark"] .erp-nav-flyout {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1);
    border-left: 0;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme="dark"] .erp-nav-flyout-body {
    background: #1e293b;
}

html[data-bs-theme="dark"] .erp-nav-flyout::before {
    border-right-color: #1e293b;
}

html[data-bs-theme="dark"] .erp-nav-group.is-open > .erp-nav-rail-btn {
    box-shadow: inset -2px 0 0 0 #1e293b;
}

html[data-bs-theme="dark"] .erp-nav-flyout-pointer {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] .erp-nav-flyout-title,
html[data-bs-theme="dark"] .erp-nav-flyout-heading {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .erp-nav-flyout-col {
    border-right-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .erp-flyout-link {
    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .erp-flyout-link::before {
    background: #64748b;
}

html[data-bs-theme="dark"] .erp-flyout-link:hover {
    background: rgba(66, 153, 225, 0.15);
    color: #93c5fd !important;
}

html[data-bs-theme="dark"] .erp-flyout-item.is-active .erp-flyout-link,
html[data-bs-theme="dark"] .erp-flyout-link.active {
    background: rgba(66, 153, 225, 0.2);
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .erp-app .page-body.erp-page-body {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(32, 107, 196, 0.08), transparent),
        linear-gradient(180deg, var(--erp-page-bg) 0%, var(--erp-page-bg2) 100%);
}

[data-bs-theme="dark"] .erp-tab-bar {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .erp-tab-item {
    color: #94a3b8;
}

[data-bs-theme="dark"] .erp-tab-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .erp-tab-item.is-active {
    background: var(--erp-page-bg);
    border-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--erp-page-bg);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .erp-tab-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .erp-tab-ctx {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .erp-tab-ctx-item {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .erp-tab-ctx-item:hover:not(:disabled) {
    background: rgba(66, 153, 225, 0.15) !important;
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .erp-tab-ctx-sep {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .erp-topbar {
    background: rgba(20, 28, 43, 0.92) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .erp-breadcrumb .breadcrumb-item.active { color: #e2e8f0; }
[data-bs-theme="dark"] .erp-breadcrumb-home { color: #94a3b8; }
[data-bs-theme="dark"] .erp-topbar-divider { background: rgba(255, 255, 255, 0.1); }
[data-bs-theme="dark"] .erp-user-trigger:hover { background: rgba(255, 255, 255, 0.06); }

[data-bs-theme="dark"] .erp-page-header-title { color: #f1f5f9; }
[data-bs-theme="dark"] .erp-page-header-subtitle { color: #94a3b8; }
[data-bs-theme="dark"] .erp-page-header-icon {
    background: linear-gradient(135deg, rgba(32, 107, 196, 0.2), rgba(66, 153, 225, 0.1));
}

[data-bs-theme="dark"] .erp-panel-card,
[data-bs-theme="dark"] .erp-data-card,
[data-bs-theme="dark"] .erp-shortcut-card {
    background: #1a2332;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .erp-panel-header { border-bottom-color: rgba(255, 255, 255, 0.06); }
[data-bs-theme="dark"] .erp-section-title { color: #94a3b8; }
[data-bs-theme="dark"] .erp-shortcut-label { color: #e2e8f0; }
[data-bs-theme="dark"] .erp-shortcut-sub { color: #94a3b8; }

[data-bs-theme="dark"] .erp-data-card .table thead th {
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .erp-data-card .table tbody td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .erp-data-card .table tbody tr:hover {
    background: rgba(32, 107, 196, 0.06);
}

[data-bs-theme="dark"] .erp-quick-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

[data-bs-theme="dark"] .erp-empty-state .empty-icon {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== 登录页 ===== */
.login-page {
    min-height: 100vh;
    background: #eef2f7;
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(32, 107, 196, 0.08), transparent),
        linear-gradient(180deg, #eef2f7 0%, #e4eaf2 100%);
    font-family: var(--erp-font);
}

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    position: relative;
}

.login-shell-toolbar {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
}

.login-card-unified {
    display: flex;
    width: 100%;
    max-width: 52rem;
    min-height: 28rem;
    border-radius: 1.125rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
    background: #fff;
}

.login-brand-panel {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, #152a4a 0%, #206bc4 50%, #4299e1 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    bottom: -3rem;
    right: -3rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 18rem;
    width: 100%;
    text-align: center;
}

.login-logo {
    display: block;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.login-brand-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.login-brand-company {
    font-size: 0.9375rem;
    opacity: 0.92;
    margin: 0;
    line-height: 1.5;
}

.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.75rem;
    background: #fff;
}

.login-form-inner {
    width: 100%;
    max-width: 22rem;
}

.login-form-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #0f172a;
}

.login-form-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

.login-form-panel .btn-primary {
    background: linear-gradient(135deg, var(--erp-brand), var(--erp-brand-light));
    border: 0;
    font-weight: 600;
    padding: 0.75rem;
    box-shadow: 0 4px 14px var(--erp-brand-glow);
    transition: transform var(--erp-transition), box-shadow var(--erp-transition);
}

.login-form-panel .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--erp-brand-glow);
}

.login-form-panel .input-group-flat > .input-group-text {
    padding: 0.5625rem 1rem 0.5625rem 0.875rem;
    min-width: 3rem;
    flex: 0 0 auto;
    border-right: 0;
}

.login-form-panel .input-group-text {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-form-panel .input-group-flat > .form-control {
    padding-left: 0.875rem;
}

.login-form-panel .input-group-text .ti {
    font-family: "tabler-icons" !important;
    font-size: 1.125rem;
    line-height: 1;
    width: 1.125rem;
    height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.login-form-panel .form-control:focus {
    border-color: var(--erp-brand-light);
    box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12);
}

[data-bs-theme="dark"] .login-form-panel .input-group-text {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

[data-bs-theme="dark"] .login-form-panel .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .login-form-panel .form-control::placeholder {
    color: #64748b;
}

[data-bs-theme="dark"] .login-form-panel .form-label {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .login-page {
    background: #0c101a;
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(32, 107, 196, 0.12), transparent),
        linear-gradient(180deg, #0c101a 0%, #0f172a 100%);
}

[data-bs-theme="dark"] .login-card-unified {
    background: #1a2332;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .login-form-panel {
    background: #1a2332;
}

[data-bs-theme="dark"] .login-form-title {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .login-form-subtitle {
    color: #94a3b8;
}

@media (max-width: 767.98px) {
    .login-shell {
        padding: 1.25rem 1rem 2rem;
        justify-content: flex-start;
        padding-top: 4rem;
    }

    .login-card-unified {
        flex-direction: column;
        min-height: auto;
        max-width: 24rem;
    }

    .login-brand-panel {
        flex: none;
        padding: 1.75rem 1.5rem;
        text-align: center;
    }

    .login-brand-inner {
        max-width: none;
    }

    .login-logo {
        margin-left: auto;
        margin-right: auto;
        width: 56px;
        height: 56px;
    }

    .login-brand-title {
        font-size: 1.375rem;
    }

    .login-form-panel {
        padding: 1.75rem 1.5rem 2rem;
    }

    .login-form-inner {
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .legacy-frame { min-height: calc(100dvh - 10rem); }
    .erp-main-content { padding-top: 1rem; }
    .erp-hero-content { padding: 1.35rem 1.25rem; }
    .erp-hero-title { font-size: 1.375rem; }
}

/* ===== 顶栏商品库存快搜 ===== */
.erp-goods-search {
    position: relative;
    width: 15.5rem;
}

.erp-goods-search .input-group {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 0.5rem;
    overflow: hidden;
}

.erp-goods-search .form-control {
    border: 0;
    background: transparent;
    min-width: 0;
}

.erp-goods-search .input-group-text {
    border: 0;
    background: transparent;
    color: #94a3b8;
}

.erp-goods-search .btn {
    border-radius: 0;
}

.erp-goods-search-drop {
    display: block;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 16rem;
    overflow: auto;
    padding: 0.35rem 0;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.5rem;
    box-shadow: var(--erp-shadow-lg);
}

.erp-goods-search-drop .dropdown-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8125rem;
}

[data-bs-theme="dark"] .erp-goods-search .input-group {
    background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .erp-goods-search-drop {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

/* ===== 主题切换（加强可见度）：彩色图标 + 文字标签 + 强调边框 ===== */
.erp-theme-switcher--topbar .erp-theme-trigger {
    width: auto;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.7rem;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--tblr-body-color);
    border: 1px solid rgba(32, 107, 196, 0.45);
    background: rgba(32, 107, 196, 0.1);
}
.erp-theme-switcher--topbar .erp-theme-trigger-icon { font-size: 1.5rem; }
.erp-theme-switcher--topbar .erp-theme-trigger-icon .ti-sun { color: #f08c00; }
.erp-theme-switcher--topbar .erp-theme-trigger-icon .ti-moon { color: #5c7cfa; }
.erp-theme-switcher--topbar .erp-theme-trigger-icon .ti-device-desktop { color: #206bc4; }
.erp-theme-switcher--topbar .erp-theme-trigger:hover {
    background: rgba(32, 107, 196, 0.2);
    border-color: #206bc4;
    color: var(--tblr-body-color);
}
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger {
    color: #e2e8f0;
    border-color: rgba(116, 192, 252, 0.55);
    background: rgba(116, 192, 252, 0.14);
}
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger:hover {
    background: rgba(116, 192, 252, 0.26);
    border-color: #74c0fc;
    color: #fff;
}
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger-icon .ti-sun { color: #ffd43b; }
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger-icon .ti-moon { color: #91a7ff; }
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger-icon .ti-device-desktop { color: #74c0fc; }

/* 侧栏品牌区只显示系统 Logo */
.erp-sidebar-brand-link { justify-content: center; }
.erp-sidebar-logo { width: 2.5rem; height: 2.5rem; }
.erp-sidebar-offcanvas .erp-sidebar-brand-link { justify-content: center; }

/* ===== 主题切换：单个图标按钮，图标随当前模式变化，点击展开下拉 ===== */
.erp-theme-switcher--topbar .erp-theme-trigger.erp-theme-trigger-icononly {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
}
.erp-theme-switcher--topbar .erp-theme-trigger-icononly:hover,
.erp-theme-switcher--topbar .erp-theme-trigger-icononly.show {
    background: rgba(32, 107, 196, 0.12);
}
.erp-theme-switcher--topbar .erp-theme-trigger-icononly .erp-theme-trigger-icon { font-size: 1.35rem; line-height: 1; }
.erp-theme-switcher--topbar .erp-theme-trigger-icononly .ti-sun { color: #f08c00; }
.erp-theme-switcher--topbar .erp-theme-trigger-icononly .ti-moon-stars { color: #5c7cfa; }
.erp-theme-switcher--topbar .erp-theme-trigger-icononly .ti-sun-moon { color: #206bc4; }
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger-icononly:hover,
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger-icononly.show {
    background: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger-icononly .ti-sun { color: #ffd43b; }
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger-icononly .ti-moon-stars { color: #91a7ff; }
[data-bs-theme="dark"] .erp-theme-switcher--topbar .erp-theme-trigger-icononly .ti-sun-moon { color: #74c0fc; }

/* 手机版入口 */
.erp-mobile-entry-btn { display: inline-flex; align-items: center; font-weight: 600; }
.erp-mobile-entry-menu { min-width: 17rem; max-width: 19rem; }
.erp-mobile-qr { width: 9.5rem; height: 9.5rem; background: #fff; border-radius: 0.5rem; padding: 0.25rem; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #64748b; text-align: center; }
.erp-mobile-qr svg { width: 100%; height: 100%; display: block; }

/* 顶栏精简：打卡只留图标，预警角标 */
.erp-topbar .erp-punch-group--compact .erp-punch-label { display: none; }
.erp-topbar .erp-punch-group--compact .erp-punch-btn { padding-left: 0.5rem; padding-right: 0.5rem; }
.erp-topbar .erp-punch-group--compact .erp-punch-btn .ti { margin-right: 0 !important; font-size: 1.25rem; }
.erp-warn-link .badge-notification { position: absolute; top: 2px; right: 0; min-width: 1.1rem; height: 1.1rem; padding: 0 0.25rem; font-size: 0.65rem; line-height: 1.1rem; }
.erp-warn-link .ti { color: #f59f00; }

/* 工作台欢迎区：实时时间 + 打卡按钮（蓝色渐变底上始终清晰，浅色/深色主题通用） */
.erp-hero-time {
    margin-left: 0.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.erp-punch-group-hero .erp-punch-btn.erp-hero-punch {
    background: #fff;
    color: #1a4480;
    border: 0;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(8, 28, 64, 0.28);
}
.erp-punch-group-hero .erp-punch-btn.erp-hero-punch:hover:not(:disabled) {
    background: #fff7e0;
    color: #0f2f63;
    transform: translateY(-1px);
}
.erp-punch-group-hero .erp-punch-btn.erp-hero-punch .ti { font-size: 1.1rem; color: #f08c00; }
.erp-punch-group-hero .erp-punch-btn.erp-hero-punch.is-done,
.erp-punch-group-hero .erp-punch-btn.erp-hero-punch:disabled {
    background: #2fb344;
    color: #fff;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(8, 64, 24, 0.3);
}
.erp-punch-group-hero .erp-punch-btn.erp-hero-punch.is-done .ti,
.erp-punch-group-hero .erp-punch-btn.erp-hero-punch:disabled .ti { color: #fff; }
