/* ==================== 基础变量与重置 ==================== */
        :root {
            /* === V11.0 Design System: Soft UI Evolution + Healthcare SaaS === */
            --primary-color: #0891B2;
            --primary-light: #22D3EE;
            --primary-dark: #0E7490;
            --cta-color: #059669;
            --bg-light: #ECFEFF;
            --bg-white: #FFFFFF;
            --bg-body: #F0FDFA;
            --text-dark: #164E63;
            --text-light: #64748B;
            --text-muted: #94A3B8;
            --border-color: #A5F3FC;
            --border-light: rgba(165,243,252,0.3);

            /* 阴影系统 - 4级深度 */
            --shadow-xs: 0 1px 2px rgba(8,145,178,0.04);
            --shadow: 0 2px 8px rgba(8,145,178,0.06), 0 1px 2px rgba(8,145,178,0.04);
            --shadow-md: 0 4px 16px rgba(8,145,178,0.08), 0 2px 4px rgba(8,145,178,0.04);
            --shadow-hover: 0 8px 24px rgba(8,145,178,0.12), 0 2px 8px rgba(8,145,178,0.06);
            --shadow-lg: 0 12px 40px rgba(8,145,178,0.14), 0 4px 12px rgba(8,145,178,0.08);

            /* 圆角系统 */
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
            --radius-xl: 20px;

            /* 阶段颜色 - 差异化 */
            --discovery-color: #F5F3FF;
            --discovery-accent: #8B5CF6;
            --preclinical-color: #ECFEFF;
            --preclinical-accent: #0891B2;
            --clinical-color: #F0FDF4;
            --clinical-accent: #059669;
            --clinical-light: #DCFCE7;
            --registration-color: #FFFBEB;
            --registration-accent: #D97706;
            --postmarket-color: #EFF6FF;
            --postmarket-accent: #0284C7;
            --operation-color: #F8FAFC;
            --operation-accent: #475569;

            /* 临床阶段颜色 */
            --phase1-color: #ECFEFF;
            --phase1-accent: #0891B2;
            --phase2-color: #F0FDF4;
            --phase2-accent: #059669;
            --phase3-color: #FEF3C7;
            --phase3-accent: #D97706;

            /* 状态颜色 */
            --success-color: #059669;
            --warning-color: #D97706;
            --danger-color: #DC2626;
            --highlight-bg: #FEF9C3;
        }

// V8.0.0-0: 创建新客户（从智能选择器）

        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
            margin: 0;
            padding: 0;
        }
        
        body {
            margin: 0;
            padding: 0;
            font-family: 'Poppins', 'Open Sans', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
            background: var(--bg-body);
            background-image:
                radial-gradient(ellipse at 15% 50%, rgba(8,145,178,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 85% 20%, rgba(5,150,105,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(139,92,246,0.02) 0%, transparent 50%);
            background-attachment: fixed;
            color: var(--text-dark);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        :root {
            --app-topbar-height: 48px;
        }

        /* ==================== SPA页面容器 ==================== */
        .page {
            display: none;
        }
        
        .page.active {
            display: flex;
            flex-direction: column;
            flex: 1;
            margin: 0;
            padding: 0;
            background: transparent;
        }
        
        /* ==================== 侧边栏 ==================== */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            width: 240px;
            background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
            border-right: none;
            box-shadow: 4px 0 24px rgba(0,0,0,0.15);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            overflow-x: hidden;
            transition: width 0.3s ease;
        }
        .sidebar::-webkit-scrollbar { width: 4px; }
        .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
        .sidebar-logo {
            padding: 18px 16px;
            height: 72px;
            box-sizing: border-box;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sidebar-logo-mark {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: linear-gradient(135deg, #0891B2, #22D3EE);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            color: white;
            flex-shrink: 0;
        }
        .sidebar-logo img {
            max-width: 150px;
            height: auto;
            transition: max-width 0.3s;
        }
        .sidebar-logo .sidebar-title {
            color: #E2E8F0;
            font-size: 15px;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: opacity 0.2s;
        }
        .sidebar-collapse-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            color: #9CA3AF;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 12px;
        }
        .sidebar-collapse-btn:hover {
            background: rgba(255,255,255,0.08);
            color: #E2E8F0;
        }
        /* 侧边栏收起状态 - 图标模式 */
        .sidebar.collapsed { width: 64px; }
        .sidebar.collapsed .sidebar-title { opacity: 0; width: 0; overflow: hidden; margin: 0; }
        .sidebar.collapsed .sidebar-logo-mark { display: none; }
        .sidebar.collapsed .sidebar-logo { justify-content: center; padding: 10px 0; }
        .sidebar.collapsed .sidebar-collapse-btn { position: static; transform: none; }
        .sidebar.collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }
        .sidebar.collapsed .sidebar-sub-nav,
        .sidebar.collapsed .sidebar-sub-item,
        .sidebar.collapsed .sidebar-nav-item span,
        .sidebar.collapsed .sidebar-nav-item .sidebar-arrow { display: none; }
        .sidebar.collapsed .sidebar-nav-item { justify-content: center; padding: 12px; }
        .sidebar.collapsed .sidebar-nav-item i { margin: 0; }
        .sidebar.collapsed .sidebar-expandable .has-sub { justify-content: center; }
        body.sidebar-collapsed .topbar { left: 64px; }
        body.sidebar-collapsed .main-container { margin-left: 64px; }
        .sidebar-nav {
            flex: 1;
            overflow-y: auto;
            padding: 8px 0;
        }
        .sidebar-footer {
            border-top: 1px solid rgba(255,255,255,0.06);
            padding: 10px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(15,23,42,0.6);
        }
        .sidebar-user-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            min-width: 0;
            position: relative;
            cursor: pointer;
        }
        .sidebar-user-row .user-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: box-shadow 0.2s;
            border: 2px solid rgba(255,255,255,0.15);
            flex-shrink: 0;
        }
        .sidebar-user-row .user-avatar:hover { box-shadow: 0 0 0 3px rgba(34,211,238,0.2); }
        .sidebar-user-row .user-name {
            color: #CBD5E1;
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
        }
        .sidebar-user-row .user-role-chip {
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.4;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .sidebar-bell {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            color: #9CA3AF;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            flex-shrink: 0;
        }
        .sidebar-bell:hover { background: rgba(255,255,255,0.06); color: #E2E8F0; }
        .sidebar-bell .bell-dot {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ef4444;
            border: 1.5px solid #FFFFFF;
        }
        /* 侧边栏收起时 */
        .sidebar.collapsed .sidebar-footer { justify-content: center; padding: 8px 0; }
        .sidebar.collapsed .sidebar-user-row { justify-content: center; }
        .sidebar.collapsed .sidebar-user-row .user-name,
        .sidebar.collapsed .sidebar-user-row .user-role-chip { display: none; }
        .sidebar.collapsed .sidebar-bell { display: none; }
        .sidebar-nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            margin: 1px 8px;
            height: 40px;
            box-sizing: border-box;
            color: #94A3B8;
            font-size: 13.5px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 8px;
            border-left: none;
            text-decoration: none;
            position: relative;
            letter-spacing: 0.01em;
        }
        .sidebar-nav-item:hover {
            background: rgba(255,255,255,0.05);
            color: #E2E8F0;
        }
        .sidebar-nav-item.active {
            background: rgba(6,182,212,0.12);
            color: #22D3EE;
            font-weight: 600;
        }
        .sidebar-nav-item.active::before {
            content: '';
            position: absolute;
            left: -8px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 55%;
            border-radius: 0 4px 4px 0;
            background: #06B6D4;
        }
        .sidebar-nav-item i {
            width: 20px;
            text-align: center;
            font-size: 14px;
            opacity: 0.85;
        }
        .sidebar-nav-item.active i { opacity: 1; }
        .sidebar-nav-item .sidebar-arrow {
            margin-left: auto;
            font-size: 10px;
            transition: transform 0.2s;
            opacity: 0.5;
        }
        .sidebar-nav-item.expanded .sidebar-arrow {
            transform: rotate(180deg);
        }
        .sidebar-expandable .sidebar-nav-item.has-sub {
            border-radius: 8px;
        }
        .sidebar-expandable.open > .sidebar-nav-item.has-sub {
            color: #22D3EE;
            background: rgba(6,182,212,0.08);
        }
        .sidebar-sub-nav {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.25s ease;
        }
        .sidebar-expandable.open > .sidebar-sub-nav {
            max-height: 500px;
        }
        .sidebar-sub-item {
            display: block;
            padding: 6px 16px 6px 46px;
            color: #64748B;
            font-size: 12.5px;
            cursor: pointer;
            transition: all 0.15s ease;
            text-decoration: none;
            white-space: nowrap;
            border-radius: 6px;
            margin: 0 8px;
            line-height: 1.4;
        }
        .sidebar-sub-item:hover {
            color: #CBD5E1;
            background: rgba(255,255,255,0.04);
        }
        .sidebar-sub-item.active {
            color: #22D3EE;
            background: rgba(6,182,212,0.08);
            font-weight: 500;
        }

        /* ==================== 顶部工具栏 ==================== */
        .topbar {
            position: fixed;
            top: 0;
            left: 240px;
            right: 0;
            height: var(--app-topbar-height);
            box-sizing: border-box;
            background: transparent;
            z-index: 999;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            padding: 8px 24px 0;
            transition: all 0.3s ease;
            pointer-events: none;
        }
        .topbar.scrolled {
            background: transparent;
            backdrop-filter: none;
            box-shadow: none;
        }
        .topbar.hidden-on-scroll {
            opacity: 0;
            transform: translateY(-14px);
            visibility: hidden;
            pointer-events: none;
        }
        .topbar-left {
            font-size: 12px;
            color: #6b7280;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            min-height: 28px;
            pointer-events: auto;
        }
        .mobile-menu-btn {
            flex: 0 0 40px;
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            color: #475569;
            text-decoration: none;
            position: relative;
            z-index: 2;
        }
        .topbar-breadcrumb {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .topbar-logo {
            height: 18px;
            width: auto;
            flex-shrink: 0;
            margin-right: 2px;
            filter: drop-shadow(0 0 2px rgba(255,255,255,0.9)) drop-shadow(0 0 6px rgba(255,255,255,0.5));
            transition: all 0.4s ease;
        }
        .topbar-logo { display: none; }
        .topbar-breadcrumb {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            line-height: 1;
        }
.topbar.scrolled .topbar-logo {
            filter: none;
        }
        .topbar-breadcrumb a,
        .topbar-breadcrumb-link {
            color: #64748B;
            text-decoration: none;
            cursor: pointer;
        }
        .topbar-breadcrumb-link {
            appearance: none;
            border: 0;
            background: transparent;
            padding: 0;
            font: inherit;
        }
        .topbar-breadcrumb a:hover,
        .topbar-breadcrumb-link:hover { color: #0891B2; }
        .topbar-breadcrumb-link:focus-visible {
            outline: 2px solid rgba(8,145,178,0.35);
            outline-offset: 3px;
            border-radius: 4px;
        }
        .topbar-breadcrumb .bc-sep { color: #CBD5E1; margin: 0 2px; }
        .topbar-breadcrumb .bc-current { color: #0891B2; font-weight: 600; }
        @media (max-width: 520px) {
            .topbar-logo, .topbar-breadcrumb { display: none !important; }
        }
        .cr-detail-header > div:first-child,
        .cr-detail-page-v2 > .cr-breadcrumb,
        .cr-page-header > div:first-child,
        .cr-page > div:first-child > div:first-child,
        .clinical-detail-breadcrumb,
        .cr-detail-breadcrumb-v2,
        .ops-sub-breadcrumb {
            display: none !important;
        }
        .topbar-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .topbar-search {
            position: relative;
        }
        .topbar-search i {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 13px;
        }
        .topbar-search input {
            width: 200px;
            padding: 6px 12px 6px 34px;
            border: 1px solid rgba(255,255,255,0.6);
            border-radius: 20px;
            font-size: 13px;
            outline: none;
            transition: all 0.2s;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(8px);
        }
        .topbar-search input::placeholder { color: #9ca3af; }
        .topbar-search input:focus {
            border-color: rgba(8,145,178,0.4);
            background: rgba(255,255,255,0.9);
            box-shadow: 0 2px 8px rgba(8,145,178,0.1);
        }

        /* ==================== 主容器 ==================== */
        .main-container {
            padding-top: var(--app-topbar-height);
            margin-left: 240px;
            margin-top: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background: #f4f7fa;
            transition: margin-left 0.3s ease;
        }
        .main-container > .page.active > .module-hero:first-child {
            margin-top: calc(var(--app-topbar-height) * -1);
        }
        
        /* ==================== Hero区域 ==================== */
        .hero {
            background: linear-gradient(135deg, #0891B2 0%, #0E7490 40%, #065F46 100%);
            color: white;
            padding: 128px 24px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 30% 70%, rgba(34,211,238,0.15) 0%, transparent 50%),
                        radial-gradient(circle at 70% 30%, rgba(5,150,105,0.15) 0%, transparent 50%);
            animation: heroGlow 8s ease-in-out infinite alternate;
        }
        @keyframes heroGlow {
            0% { transform: translate(0, 0) rotate(0deg); }
            100% { transform: translate(-2%, -2%) rotate(3deg); }
        }
        
        .hero h1 {
            font-size: 42px;
            font-weight: 700;
            margin-bottom: 16px;
            letter-spacing: -0.5px;
            position: relative;
            z-index: 1;
        }
        
        .hero p {
            font-size: 18px;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto 40px;
            position: relative;
            z-index: 1;
        }
        
        .hero-search {
            max-width: 500px;
            margin: 0 auto;
            display: flex;
            gap: 12px;
            position: relative;
            z-index: 1;
        }
        
        .hero-search input {
            flex: 1;
            padding: 14px 20px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            outline: none;
        }
        
        .hero-search button {
            padding: 14px 28px;
            background: white;
            color: var(--primary-color);
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .hero-search button:hover {
            transform: scale(1.05);
        }
        
        /* ==================== 流程图 ==================== */
        .pipeline-section {
            padding: 60px 24px;
            background: var(--bg-white);
        }
        
        .section-title {
            text-align: center;
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 40px;
            color: var(--text-dark);
            letter-spacing: -0.3px;
        }
        
        .pipeline-flow {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .pipeline-stage {
            padding: 20px 14px 16px;
            border-radius: 12px;
            text-align: center;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
            cursor: pointer;
            position: relative;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        
        .pipeline-step-num {
            position: absolute;
            top: 6px;
            right: 8px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-light);
            opacity: 0.4;
        }
        
        .pipeline-flow-arrow {
            display: block;
            margin-top: 8px;
            font-size: 12px;
            color: var(--text-light);
            opacity: 0.5;
        }
        
        .pipeline-stage:last-child .pipeline-flow-arrow {
            display: none;
        }
        
        .pipeline-stage:hover {
            cursor: pointer;
            transform: translateY(-3px) scale(1.02);
            box-shadow: var(--shadow-hover);
        }
        
        .pipeline-arrow {
            display: none;
        }
        
        .pipeline-arrow {
            color: var(--text-light);
            font-size: 20px;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }
        
        /* ==================== 快速导航卡片 ==================== */
        .quick-nav {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px 60px;
        }
        
        .quick-card {
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 14px;
            padding: 24px;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
            border-left: 4px solid;
            border: 1px solid var(--border-light);
            border-left: 4px solid;
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .quick-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
            border-color: var(--primary-light);
            background: rgba(255,255,255,0.95);
        }
        
        .quick-card h3 {
            font-size: 18px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .quick-card p {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 16px;
        }
        
        .quick-card .enter-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .quick-card:hover .enter-btn {
            transform: translateX(5px);
        }
        
        /* ==================== AI岗位推荐 ==================== */
        .ai-recommendation {
            padding: 60px 24px;
            background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
        }
        
        .role-selector {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 40px;
        }
        
        .role-btn {
            padding: 10px 20px;
            border: 2px solid var(--border-color);
            background: var(--bg-white);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .role-btn:hover, .role-btn.active {
            border-color: var(--primary-color);
            background: var(--primary-color);
            color: white;
            box-shadow: 0 4px 12px rgba(8,145,178,0.3);
            transform: translateY(-1px);
        }
        
        .recommendation-result {
            max-width: 900px;
            margin: 0 auto;
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border-light);
            border-radius: 16px;
            padding: 32px;
            box-shadow: var(--shadow-md);
            display: none;
        }
        
        .recommendation-result.show {
            display: block;
            animation: fadeIn 0.5s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .recommendation-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
        }
        
        .recommend-item {
            padding: 16px;
            background: var(--bg-light);
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .recommend-item i {
            width: 36px;
            height: 36px;
            background: var(--primary-color);
            color: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* ==================== 面包屑导航 ==================== */
        .breadcrumb {
            background: var(--bg-white);
            padding: 8px 24px;
            font-size: 14px;
            box-shadow: var(--shadow);
        }
        
        .breadcrumb a {
            color: var(--text-light);
            text-decoration: none;
            cursor: pointer;
        }
        
        .breadcrumb a:hover {
            color: var(--primary-color);
        }
        
        .breadcrumb span {
            color: var(--text-light);
            margin: 0 8px;
        }
        
        .breadcrumb strong {
            color: var(--primary-color);
        }
        
        /* ==================== 返回首页 ==================== */
        .back-home {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 13px;
            margin-bottom: 8px;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        /* ==================== 模块区域 ==================== */
        .module-section {
            padding: 12px 24px 24px;
        }
        
        .module-header {
            text-align: center;
            margin-bottom: 12px;
        }
        
        .module-header h1 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .module-header p {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 0;
        }
        
        /* Tab导航 */
        .tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .tab-btn {
            padding: 12px 24px;
            border: none;
            background: var(--bg-white);
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            box-shadow: var(--shadow);
        }
        
        .tab-btn:hover {
            transform: translateY(-2px);
        }
        
        .tab-btn.active {
            color: white;
        }
        
        .tab-content {
            display: none;
            animation: fadeIn 0.5s;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* 期别切换Tab */
        .phase-tabs {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-bottom: 32px;
        }
        
        .phase-tab {
            padding: 16px 40px;
            background: var(--bg-white);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .phase-tab:hover {
            border-color: var(--clinical-accent);
        }
        
        .phase-tab.active {
            color: white;
            border-color: transparent;
        }
        
        .phase-content {
            display: none;
        }
        
        .phase-content.active {
            display: block;
        }
        
        /* 时间轴 */
        .timeline {
            position: relative;
            padding: 20px 0;
            margin-top: 24px;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--border-color);
            transform: translateY(-50%);
        }
        
        .timeline-items {
            display: flex;
            justify-content: space-between;
            position: relative;
            overflow-x: auto;
            padding: 10px 0;
        }
        
        .timeline-item {
            flex: 1;
            min-width: 100px;
            text-align: center;
            position: relative;
            cursor: pointer;
        }
        
        .timeline-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin: 0 auto 8px;
            position: relative;
            z-index: 1;
            transition: all 0.3s;
        }
        
        .timeline-item:hover .timeline-dot {
            transform: scale(1.3);
        }
        
        .timeline-item.active .timeline-dot {
            box-shadow: 0 0 0 4px rgba(156, 39, 176, 0.2);
        }
        
        .timeline-label {
            font-size: 12px;
            color: var(--text-dark);
            font-weight: 500;
        }
        
        .timeline-detail {
            display: none;
            background: var(--bg-white);
            border-radius: 8px;
            padding: 16px;
            margin-top: 12px;
            text-align: left;
            box-shadow: var(--shadow);
        }
        
        .timeline-item.active .timeline-detail {
            display: block;
        }
        
        /* 三栏布局 */
        .three-columns {
            display: grid;
            grid-template-columns: 1fr 1.2fr 1fr;
            gap: 24px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .column-card {
            background: var(--bg-white);
            border-radius: 12px;
            padding: 16px;
            box-shadow: var(--shadow);
        }
        
        .column-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .column-title i {
            color: var(--primary-color);
        }
        
        /* 表单样式 */
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-group label {
            display: block;
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 6px;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 80px;
        }
        
        /* AI处理区 */
        .ai-processing {
            text-align: center;
            padding: 20px 20px;
        }
        
        .ai-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            animation: float 3s ease-in-out infinite;
        }
        
        .ai-icon i {
            font-size: 36px;
            color: white;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        .ai-status {
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 16px;
        }
        
        .ai-progress {
            height: 6px;
            background: var(--bg-light);
            border-radius: 3px;
            overflow: hidden;
        }
        
        .ai-progress-bar {
            height: 100%;
            border-radius: 3px;
            width: 0%;
            transition: width 0.5s;
        }
        
        .ai-features {
            margin-top: 24px;
            text-align: left;
        }
        
        .ai-feature-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 8px;
            border-radius: 8px;
            margin-bottom: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .ai-feature-item:hover {
            transform: translateX(5px);
        }
        
        .ai-feature-content {
            display: none;
            padding: 12px;
            background: var(--bg-white);
            border-radius: 6px;
            margin-top: 8px;
            font-size: 13px;
            color: var(--text-light);
        }
        
        .ai-feature-item.expanded .ai-feature-content {
            display: block;
        }
        
        /* 文献列表 */
        .literature-list {
            text-align: left;
        }
        
        .literature-item {
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            font-size: 13px;
        }
        
        .literature-item h4 {
            font-size: 14px;
            margin-bottom: 6px;
        }
        
        .literature-item p {
            color: var(--text-light);
        }
        
        .literature-tag {
            display: inline-block;
            padding: 2px 8px;
            color: white;
            border-radius: 4px;
            font-size: 11px;
            margin-top: 6px;
        }
        
        /* 折叠面板 */
        .collapse-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .collapse-header i {
            transition: transform 0.3s;
        }
        
        .collapse-content {
            display: none;
            padding: 16px;
            background: var(--bg-white);
            border-radius: 8px;
            margin-top: 8px;
        }
        
        .collapse-item.expanded .collapse-header i {
            transform: rotate(180deg);
        }
        
        .collapse-item.expanded .collapse-content {
            display: block;
        }
        
        /* 输出区域 */
        .output-section {
            margin-bottom: 16px;
        }
        
        .output-item {
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .output-item:hover {
            background: var(--bg-light);
        }
        
        .output-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .output-content {
            display: none;
            padding: 12px;
            background: var(--bg-white);
            border-radius: 6px;
            margin-top: 10px;
            font-size: 13px;
        }
        
        .output-item.expanded .output-content {
            display: block;
        }
        
        .output-badge {
            display: inline-block;
            padding: 2px 8px;
            background: #E8F5E9;
            color: #4CAF50;
            border-radius: 4px;
            font-size: 11px;
            margin-left: 8px;
        }
        
        .placeholder-text {
            color: var(--text-light);
            font-style: italic;
            padding: 20px;
            text-align: center;
            border-radius: 8px;
            font-size: 13px;
        }
        
        /* 导出按钮 */
        .export-btns {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        
        .export-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        .export-btn.pdf {
            background: #FF5252;
            color: white;
        }
        
        .export-btn.word {
            background: #0891B2;
            color: white;
        }
        
        .export-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        /* 监控面板 */
        .monitor-panel {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
            margin-bottom: 16px;
        }
        
        .monitor-card {
            background: var(--bg-white);
            border-radius: 8px;
            padding: 16px;
            text-align: center;
        }
        
        .monitor-card h4 {
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 8px;
        }
        
        .monitor-value {
            font-size: 28px;
            font-weight: 600;
        }
        
        .monitor-card.warning .monitor-value {
            color: #FF9800;
        }
        
        .monitor-card.danger .monitor-value {
            color: #F44336;
        }
        
        /* 任务列表 */
        .task-list {
            list-style: none;
        }
        
        .task-list li {
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }
        
        .task-list li:last-child {
            border-bottom: none;
        }
        
        .task-status {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }
        
        .task-status.complete {
            background: #4CAF50;
        }
        
        .task-status.progress {
            background: #FF9800;
        }
        
        .task-status.pending {
            background: #9E9E9E;
        }
        
        /* 综合管理卡片网格 */
        .operation-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 24px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .operation-card {
            background: var(--bg-white);
            border-radius: 12px;
            padding: 24px;
            box-shadow: var(--shadow);
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .operation-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .operation-card h3 {
            font-size: 18px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .operation-card h3 i {
            color: var(--operation-accent);
        }
        
        .operation-desc {
            color: var(--text-light);
            font-size: 14px;
            margin-bottom: 16px;
        }
        
        .operation-detail {
            display: none;
            padding: 16px;
            border-radius: 8px;
            margin-top: 16px;
        }
        
        .operation-card.expanded .operation-detail {
            display: block;
        }
        
        /* AI功能说明卡片 */
        .ai-info-card {
            color: white;
            border-radius: 12px;
            padding: 20px;
            margin: 40px auto 0;
            max-width: 1200px;
        }
        
        .ai-info-card h4 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        
        .ai-info-card p {
            font-size: 14px;
            opacity: 0.9;
        }
        
        /* 帮助提示 */
        .help-tip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            background: var(--border-color);
            border-radius: 50%;
            font-size: 11px;
            color: var(--text-light);
            cursor: help;
            position: relative;
        }
        
        .help-tip:hover::after {
            content: attr(data-tip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            padding: 8px 12px;
            background: var(--text-dark);
            color: white;
            font-size: 12px;
            border-radius: 6px;
            white-space: nowrap;
            z-index: 100;
        }
        
        /* 滚动动画 */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease-out;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* 返回顶部 */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: var(--shadow);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 999;
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-5px);
        }
        
        /* Footer */
        .footer {
            background: #f0f4f2;
            color: #9ca3af;
            padding: 12px 24px;
            text-align: center;
            margin-top: auto;
            font-size: 11px;
        }
        
        .footer p {
            opacity: 0.7;
            font-size: 11px;
            margin: 2px 0;
        }
        
        /* 移动端适配 */
        @media (max-width: 1200px) {
            .pipeline-flow {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }
            
            .pipeline-flow-arrow {
                display: none;
            }
            
            .hero h1 {
                font-size: 28px;
            }
            
            .three-columns {
                grid-template-columns: 1fr;
            }
            
            .tabs, .phase-tabs {
                flex-direction: column;
                align-items: stretch;
            }
            
            .operation-grid {
                grid-template-columns: 1fr;
            }
            
            .timeline-items {
                flex-wrap: wrap;
                gap: 16px;
            }
            
            .timeline-item {
                flex: 0 0 calc(33.333% - 12px);
            }
        }
        
        /* 移动端顶栏用户头像 */
.topbar-user-mobile { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; transition: all 0.2s; }
.topbar-user-mobile i { font-size: 24px; color: white; }
.topbar.scrolled .topbar-user-mobile i { color: #6b7280; }
.topbar-user-mobile-menu { position: absolute; top: 48px; right: 8px; background: white; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.15); min-width: 200px; z-index: 10001; display: none; overflow: hidden; border: 1px solid #e5e7eb; }
.topbar-user-mobile-menu.show { display: block; animation: fadeIn 0.15s ease; }

    @media (max-width: 768px) {
    .topbar-user-mobile { display: flex !important; }
            .quick-nav {
                grid-template-columns: 1fr;
            }
            
            .module-header h1 {
                font-size: 24px;
            }
            
            .export-btns {
                flex-direction: column;
            }
            
            .monitor-panel {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* ==================== 临床研究页面新增样式 ==================== */
        
        /* ==================== 面包屑导航 ==================== */
        .breadcrumb {
            background: var(--bg-white);
            padding: 12px 24px;
            font-size: 14px;
            box-shadow: var(--shadow);
        }
        
        .breadcrumb a {
            color: var(--text-light);
            text-decoration: none;
        }
        
        .breadcrumb a:hover {
            color: var(--clinical-accent);
        }
        
        .breadcrumb span {
            color: var(--text-light);
            margin: 0 8px;
        }
        
        .breadcrumb strong {
            color: var(--clinical-accent);
        }
        
        /* ==================== 模块区域 ==================== */
        .module-section {
            padding: 24px;
            max-width: 1600px;
            margin: 0 auto;
        }
        
        .module-header {
            text-align: center;
            margin-bottom: 32px;
        }
        
        .module-header h1 {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-dark);
        }
        
        .module-header p {
            color: var(--text-light);
            font-size: 14px;
        }
        
        /* ==================== 大Tab切换 ==================== */
        .phase-tabs {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 32px;
        }
        
        .phase-tab {
            padding: 16px 48px;
            background: var(--bg-white);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .phase-tab:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        
        .phase-tab.active.phase1 {
            background: var(--phase1-accent);
            color: white;
            border-color: var(--phase1-accent);
        }
        
        .phase-tab.active.phase2 {
            background: var(--phase2-accent);
            color: white;
            border-color: var(--phase2-accent);
        }
        
        .phase-tab.active.phase3 {
            background: var(--phase3-accent);
            color: white;
            border-color: var(--phase3-accent);
        }
        
        .phase-tab .tab-icon {
            font-size: 20px;
        }
        
        .phase-tab .tab-desc {
            font-size: 12px;
            font-weight: 400;
            opacity: 0.8;
        }
        
        /* ==================== 左右双栏布局 ==================== */
        .dual-columns {
            display: grid;
            grid-template-columns: 38% 1fr;
            gap: 24px;
            align-items: start;
        }
        
        /* ==================== 左侧输入面板 ==================== */
        .left-panel {
            position: sticky;
            top: 88px;
        }
        
        .input-card {
            background: var(--bg-white);
            border-radius: 16px;
            padding: 24px;
            box-shadow: var(--shadow);
            border: 2px solid var(--clinical-light);
        }
        
        .input-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--clinical-light);
        }
        
        .input-card-header i {
            width: 40px;
            height: 40px;
            background: var(--clinical-color);
            color: var(--clinical-accent);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        
        .input-card-header h3 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
        }
        
        .input-card-header p {
            font-size: 12px;
            color: var(--text-light);
        }
        
        /* 表单样式 */
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-group label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: var(--text-dark);
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .required-mark {
            color: #F44336;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s;
            background: var(--bg-white);
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--clinical-accent);
            box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
        }
        
        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #BDBDBD;
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 80px;
        }
        
        /* 范围输入 */
        .range-input {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .range-input input {
            flex: 1;
            text-align: center;
        }
        
        .range-input span {
            color: var(--text-light);
            font-weight: 500;
        }
        
        /* 多选标签 */
        .chip-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .chip {
            padding: 6px 14px;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            background: var(--bg-white);
        }
        
        .chip:hover {
            border-color: var(--clinical-accent);
        }
        
        .chip.selected {
            background: var(--clinical-accent);
            color: white;
            border-color: var(--clinical-accent);
        }
        
        /* AI生成按钮 */
        .ai-generate-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--clinical-accent), #48a14d);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 24px;
        }
        
        .ai-generate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
        }
        
        .ai-generate-btn.loading {
            background: var(--text-light);
            pointer-events: none;
        }
        
        .ai-generate-btn i.spinning {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        /* ==================== 右侧输出面板 ==================== */
        .right-panel {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .output-card {
            background: var(--bg-white);
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: all 0.3s;
        }
        
        .output-card:hover {
            box-shadow: var(--shadow-hover);
        }
        
        .output-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--border-color);
            margin-bottom: 16px;
        }
        
        .output-card-header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .output-card-header i.card-icon {
            width: 36px;
            height: 36px;
            background: var(--clinical-color);
            color: var(--clinical-accent);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        
        .output-card-header h3 {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-dark);
        }
        
        .output-card-header .badge {
            padding: 4px 10px;
            background: var(--success-color);
            color: white;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
        }
        
        .collapse-btn {
            width: 32px;
            height: 32px;
            background: var(--bg-light);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .collapse-btn:hover {
            background: var(--border-color);
        }
        
        .collapse-btn i {
            color: var(--text-light);
            transition: transform 0.3s;
        }
        
        .output-card.collapsed .collapse-btn i {
            transform: rotate(-90deg);
        }
        
        .output-card-content {
            max-height: 2000px;
            overflow: hidden;
            transition: max-height 0.5s ease, opacity 0.3s ease;
        }
        
        .output-card.collapsed .output-card-content {
            max-height: 0;
            opacity: 0;
        }
        
        /* 文献卡片 */
        .literature-item {
            background: var(--bg-light);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }
        
        .literature-item:hover {
            border-color: var(--clinical-accent);
            transform: translateX(4px);
        }
        
        .literature-item:last-child {
            margin-bottom: 0;
        }
        
        .literature-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .literature-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            flex: 1;
        }
        
        .literature-tags {
            display: flex;
            gap: 6px;
        }
        
        .tag {
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
        }
        
        .tag.pubmed {
            background: #ecfdf5;
            color: #307440;
        }
        
        .tag.cnki {
            background: #FFECB3;
            color: #F57F17;
        }
        
        .tag.cochrane {
            background: #E8F5E9;
            color: #2E7D32;
        }
        
        .tag.clinicaltrials {
            background: #ecfdf5;
            color: #48a14d;
        }
        
        .match-rate {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .match-rate-label {
            font-size: 12px;
            color: var(--text-light);
            white-space: nowrap;
        }
        
        .progress-bar {
            flex: 1;
            height: 6px;
            background: var(--border-color);
            border-radius: 3px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--success-color), #8BC34A);
            border-radius: 3px;
            transition: width 0.5s ease;
        }
        
        .match-rate-value {
            font-size: 12px;
            font-weight: 600;
            color: var(--success-color);
            min-width: 40px;
        }
        
        .literature-abstract {
            font-size: 13px;
            color: var(--text-light);
            line-height: 1.6;
            padding: 12px;
            background: var(--bg-white);
            border-radius: 8px;
            margin-bottom: 10px;
            display: none;
        }
        
        .literature-abstract.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        .literature-actions {
            display: flex;
            justify-content: flex-end;
        }
        
        .link-btn {
            padding: 6px 14px;
            background: transparent;
            border: 1px solid var(--clinical-accent);
            color: var(--clinical-accent);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .link-btn:hover {
            background: var(--clinical-accent);
            color: white;
        }
        
        .abstract-toggle {
            background: transparent;
            border: none;
            color: var(--text-light);
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 0;
        }
        
        .abstract-toggle:hover {
            color: var(--clinical-accent);
        }
        
        /* 建议卡片 */
        .suggestion-item {
            background: var(--bg-light);
            border-radius: 12px;
            margin-bottom: 12px;
            border: 1px solid var(--border-color);
            overflow: hidden;
        }
        
        .suggestion-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .suggestion-header:hover {
            background: var(--border-color);
        }
        
        .suggestion-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-color);
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            flex-shrink: 0;
        }
        
        .suggestion-checkbox.checked {
            background: var(--success-color);
            border-color: var(--success-color);
        }
        
        .suggestion-checkbox i {
            color: white;
            font-size: 12px;
            opacity: 0;
        }
        
        .suggestion-checkbox.checked i {
            opacity: 1;
        }
        
        .suggestion-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }
        
        .suggestion-icon.design { background: #ecfdf5; color: #48a14d; }
        .suggestion-icon.sample { background: #ecfdf5; color: #48a14d; }
        .suggestion-icon.recruit { background: #FFF3E0; color: #F57C00; }
        .suggestion-icon.safety { background: #FFEBEE; color: #D32F2F; }
        .suggestion-icon.stats { background: #E8F5E9; color: #388E3C; }
        
        .suggestion-info {
            flex: 1;
        }
        
        .suggestion-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
        }
        
        .suggestion-expand {
            color: var(--text-light);
            font-size: 14px;
            transition: transform 0.3s;
        }
        
        .suggestion-item.expanded .suggestion-expand {
            transform: rotate(180deg);
        }
        
        .suggestion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: var(--bg-white);
        }
        
        .suggestion-item.expanded .suggestion-content {
            max-height: 500px;
        }
        
        .suggestion-content-inner {
            padding: 0 16px 16px 48px;
            font-size: 13px;
            color: var(--text-light);
            line-height: 1.8;
        }
        
        .adopt-btn {
            padding: 12px;
            background: linear-gradient(135deg, var(--success-color), #388E3C);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 16px;
            width: 100%;
        }
        
        .adopt-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
        }
        
        .adopt-btn:disabled {
            background: var(--border-color);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        /* 报告卡片 */
        .report-section {
            background: var(--bg-light);
            border-radius: 12px;
            margin-bottom: 12px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            transition: all 0.3s;
        }
        
        .report-section:last-child {
            margin-bottom: 0;
        }
        
        .report-section:hover {
            border-color: var(--clinical-accent);
        }
        
        .report-section.updated {
            animation: highlightFlash 1s ease;
        }
        
        @keyframes highlightFlash {
            0%, 100% { background: var(--bg-light); }
            50% { background: var(--highlight-bg); }
        }
        
        .report-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            cursor: pointer;
            background: var(--bg-white);
        }
        
        .report-section-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .report-section-num {
            width: 28px;
            height: 28px;
            background: var(--clinical-color);
            color: var(--clinical-accent);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
        }
        
        .report-section-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
        }
        
        .report-section-badge {
            padding: 2px 8px;
            background: var(--success-color);
            color: white;
            border-radius: 10px;
            font-size: 10px;
            display: none;
        }
        
        .report-section.updated .report-section-badge {
            display: inline-block;
            animation: fadeIn 0.5s ease;
        }
        
        .report-section-toggle {
            color: var(--text-light);
            font-size: 14px;
            transition: transform 0.3s;
        }
        
        .report-section.expanded .report-section-toggle {
            transform: rotate(180deg);
        }
        
        .report-section-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        .report-section.expanded .report-section-content {
            max-height: 500px;
        }
        
        .report-section-content-inner {
            padding: 16px;
            font-size: 13px;
            color: var(--text-light);
            line-height: 1.8;
            border-top: 1px solid var(--border-color);
        }
        
        .report-section-content-inner p {
            margin-bottom: 12px;
        }
        
        .report-section-content-inner p:last-child {
            margin-bottom: 0;
        }
        
        .key-value {
            background: var(--highlight-bg);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            color: var(--text-dark);
        }
        
        .export-btns {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        
        .export-btn {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }
        
        .export-btn.pdf {
            background: #FF5252;
            color: white;
        }
        
        .export-btn.word {
            background: #0891B2;
            color: white;
        }
        
        .export-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        /* AI功能说明 */
        .ai-info-card {
            background: linear-gradient(135deg, var(--clinical-accent), #CE93D8);
            color: white;
            border-radius: 16px;
            padding: 24px;
            margin-top: 20px;
        }
        
        .ai-info-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .ai-info-header i {
            font-size: 24px;
        }
        
        .ai-info-header h4 {
            font-size: 16px;
        }
        
        .ai-info-source {
            font-size: 13px;
            opacity: 0.9;
            margin-bottom: 16px;
            padding: 12px;
            background: rgba(255,255,255,0.15);
            border-radius: 8px;
        }
        
        .ai-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
        }
        
        .ai-feature {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: rgba(255,255,255,0.15);
            border-radius: 8px;
            font-size: 13px;
        }
        
        .ai-feature i {
            width: 28px;
            height: 28px;
            background: rgba(255,255,255,0.2);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        /* ==================== 临床研究9阶段工作流 V2.1 ==================== */

        /* 阶段时间轴 */
        .stage-timeline-container {
            background: var(--bg-white);
            border-bottom: 1px solid var(--border-color);
            padding: 16px 20px 8px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .stage-timeline-container::-webkit-scrollbar {
            height: 4px;
        }
        .stage-timeline-container::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 2px;
        }
        .stage-timeline {
            display: flex;
            align-items: flex-start;
            min-width: max-content;
            margin: 0 auto;
            gap: 0;
            overflow-x: auto;
            padding-bottom: 4px;
        }
        .stage-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            flex-shrink: 0;
            position: relative;
            width: 80px;
        }
        .stage-node .node-circle {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--bg-light);
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-light);
            transition: all 0.3s;
            flex-shrink: 0;
        }
        .stage-node .node-label {
            font-size: 11px;
            white-space: nowrap;
            color: var(--text-light);
            font-weight: 500;
            transition: color 0.3s;
            margin-top: 6px;
            text-align: center;
        }
        .stage-node .node-connector {
            position: absolute;
            top: 16px;
            left: calc(50% + 16px);
            width: calc(100% - 32px + 80px);
            height: 2px;
            background: var(--border-color);
            transition: background 0.3s;
            pointer-events: none;
        }
        .stage-node.active .node-circle {
            background: var(--clinical-accent);
            border-color: var(--clinical-accent);
            color: white;
            box-shadow: 0 2px 8px rgba(156,39,176,0.3);
        }
        .stage-node.active .node-label {
            color: var(--clinical-accent);
            font-weight: 600;
        }
        .stage-node.completed .node-circle {
            background: var(--success-color);
            border-color: var(--success-color);
            color: white;
        }
        .stage-node.completed .node-circle::after {
            content: '✓';
            font-size: 14px;
        }
        .stage-node.completed .node-circle {
            font-size: 0;
        }
        .stage-node.completed .node-label {
            color: var(--success-color);
        }
        .stage-node.completed + .stage-node .node-connector,
        .stage-node.completed .node-connector {
            background: var(--success-color);
        }
        .stage-node:hover .node-circle {
            border-color: var(--clinical-accent);
            transform: scale(1.1);
        }
        .stage-node.last .node-connector { display: none; }

        /* 阶段内容区 */
        .stage-content-area {
            padding: 16px 20px 20px;
            max-width: 1600px;
            margin: 0 auto;
            padding-top: 36px;
        }
        .stage-header {
            margin-bottom: 16px;
        }
        .stage-title-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 6px;
        }
        .stage-title-row h2 {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-dark);
        }
        .ai-func-tag {
            padding: 3px 10px;
            background: var(--clinical-color);
            color: var(--clinical-accent);
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
            font-family: 'Consolas', 'Monaco', monospace;
        }
        .role-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .role-tag {
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
        }
        .role-medical { background: #ecfdf5; color: #307440; }
        .role-pm { background: #FFF3E0; color: #E65100; }
        .role-cra { background: #E8F5E9; color: #2E7D32; }
        .role-dm { background: #ecfdf5; color: #48a14d; }
        .role-qa { background: #FFEBEE; color: #C62828; }
        .role-stat { background: #E0F7FA; color: #00695C; }

        /* 阶段双栏 */
        .stage-dual-columns {
            display: grid;
            grid-template-columns: 38% 1fr;
            gap: 20px;
            align-items: start;
        }
        .stage-left-panel {
            position: sticky;
            top: 140px;
        }
        .stage-left-panel .input-card {
            background: var(--bg-white);
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
            border: 2px solid var(--clinical-light);
        }
        .stage-left-panel .input-card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--clinical-light);
        }
        .stage-left-panel .input-card-header i {
            width: 36px;
            height: 36px;
            background: var(--clinical-color);
            color: var(--clinical-accent);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        .stage-left-panel .input-card-header h3 {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-dark);
        }
        .stage-left-panel .input-card-header p {
            font-size: 12px;
            color: var(--text-light);
        }
        .stage-right-panel {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* 进度条样式(阶段用) */
        .msw-progress-bar {
            height: 6px;
            background: var(--border-color);
            border-radius: 3px;
            overflow: hidden;
            margin: 6px 0;
        }
        .msw-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--clinical-accent), #CE93D8);
            border-radius: 3px;
            transition: width 1s ease;
        }
        .msw-progress-fill.green {
            background: linear-gradient(90deg, #4CAF50, #81C784);
        }

        /* 卡片视图(中心列表) */
        .center-card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
        }
        .center-card {
            background: var(--bg-light);
            border-radius: 10px;
            padding: 14px;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }
        .center-card:hover {
            border-color: var(--clinical-accent);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        .center-card .center-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
        }
        .center-card .center-status {
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 10px;
            display: inline-block;
            margin-bottom: 6px;
        }
        .center-card .center-status.ready { background: #E8F5E9; color: #2E7D32; }
        .center-card .center-status.preparing { background: #FFF3E0; color: #E65100; }
        .center-card .center-status.error { background: #FFEBEE; color: #C62828; }

        /* 统计数字卡片 */
        .stat-card-row {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 10px;
        }
        .stat-card {
            background: var(--bg-light);
            border-radius: 10px;
            padding: 14px;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        .stat-card .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--clinical-accent);
        }
        .stat-card .stat-label {
            font-size: 11px;
            color: var(--text-light);
            margin-top: 4px;
        }

        /* 风险表格 */
        .risk-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        .risk-table th, .risk-table td {
            padding: 8px 10px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        .risk-table th {
            background: var(--bg-light);
            font-weight: 600;
            color: var(--text-dark);
            font-size: 12px;
        }
        .risk-level {
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 500;
        }
        .risk-level.high { background: #FFEBEE; color: #C62828; }
        .risk-level.medium { background: #FFF3E0; color: #E65100; }
        .risk-level.low { background: #E8F5E9; color: #2E7D32; }

        /* ICF表格 */
        .icf-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        .icf-table th, .icf-table td {
            padding: 8px 10px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        .icf-table th {
            background: var(--bg-light);
            font-weight: 600;
            font-size: 12px;
        }
        .icf-status {
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
        }
        .icf-status.signed { background: #E8F5E9; color: #2E7D32; }
        .icf-status.pending { background: #FFF3E0; color: #E65100; }
        .icf-status.unsigned { background: #FFEBEE; color: #C62828; }

        /* 报告预览折叠 */
        .report-preview-section {
            background: var(--bg-light);
            border-radius: 10px;
            margin-bottom: 8px;
            border: 1px solid var(--border-color);
            overflow: hidden;
        }
        .report-preview-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .report-preview-header:hover {
            background: var(--border-color);
        }
        .report-preview-header h4 {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dark);
        }
        .report-preview-body {
            padding: 0 14px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.3s;
        }
        .report-preview-section.expanded .report-preview-body {
            max-height: 600px;
            padding: 10px 14px 14px;
        }
        .report-preview-section.expanded .report-preview-toggle {
            transform: rotate(180deg);
        }
        .report-preview-toggle {
            transition: transform 0.3s;
            color: var(--text-light);
        }

        /* 数据导出按钮组 */
        .data-action-btns {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }
        .data-action-btn {
            padding: 6px 14px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            background: var(--bg-white);
            transition: all 0.2s;
        }
        .data-action-btn:hover {
            border-color: var(--clinical-accent);
            color: var(--clinical-accent);
        }
        .data-action-btn.danger {
            border-color: #EF5350;
            color: #EF5350;
        }
        .data-action-btn.danger:hover {
            background: #FFEBEE;
        }

        /* 建议项可勾选 */
        .msw-suggestion-item {
            background: var(--bg-light);
            border-radius: 10px;
            padding: 12px 14px;
            margin-bottom: 8px;
            border: 1px solid var(--border-color);
            display: flex;
            align-items: flex-start;
            gap: 10px;
            transition: all 0.3s;
            cursor: pointer;
        }
        .msw-suggestion-item:hover {
            border-color: var(--clinical-accent);
        }
        .msw-suggestion-item.adopted {
            border-color: var(--success-color);
            background: #F1F8F1;
        }
        .msw-suggestion-check {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 2px;
            transition: all 0.2s;
            font-size: 11px;
            color: transparent;
        }
        .msw-suggestion-item.adopted .msw-suggestion-check {
            background: var(--success-color);
            border-color: var(--success-color);
            color: white;
        }
        .msw-suggestion-content {
            flex: 1;
        }
        .msw-suggestion-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 4px;
        }
        .msw-suggestion-desc {
            font-size: 12px;
            color: var(--text-light);
            line-height: 1.5;
        }

        /* 任务清单 */
        .task-list {
            list-style: none;
        }
        .task-list li {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-color);
            font-size: 13px;
        }
        .task-list li:last-child { border-bottom: none; }
        .task-list li i {
            color: var(--clinical-accent);
            font-size: 12px;
        }

        /* 移动端响应式 */
        @media (max-width: 768px) {
            .stage-dual-columns {
                grid-template-columns: 1fr;
            }
            .stage-left-panel {
                position: static;
            }
            .stage-timeline-container {
                padding: 12px 10px;
            }
            .stage-content-area {
                padding: 36px 12px 16px;
            }
            .stat-card-row {
                grid-template-columns: repeat(2, 1fr);
            }
            .center-card-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Toast提示 */
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--text-dark);
            color: white;
            padding: 14px 24px;
            border-radius: 10px;
            font-size: 14px;
            z-index: 9999;
            opacity: 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        
        /* 加载占位 */
        .placeholder-content {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-light);
        }
        
        .placeholder-content i {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.3;
        }
        
        .placeholder-content p {
            font-size: 14px;
        }
        
        /* 动画 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .animate-in {
            animation: slideIn 0.5s ease forwards;
        }
        
        /* ==================== 返回顶部 ==================== */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--clinical-accent);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: var(--shadow);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 999;
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-5px);
            background: #48a14d;
        }
        
        /* ==================== Footer ==================== */
        /* unified with main footer style above */
        
        /* ==================== 移动端适配 ==================== */
        @media (max-width: 1200px) {
            .dual-columns {
                grid-template-columns: 1fr;
            }
            
            .left-panel {
                position: static;
            }
        }
        
        @media (max-width: 1200px) {
            .phase-tabs {
                flex-direction: column;
                align-items: stretch;
            }
            
            .phase-tab {
                justify-content: center;
            }
        }
        
        @media (max-width: 768px) {
            .module-section {
                padding: 16px;
            }
            
            .module-header h1 {
                font-size: 22px;
            }
            
            .input-card, .output-card {
                padding: 16px;
            }
            
            .export-btns {
                flex-direction: column;
            }
            
            .literature-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .ai-features {
                grid-template-columns: 1fr;
            }
        }

/* ==================== V3.0: Login System ==================== */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        radial-gradient(circle at 85% 18%, rgba(37, 99, 235, 0.12), transparent 24%),
        radial-gradient(circle at 18% 82%, rgba(8, 145, 178, 0.12), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 48%, #f8fbff 100%);
}
.login-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(37, 99, 235, 0.16) 0 3px, transparent 4px),
        linear-gradient(110deg, transparent 0 74%, rgba(37, 99, 235, 0.08) 74.2%, transparent 74.6%),
        linear-gradient(35deg, transparent 0 78%, rgba(8, 145, 178, 0.08) 78.2%, transparent 78.6%);
    background-size: 112px 112px, 260px 260px, 300px 300px;
    background-position: right 60px top 56px, right -10px top 40px, right 80px bottom -30px;
    opacity: 0.8;
}
.login-overlay:not([style*="display: none"]) ~ .sidebar,
.login-overlay:not([style*="display: none"]) ~ .sidebar-overlay,
.login-overlay:not([style*="display: none"]) ~ .topbar,
.login-overlay:not([style*="display: none"]) ~ .search-overlay,
.login-overlay:not([style*="display: none"]) ~ .main-container,
.login-overlay:not([style*="display: none"]) ~ .mobile-user-menu,
.login-overlay:not([style*="display: none"]) ~ .topbar-user-mobile-menu {
    display: none !important;
}
.login-shell {
    position: relative;
    width: min(1480px, 100%);
    min-height: min(820px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(420px, 0.96fr);
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.15);
}
.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 48px 56px 44px;
    color: #ffffff;
    background:
        linear-gradient(115deg, rgba(13, 75, 168, 0.98) 0%, rgba(35, 112, 216, 0.88) 46%, rgba(205, 224, 255, 0.58) 100%),
        linear-gradient(180deg, #0f4fa8 0%, #2f7dd8 58%, #6aa8ea 100%);
}
.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 58% 42%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(180deg, transparent 46%, rgba(2, 33, 95, 0.32) 100%);
    pointer-events: none;
}
.login-brand-logo,
.login-brand-copy,
.login-scene,
.login-brand-metrics {
    position: relative;
    z-index: 1;
}
.login-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
}
.login-brand-logo img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}
.login-brand-copy {
    margin-top: 70px;
    max-width: 650px;
}
.login-brand-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: 0 12px 28px rgba(12, 46, 107, 0.22);
}
.login-brand-copy p {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.7;
}
.login-scene {
    height: 330px;
    margin: 24px -56px 0;
}
.login-orbit {
    position: absolute;
    left: 18%;
    right: 8%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 0;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.orbit-one { top: 80px; height: 230px; }
.orbit-two { top: 116px; left: 25%; right: 16%; height: 160px; opacity: 0.7; }
.orbit-three { top: 154px; left: 34%; right: 24%; height: 92px; opacity: 0.52; }
.login-icon-bubble {
    position: absolute;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 34px rgba(20, 73, 150, 0.24);
    backdrop-filter: blur(10px);
}
.bubble-doc { left: 28%; top: 74px; }
.bubble-team { left: 47%; top: 52px; }
.bubble-data { right: 24%; top: 72px; }
.bubble-safe { left: 40%; top: 148px; }
.bubble-lab { right: 33%; top: 145px; }
.login-campus {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 206px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 40%, rgba(9, 45, 111, 0.24)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.02));
}
.login-campus::before {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: 16px;
    height: 46px;
    background: linear-gradient(90deg, rgba(19, 83, 181, 0.74), rgba(112, 179, 241, 0.36), rgba(31, 95, 178, 0.5));
    border-radius: 50% 50% 0 0;
    filter: blur(1px);
}
.login-campus::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 44px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(137, 191, 244, 0.18), rgba(255, 255, 255, 0.42));
    clip-path: polygon(0 100%, 42% 0, 58% 0, 100% 100%);
}
.building {
    position: absolute;
    bottom: 26px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 18px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 26px),
        linear-gradient(160deg, rgba(255, 255, 255, 0.66), rgba(87, 154, 232, 0.18));
    box-shadow: 0 18px 34px rgba(12, 51, 123, 0.2);
}
.building-a { left: 0; width: 34%; height: 138px; border-radius: 0 44px 0 0; transform: skewY(-5deg); }
.building-b { left: 28%; width: 24%; height: 82px; border-radius: 12px 28px 0 0; opacity: 0.9; }
.building-c { left: 55%; width: 54px; height: 122px; border-radius: 16px 16px 0 0; opacity: 0.78; }
.building-d { right: 19%; width: 42px; height: 174px; border-radius: 20px 20px 0 0; opacity: 0.75; }
.building-e { right: 7%; width: 70px; height: 96px; border-radius: 18px 18px 0 0; opacity: 0.62; }
.login-brand-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.login-brand-metrics div {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 10px;
    row-gap: 2px;
    min-width: 0;
}
.login-brand-metrics i {
    grid-row: span 2;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.9);
}
.login-brand-metrics strong {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
}
.login-brand-metrics span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.35;
}
.login-form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background:
        radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.08), transparent 27%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.98));
}
.login-card {
    position: relative;
    width: min(100%, 520px);
    padding: 42px 46px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}
.login-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}
.login-card h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}
.login-card .login-subtitle {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}
.login-language {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    color: #374151;
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}
.login-field {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 58px;
    margin-bottom: 16px;
    padding: 0 16px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.login-field:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.login-field > i {
    width: 18px;
    color: #94a3b8;
    text-align: center;
    font-size: 16px;
}
.login-card input,
.login-card select {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    margin: 0;
    color: #111827;
    background: transparent;
    font-size: 15px;
    box-sizing: border-box;
}
.login-card select { appearance: auto; }
.login-card input::placeholder { color: #9ca3af; }
.login-card button {
    width: 100%;
    min-height: 60px;
    margin-top: 22px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, #1d7df2, #2f63f3);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.login-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
    filter: brightness(1.02);
}
.login-card button:active { transform: translateY(0); }
.login-card .login-footer {
    margin-top: 28px;
    color: #8b95a5;
    text-align: center;
    font-size: 14px;
}
.login-card .login-logo { display: none; }
.login-card .login-logo img { max-width: 240px; height: auto; }
.login-card .login-logo i { font-size: 40px; color: #0891B2; }
.login-card .login-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    color: #374151;
    font-size: 14px;
}
.login-card .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    cursor: pointer;
}
.login-card .login-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
}
.login-card .login-remember span {
    color: #2563eb;
    white-space: nowrap;
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    color: #9ca3af;
    font-size: 13px;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.login-support-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}
.login-support-row div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 76px;
    color: #64748b;
    font-size: 13px;
}
.login-support-row i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #2563eb;
    background: #ffffff;
    font-size: 17px;
}
.login-error {
    display: none;
    min-height: 0;
    margin: -18px 0 14px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 13px;
    text-align: left;
}
@media (max-width: 1180px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand-panel { display: none; }
    .login-form-panel { min-height: calc(100vh - 56px); }
}
@media (max-width: 640px) {
    .login-overlay { padding: 0; align-items: stretch; }
    .login-overlay::before { opacity: 0.5; }
    .login-shell {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    .login-form-panel {
        align-items: flex-start;
        min-height: 100vh;
        padding: 28px 18px;
    }
    .login-card {
        width: 100%;
        padding: 28px 22px;
        border-radius: 14px;
    }
    .login-card-head {
        display: block;
        margin-bottom: 24px;
    }
    .login-language {
        width: fit-content;
        margin-top: 16px;
    }
    .login-card h2 { font-size: 26px; }
    .login-card .login-subtitle { font-size: 14px; }
    .login-card .login-remember {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .login-card button { min-height: 54px; }
    .login-support-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .login-support-row div {
        min-height: 46px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 10px;
    }
    .login-support-row i {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* Navbar user info - compact avatar dropdown */
.navbar-user { display: flex; align-items: center; margin-left: auto; flex-shrink: 0; position: relative; }
.navbar-user .user-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; cursor: pointer; transition: box-shadow 0.2s; border: 2px solid rgba(255,255,255,0.3); }
.navbar-user .user-avatar:hover { box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }
.navbar-user .user-dropdown { position: absolute; bottom: 40px; left: 0; background: white; border-radius: 12px; box-shadow: 0 -4px 24px rgba(0,0,0,0.12); min-width: 200px; z-index: 1001; display: none; overflow: hidden; border: 1px solid #e5e7eb; }
.navbar-user .user-dropdown.show { display: block; animation: dropUpIn 0.15s ease; }
.sidebar-user-row .user-dropdown { position: fixed; bottom: auto; left: auto; background: white; border-radius: 12px; box-shadow: 0 -4px 24px rgba(0,0,0,0.12); min-width: 200px; z-index: 1001; display: none; overflow: hidden; border: 1px solid #e5e7eb; }
.sidebar-user-row .user-dropdown.show { display: block; animation: dropUpIn 0.15s ease; }
@keyframes dropUpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.navbar-user .dropdown-header { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 10px; }
.navbar-user .dropdown-header .dd-avatar-sm { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.navbar-user .dropdown-header .dd-info { display: flex; flex-direction: column; gap: 2px; }
.navbar-user .dropdown-header .dd-name { font-size: 14px; font-weight: 600; color: #1f2937; }
.navbar-user .dropdown-header .dd-role { padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 500; display: inline-block; width: fit-content; }
.navbar-user .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: #4b5563; cursor: pointer; transition: background 0.15s; }
.navbar-user .dropdown-item:hover { background: #f3f4f6; }
.navbar-user .dropdown-item i { width: 18px; text-align: center; color: #9ca3af; }
.navbar-user .dropdown-item.danger { color: #ef4444; }
.navbar-user .dropdown-item.danger i { color: #ef4444; }
.navbar-user .dropdown-item.danger:hover { background: #fef2f2; }
.navbar-user .dropdown-divider { height: 1px; background: #f3f4f6; margin: 4px 0; }

/* ==================== V3.0: Smart Module 3-Zone Layout ==================== */
.smart-module {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 120px);
}

/* V10.5.613: narrow home entries use compact business tiles instead of a phone-style icon wall. */
@media (max-width: 520px) {
    .home-flow-section {
        background: #f3f8fb !important;
        padding: 16px 14px 18px !important;
    }

    .home-flow-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .home-flow-card {
        min-height: 68px !important;
        padding: 10px !important;
        border-color: #d9e7ef !important;
        border-radius: 10px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .045) !important;
    }

    .home-flow-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 6px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
        box-shadow: inset -5px -5px 0 rgba(15, 23, 42, .07), 0 6px 12px rgba(14, 116, 144, .10) !important;
    }

    .home-flow-name {
        max-width: 112px !important;
        color: #102033 !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }
}
.smart-input-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 76px;
}
.smart-input-panel .input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.smart-input-panel .input-header h3 { font-size: 16px; font-weight: 600; }
.smart-input-panel .role-badge { font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.smart-input-panel .form-group { margin-bottom: 14px; }
.smart-input-panel label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: #374151; }
.smart-input-panel label .required { color: #ef4444; margin-left: 2px; }
.smart-input-panel input,
.smart-input-panel select,
.smart-input-panel textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.smart-input-panel input:focus,
.smart-input-panel select:focus,
.smart-input-panel textarea:focus {
    outline: none;
    border-color: #0891B2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.smart-input-panel textarea { min-height: 60px; resize: vertical; }
.smart-input-panel .multi-select-group { display: flex; flex-wrap: wrap; gap: 6px; }
.smart-input-panel .multi-select-item {
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.smart-input-panel .multi-select-item.selected { background: #0891B2; color: white; border-color: #0891B2; }

.ai-generate-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #0891B2, #2aacba);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    transition: all 0.3s;
}
.ai-generate-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(8,145,178,0.4); }
.ai-generate-btn.loading { background: #9ca3af; cursor: wait; }
.ai-generate-btn.loading i { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Output Area */
.smart-output-area { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-content: start; }
.output-zone { background: white; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); min-height: 400px; }
.output-zone .zone-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid #f3f4f6; }
.output-zone .zone-header .zone-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.zone-1 .zone-icon { background: #ecfdf5; color: #48a14d; }
.zone-2 .zone-icon { background: #d1fae5; color: #2aacba; }
.zone-3 .zone-icon { background: #d1fae5; color: #059669; }
.output-zone .zone-title { font-size: 14px; font-weight: 600; }
.output-zone .zone-content { font-size: 13px; line-height: 1.6; color: #4b5563; }
.output-zone .zone-content .empty-state { text-align: center; padding: 40px 20px; color: #9ca3af; }
.output-zone .zone-content .empty-state i { font-size: 32px; margin-bottom: 12px; display: block; }

/* Literature Items */
.literature-item { padding: 10px; border: 1px solid #f3f4f6; border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.literature-item:hover { border-color: #0891B2; background: #f0fdf4; }
.literature-item .lit-source { font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-right: 4px; }
.lit-domestic { background: #fee2e2; color: #dc2626; }
.lit-international { background: #d1fae5; color: #2aacba; }

/* Suggestion Options */
.suggestion-option { padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.suggestion-option:hover { border-color: #0891B2; }
.suggestion-option.selected { border-color: #0891B2; background: #f0fdf4; }
.suggestion-option .option-radio { display: inline-block; width: 16px; height: 16px; border: 2px solid #d1d5db; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.suggestion-option.selected .option-radio { border-color: #0891B2; background: #0891B2; box-shadow: inset 0 0 0 3px white; }

/* Report Preview */
.report-preview { padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px; }
.report-preview .report-actions { display: flex; gap: 8px; margin-top: 8px; }
.report-preview .report-actions button { padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; cursor: pointer; background: white; transition: all 0.2s; }
.report-preview .report-actions button:hover { background: #f9fafb; }

/* V3.0 Home Smart Scenario Cards */
.smart-scenario-section { padding: 40px 24px; background: var(--bg-light); }
.smart-scenario-section .section-title { text-align: center; margin-bottom: 8px; }
.smart-scenario-section .section-desc { text-align: center; color: var(--text-light); margin-bottom: 28px; font-size: 14px; }
.smart-scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.smart-scenario-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.smart-scenario-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: #0891B2; }
.smart-scenario-card .card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.smart-scenario-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.smart-scenario-card .card-role { font-size: 12px; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-bottom: 10px; }
.smart-scenario-card .card-desc { font-size: 13px; color: #6b7280; line-height: 1.5; }
.smart-scenario-card .card-flow { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9ca3af; }
.smart-scenario-card .card-flow .flow-arrow { color: #0891B2; font-size: 10px; }

/* V3.0 Enhanced Toast */
.toast-v3 { position: fixed; top: 80px; right: 24px; padding: 14px 24px; border-radius: 10px; font-size: 14px; z-index: 10000; opacity: 0; transform: translateX(100px); transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.toast-v3.toast-success { background: #10b981; color: white; }
.toast-v3.toast-error { background: #ef4444; color: white; }
.toast-v3.toast-info { background: #3b82f6; color: white; }
.toast-v3.show { opacity: 1; transform: translateX(0); }

/* V3.0 Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 64px; }
    .sidebar .sidebar-title { display: none; }
    .sidebar .sidebar-sub-nav, .sidebar .sidebar-sub-item { display: none; }
    .sidebar-nav-item span, .sidebar-nav-item .sidebar-arrow { display: none; }
    .sidebar-logo-mark { width: 28px; height: 28px; font-size: 14px; }
    .sidebar-collapse-btn { display: none; }
    .sidebar-nav-item { justify-content: center; padding: 12px; }
    .sidebar-nav-item i { margin: 0; }
    .sidebar-bell { display: none; }
    .sidebar-user-row .user-name { display: none; }
    .topbar { left: 64px; }
    .main-container { margin-left: 64px; }
    .module-hero { padding: 96px 20px 20px; /* V5.28.11: margin-top:-48px已移除 */ }
    .module-hero h1 { font-size: 22px; }
    .module-hero .hero-en { font-size: 12px; }
    .smart-module { grid-template-columns: 1fr; }
    .smart-input-panel { position: static; }
    .smart-output-area { grid-template-columns: 1fr; }
    .smart-scenario-grid { grid-template-columns: 1fr; }
    .login-overlay { padding: 18px; }
    .login-shell {
        min-height: calc(100vh - 36px);
        grid-template-columns: 1fr;
    }
    .login-brand-panel { display: none; }
    .login-form-panel { padding: 30px 18px; }
    .login-card { width: min(100%, 460px); padding: 34px 28px; }
    .login-card-head { margin-bottom: 28px; }
    .login-card h2 { font-size: 28px; }
    /* 平板端流程地图：3列换行 */
    .dash-pipeline-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .dash-pipe-stage { padding: 18px 12px 16px; font-size: 13px; }
    .dash-pipe-stage i { font-size: 24px; }
    .dash-actions-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    .sidebar.mobile-open {
        width: 160px;
        z-index: 1100;
    }
    /* 移动端侧边栏精简：只显示6大模块 */
    .sidebar.mobile-open .sidebar-logo-mark { display: none; }
    .sidebar.mobile-open .sidebar-title { display: none; }
    .sidebar.mobile-open .sidebar-collapse-btn { display: none; }
    .sidebar.mobile-open .sidebar-sub-nav { display: none !important; }
    .sidebar.mobile-open .sidebar-arrow { display: none !important; }
    .sidebar.mobile-open .sidebar-nav-item { padding: 10px 16px; font-size: 13px; justify-content: flex-start; }
    .sidebar.mobile-open .sidebar-nav-item span { display: inline !important; font-size: 13px; }
    .sidebar.mobile-open .sidebar-nav-item i { margin-right: 8px; }
    .sidebar.mobile-open .sidebar-footer { display: none; }
    .topbar { left: 0; padding: 8px 12px 0; background: transparent; border-bottom: 0; backdrop-filter: none; }
    .topbar-left { flex: 1 1 auto; min-width: 0; gap: 6px; }
    .topbar-breadcrumb { max-width: calc(100vw - 104px); }
    .mobile-menu-btn { flex: 0 0 40px; width: 40px; height: 40px; color: #475569; }
    .main-container { margin-left: 0; padding-top: var(--app-topbar-height); }
    .topbar-logo { height: 16px; }
    /* 移动端搜索：隐藏输入框，显示放大镜图标 */
    .topbar-search input { display: none; }
    .topbar-search { position: static; }
    .topbar-search i { position: static; transform: none; font-size: 16px; color: white; cursor: pointer; padding: 4px; }
    .topbar.scrolled .topbar-search i { color: #6b7280; }
    /* 搜索展开覆盖层 */
    .search-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 2000;
        animation: fadeIn 0.2s ease;
    }
    .search-overlay.active { display: flex; flex-direction: column; align-items: center; padding-top: 60px; }
    .search-overlay .search-bar {
        width: 90%;
        max-width: 400px;
        background: white;
        border-radius: 24px;
        display: flex;
        align-items: center;
        padding: 12px 20px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        gap: 12px;
        animation: slideDown 0.25s ease;
    }
    .search-overlay .search-bar i { color: #9ca3af; font-size: 16px; flex-shrink: 0; }
    .search-overlay .search-bar input {
        flex: 1; border: none; outline: none; font-size: 16px; background: transparent;
        padding: 0; width: auto;
    }
    .search-overlay .search-bar input::placeholder { color: #9ca3af; }
    .search-overlay .search-bar .search-close {
        width: 28px; height: 28px; border-radius: 50%; background: #f3f4f6;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; flex-shrink: 0; border: none; font-size: 13px; color: #6b7280;
        transition: all 0.2s;
    }
    .search-overlay .search-bar .search-close:hover { background: #e5e7eb; }
    .search-overlay .search-results {
        width: 90%; max-width: 400px; margin-top: 12px;
        background: white; border-radius: 16px; overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15); max-height: 60vh; overflow-y: auto;
    }
    .search-overlay .search-result-item {
        padding: 14px 20px; display: flex; align-items: center; gap: 12px;
        cursor: pointer; transition: background 0.15s; border-bottom: 1px solid #f3f4f6;
    }
    .search-overlay .search-result-item:last-child { border-bottom: none; }
    .search-overlay .search-result-item:hover { background: #f9fafb; }
    .search-overlay .search-result-item i { color: #0891B2; width: 20px; text-align: center; }
    .search-overlay .search-result-item span { font-size: 14px; color: #374151; }
    .search-overlay .search-empty { padding: 24px; text-align: center; color: #9ca3af; font-size: 14px; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
    .module-hero { padding: 92px 16px 16px; /* V5.28.11: margin-top:-48px已移除 */ }
    .module-hero h1 { font-size: 18px; }
    .module-cards { grid-template-columns: 1fr !important; }
    .navbar-user .user-dropdown { right: -10px; min-width: 180px; }
    /* 移动端显示汉堡菜单 */
    .mobile-menu-btn { display: flex !important; }
    /* 移动端遮罩 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1050;
    }
    .sidebar-overlay.active { display: block; }

    /* === 首页移动端优化 === */
    /* Hero区缩小 */
    .hero { padding: 84px 16px 24px !important; /* V5.28.11: margin-top:-48px已移除 */ }
    .hero h1 { font-size: 20px !important; margin-bottom: 8px !important; }
    .hero p { font-size: 13px !important; margin-bottom: 0 !important; }
    /* 流程地图：换行显示，3列2行 */
    .dash-pipeline-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .dash-pipe-stage {
        padding: 14px 10px 12px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
        border-left-width: 3px !important;
    }
    .dash-pipe-stage i { font-size: 20px !important; margin-bottom: 6px !important; }
    .dash-pipe-stage span { font-size: 10px !important; margin-top: 2px !important; }
    .dash-pipeline { padding: 0 12px 16px !important; }
    .dash-pipeline h3 { font-size: 15px !important; margin-bottom: 12px !important; }
    /* 快捷操作：2列紧凑 */
    .dash-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .dash-action-card { padding: 12px 10px !important; border-radius: 10px !important; }
    .dash-action-card .da-icon { width: 32px !important; height: 32px !important; font-size: 15px !important; margin-bottom: 6px !important; border-radius: 8px !important; }
    .dash-action-card .da-name { font-size: 12px !important; margin-bottom: 2px !important; }
    .dash-action-card .da-sub { font-size: 10px !important; }
    .dash-action-card .da-perm { font-size: 9px !important; padding: 1px 6px !important; top: 6px !important; right: 6px !important; }
    .dash-actions { padding: 16px 12px !important; margin: 0 !important; }
    .dash-actions h3 { font-size: 15px !important; margin-bottom: 12px !important; }
    /* 智能场景：2列紧凑 */
    .dash-scenario-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .smart-scenario-card { padding: 12px 10px !important; border-radius: 10px !important; }
    .smart-scenario-card .card-icon { width: 28px !important; height: 28px !important; font-size: 13px !important; border-radius: 8px !important; margin-bottom: 8px !important; }
    .smart-scenario-card h4 { font-size: 13px !important; margin-bottom: 4px !important; }
    .smart-scenario-card .card-role { font-size: 10px !important; padding: 1px 6px !important; margin-bottom: 6px !important; }
    .smart-scenario-card .card-desc { font-size: 11px !important; line-height: 1.4 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
    .smart-scenario-card .card-flow { margin-top: 8px !important; font-size: 10px !important; gap: 4px !important; }
    .dash-scenarios { padding: 0 12px 24px !important; }
    .dash-scenarios h3 { font-size: 15px !important; margin-bottom: 12px !important; }
    /* 最近动态：紧凑 */
    .dash-activity { padding: 0 12px 16px !important; }
    .dash-activity h3 { font-size: 15px !important; margin-bottom: 12px !important; }
    .dash-activity-item { padding: 12px 14px !important; gap: 10px !important; }
    .dash-activity-item .act-text { font-size: 12px !important; }
    .dash-activity-item .act-time { font-size: 11px !important; }
    /* 模块hero区移动端精简 */
    .module-hero { padding: 84px 14px 16px !important; /* V5.28.11: margin-top:-48px已移除 */ }
    .module-hero .hero-icon { width: 36px !important; height: 36px !important; font-size: 17px !important; border-radius: 10px !important; }
    .module-hero .hero-text h1 { font-size: 16px !important; }
    .module-hero .hero-en { font-size: 11px !important; }
    .module-hero .hero-desc { font-size: 11px !important; }
    /* 子模块卡片：2列紧凑 */
    .module-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .module-card { padding: 10px 8px !important; border-radius: 16px !important; }
    .module-card:hover { transform: none !important; }
    .module-card .card-icon { width: 28px !important; height: 28px !important; font-size: 13px !important; border-radius: 10px !important; margin-bottom: 6px !important; }
    .module-card .card-title { font-size: 12px !important; margin-bottom: 2px !important; }
    .module-card .card-desc { font-size: 10px !important; line-height: 1.3 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; margin-bottom: 4px !important; }
    .module-card .card-link { font-size: 10px !important; }
    /* 模块内func-tag胶囊化 */
    .ai-func-tag, .func-tag { border-radius: 10px !important; padding: 3px 8px !important; font-size: 10px !important; }
    /* ops卡片也胶囊 */
    .ops2-module-card { border-radius: 16px !important; padding: 10px 8px !important; }
    .ops2-module-card:hover { transform: none !important; }
    .ops2-module-card .ops2-card-icon { width: 28px !important; height: 28px !important; border-radius: 10px !important; font-size: 13px !important; }
    .ops2-module-card .ops2-card-title { font-size: 12px !important; }
    .ops2-module-card .ops2-card-desc { font-size: 10px !important; }


    /* V10.0.0-7: CR模块手机端面板收起优化 */
    .cr-detail-layout-v2 {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .cr-detail-input-v2 {
        border-radius: 0 0 16px 16px !important;
        padding: 16px !important;
        position: static !important;
        height: auto !important;
        max-height: none !important;
    }
    .cr-detail-ai-panel {
        border-radius: 16px !important;
        min-height: 300px !important;
    }
    .cr-form-toggle-btn { display: flex !important; }
    .cr-detail-layout-v2.form-collapsed {
        grid-template-columns: 1fr !important;
    }
    .cr-detail-layout-v2.form-collapsed .cr-detail-input-v2 {
        display: none !important;
        padding: 0 !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    .cr-detail-layout-v2.form-overlay .cr-detail-input-v2 {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 500 !important;
        border-radius: 0 !important;
        padding: 16px !important;
        overflow-y: auto !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #fff !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }
    .cr-detail-layout-v2.form-overlay .cr-detail-ai-panel {
        display: none !important;
    }
    .cr-form-expand-fab { display: flex !important; }
    /* V10.1.0-18: 移动端通用优化 */
    .cr-detail-page-v2 { padding: 0 !important; }
    .cr-detail-page-v2 > div:first-child { padding: 8px 12px !important; }
    .cr-detail-page-v2 > div:first-child div { font-size: 12px !important; flex-wrap: wrap !important; }
    .cr-detail-page-v2 > div:nth-child(2) { padding: 10px 12px !important; flex-wrap: wrap !important; gap: 8px !important; }
    .cr-detail-page-v2 > div:nth-child(2) > div:last-child { display: none !important; }
    .dd-tab { padding: 8px 12px !important; font-size: 12px !important; white-space: nowrap !important; }
    .dd-tab i { margin-right: 2px !important; }
    .cr-preanalysis-framework { padding: 14px !important; }
    .cr-preanalysis-title { font-size: 13px !important; margin-bottom: 10px !important; padding-bottom: 8px !important; }
    .cr-preanalysis-item { padding: 8px 10px !important; gap: 8px !important; }
    .cr-preanalysis-num { width: 20px !important; height: 20px !important; font-size: 10px !important; }
    .cr-preanalysis-text { font-size: 12px !important; line-height: 1.5 !important; }
    .dd-extra-toggle { padding: 6px 14px !important; font-size: 12px !important; }
    .dd-ai-btn { padding: 10px 16px !important; font-size: 13px !important; }
    .cr-ai-panel-tabs > div { padding: 6px 10px !important; font-size: 11px !important; }
    .cr-ai-empty-state { padding: 24px 16px !important; }
    .cr-ai-empty-state i { font-size: 24px !important; }
    .cr-ai-empty-state p { font-size: 13px !important; }
}
    
    /* ==================== V3.1: Clinical Smart Module 3-Zone Layout ==================== */
    .clinical-smart-module {
        display: grid;
        grid-template-columns: 35% 1fr;
        gap: 20px;
        padding: 16px 20px 20px;
        max-width: 1600px;
        margin: 0 auto;
        min-height: calc(100vh - 260px);
    }
    .clinical-input-panel {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        height: fit-content;
        position: sticky;
        top: 200px;
        max-height: calc(100vh - 220px);
        overflow-y: auto;
    }
    .clinical-input-panel .input-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--clinical-light);
    }
    .clinical-input-panel .input-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-dark);
    }
    .clinical-input-panel .role-badge {
        font-size: 12px;
        padding: 3px 10px;
        border-radius: 12px;
        background: var(--clinical-color);
        color: var(--clinical-accent);
    }
    .clinical-input-panel .perm-badge {
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: 6px;
    }
    .perm-badge.lead { background: #FFEBEE; color: #C62828; }
    .perm-badge.edit { background: #FFF3E0; color: #E65100; }
    .perm-badge.view { background: #ecfdf5; color: #307440; }
    .perm-badge.none { background: #F5F5F5; color: #9E9E9E; }
    .clinical-input-panel .form-group {
        margin-bottom: 14px;
    }
    .clinical-input-panel label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 4px;
        color: #374151;
    }
    .clinical-input-panel label .required {
        color: #ef4444;
        margin-left: 2px;
    }
    .clinical-input-panel input,
    .clinical-input-panel select,
    .clinical-input-panel textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        font-size: 13px;
        transition: border-color 0.2s;
        box-sizing: border-box;
        font-family: inherit;
    }
    .clinical-input-panel input:focus,
    .clinical-input-panel select:focus,
    .clinical-input-panel textarea:focus {
        outline: none;
        border-color: var(--clinical-accent);
        box-shadow: 0 0 0 3px rgba(156,39,176,0.1);
    }
    .clinical-input-panel textarea {
        min-height: 60px;
        resize: vertical;
    }
    .clinical-input-panel input[readonly],
    .clinical-input-panel select[disabled],
    .clinical-input-panel textarea[readonly] {
        background: #f9fafb;
        color: #9ca3af;
        cursor: not-allowed;
    }
    .clinical-input-panel .multi-select-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .clinical-input-panel .multi-select-item {
        padding: 4px 10px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
        user-select: none;
    }
    .clinical-input-panel .multi-select-item.selected {
        background: var(--clinical-accent);
        color: white;
        border-color: var(--clinical-accent);
    }
    .clinical-input-panel .multi-select-item.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .clinical-input-panel .file-upload-zone {
        border: 2px dashed var(--clinical-light);
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        color: var(--text-light);
        font-size: 13px;
        cursor: pointer;
        transition: all 0.3s;
    }
    .clinical-input-panel .file-upload-zone:hover {
        border-color: var(--clinical-accent);
        background: var(--clinical-color);
    }
    .clinical-input-panel .file-upload-zone i {
        font-size: 24px;
        display: block;
        margin-bottom: 8px;
        color: var(--clinical-accent);
    }

    /* Clinical 3-zone output */
    .clinical-output-area {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
        align-content: start;
    }
    .clinical-output-zone {
        background: white;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        min-height: 400px;
        max-height: calc(100vh - 220px);
        overflow-y: auto;
    }
    .clinical-output-zone .zone-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f3f4f6;
    }
    .clinical-output-zone .zone-header .zone-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }
    .clinical-zone-1 .zone-icon { background: #ecfdf5; color: #48a14d; }
    .clinical-zone-2 .zone-icon { background: #d1fae5; color: #2aacba; }
    .clinical-zone-3 .zone-icon { background: #d1fae5; color: #059669; }
    .clinical-output-zone .zone-title { font-size: 14px; font-weight: 600; }
    .clinical-output-zone .zone-content { font-size: 13px; line-height: 1.6; color: #4b5563; }
    .clinical-output-zone .zone-content .empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #9ca3af;
    }
    .clinical-output-zone .zone-content .empty-state i {
        font-size: 32px;
        margin-bottom: 12px;
        display: block;
    }
    .clinical-output-zone .zone-content .empty-state p {
        font-size: 13px;
    }

    /* No permission overlay */
    .no-permission-overlay {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        text-align: center;
        color: #9ca3af;
    }
    .no-permission-overlay i {
        font-size: 48px;
        margin-bottom: 16px;
        color: #d1d5db;
    }
    .no-permission-overlay h3 {
        font-size: 16px;
        color: #6b7280;
        margin-bottom: 8px;
    }
    .no-permission-overlay p {
        font-size: 13px;
        color: #9ca3af;
    }

    /* Clinical literature item in zone */
    .cl-lit-item {
        background: #f9fafb;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid #e5e7eb;
        transition: all 0.3s;
    }
    .cl-lit-item:hover {
        border-color: var(--clinical-accent);
    }
    .cl-lit-item:last-child { margin-bottom: 0; }
    .cl-lit-item .lit-title {
        font-size: 13px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 4px;
    }
    .cl-lit-item .lit-meta {
        font-size: 11px;
        color: #9ca3af;
        margin-bottom: 6px;
    }
    .cl-lit-item .lit-source-tag {
        display: inline-block;
        padding: 1px 6px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 500;
    }
    .lit-source-tag.pubmed { background: #ecfdf5; color: #307440; }
    .lit-source-tag.cnki { background: #FFECB3; color: #F57F17; }
    .lit-source-tag.cochrane { background: #E8F5E9; color: #2E7D32; }
    .lit-source-tag.clinicaltrials { background: #ecfdf5; color: #48a14d; }
    .lit-source-tag.internal { background: #E0F7FA; color: #00695C; }
    .cl-lit-item .lit-abstract {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.5;
        margin-top: 6px;
    }

    /* Clinical suggestion item in zone */
    .cl-sug-item {
        background: #f9fafb;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid #e5e7eb;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    .cl-sug-item:hover { border-color: var(--clinical-accent); }
    .cl-sug-item.adopted { border-color: #4CAF50; background: #F1F8F1; }
    .cl-sug-item .sug-check {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid #d1d5db;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 2px;
        transition: all 0.2s;
        font-size: 10px;
        color: transparent;
    }
    .cl-sug-item.adopted .sug-check {
        background: #4CAF50;
        border-color: #4CAF50;
        color: white;
    }
    .cl-sug-item .sug-title {
        font-size: 13px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 4px;
    }
    .cl-sug-item .sug-desc {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.5;
    }

    /* Clinical report section in zone */
    .cl-report-section {
        background: #f9fafb;
        border-radius: 8px;
        margin-bottom: 8px;
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }
    .cl-report-section:last-child { margin-bottom: 0; }
    .cl-report-section .rpt-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        cursor: pointer;
        transition: background 0.2s;
    }
    .cl-report-section .rpt-header:hover { background: #e5e7eb; }
    .cl-report-section .rpt-header h4 { font-size: 13px; font-weight: 600; color: #1f2937; }
    .cl-report-section .rpt-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .cl-report-section.expanded .rpt-body { max-height: 400px; }
    .cl-report-section.expanded .rpt-toggle { transform: rotate(180deg); }
    .rpt-toggle { transition: transform 0.3s; color: #9ca3af; font-size: 12px; }
    .cl-report-section .rpt-body-inner {
        padding: 10px 12px;
        font-size: 12px;
        color: #6b7280;
        line-height: 1.6;
        border-top: 1px solid #e5e7eb;
    }
    .cl-export-btns {
        display: flex;
        gap: 8px;
        margin-top: 12px;
    }
    .cl-export-btn {
        flex: 1;
        padding: 10px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.3s;
    }
    .cl-export-btn.pdf { background: #FF5252; color: white; }
    .cl-export-btn.word { background: #0891B2; color: white; }
    .cl-export-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

    /* Responsive for clinical module */
    @media (max-width: 1024px) {
        .clinical-smart-module { grid-template-columns: 1fr; }
        .clinical-input-panel { position: static; max-height: none; }
        .clinical-output-area { grid-template-columns: 1fr; }
        .clinical-output-zone { min-height: 200px; max-height: none; }
    }

    /* 子模块导航条 */
    .submodule-nav {
        background: white;
        border-bottom: 1px solid #e1e8ed;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .submodule-nav .sub-nav-label {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-light);
        margin-right: 8px;
    }
    .submodule-nav .sub-nav-btn {
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        border: 1px solid #e1e8ed;
        background: #f5f7fa;
        color: #555;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    .submodule-nav .sub-nav-btn:hover {
        border-color: #bbb;
        background: #eee;
    }
    .submodule-nav .sub-nav-btn.active {
        color: white;
        border-color: transparent;
    }
    .submodule-nav.discovery .sub-nav-btn.active {
        background: var(--discovery-accent);
    }
    .submodule-nav.preclinical .sub-nav-btn.active {
        background: var(--preclinical-accent);
    }

    /* 药物发现/临床前 三区输出(复用clinical样式,颜色不同) */

    #postSmartModule .clinical-input-panel .input-header { border-bottom-color: var(--postmarket-color); }
    #postSmartModule .clinical-input-panel .role-badge { background: var(--postmarket-color); color: var(--postmarket-accent); }
    #postSmartModule .clinical-input-panel input:focus,
    #postSmartModule .clinical-input-panel select:focus,
    #postSmartModule .clinical-input-panel textarea:focus { border-color: var(--postmarket-accent); box-shadow: 0 0 0 3px rgba(0,188,212,0.1); }
    #postSmartModule .clinical-input-panel .multi-select-item.selected { background: var(--postmarket-accent); border-color: var(--postmarket-accent); }

    #opsSmartModule .clinical-input-panel .input-header { border-bottom-color: var(--operation-color); }
    #opsSmartModule .clinical-input-panel .role-badge { background: var(--operation-color); color: var(--operation-accent); }
    #opsSmartModule .clinical-input-panel input:focus,
    #opsSmartModule .clinical-input-panel select:focus,
    #opsSmartModule .clinical-input-panel textarea:focus { border-color: var(--operation-accent); box-shadow: 0 0 0 3px rgba(96,125,139,0.1); }
    #opsSmartModule .clinical-input-panel .multi-select-item.selected { background: var(--operation-accent); border-color: var(--operation-accent); }

/* ==================== V3.3: Dashboard & Admin Panel ==================== */

/* Dashboard Quick Actions */
.dash-actions {
    padding: 24px;
    margin: 0 24px;
}
.dash-actions h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.dash-action-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 16px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}
.dash-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}
.dash-action-card .da-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}
.dash-action-card .da-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.dash-action-card .da-sub {
    font-size: 12px;
    color: var(--text-light);
}
.dash-action-card .da-perm {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}
.dash-action-card.da-all {
    background: linear-gradient(135deg, #0891B2, #2aacba);
    border-color: transparent;
}
.dash-action-card.da-all .da-name { color: white; }
.dash-action-card.da-all .da-sub { color: rgba(255,255,255,0.75); }
.dash-action-card.da-all .da-icon { background: rgba(255,255,255,0.2); color: white; }

/* Dashboard Activity */
.dash-activity {
    padding: 0 24px 24px;
}
.dash-activity h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-activity-list {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-item:hover { background: var(--bg-light); }
.dash-activity-item .act-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}
.dash-activity-item .act-content {
    flex: 1;
}
.dash-activity-item .act-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}
.dash-activity-item .act-time {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Dashboard Pipeline with role highlight */
.dash-pipeline {
    padding: 0 24px 24px;
}
.dash-pipeline h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.dash-pipe-stage {
    padding: 24px 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dash-pipe-stage.pipe-active {
    opacity: 1;
}
.dash-pipe-stage.pipe-inactive {
    opacity: 0.3;
    filter: grayscale(0.8);
}
.dash-pipe-stage:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.dash-pipe-stage i { display: block; font-size: 28px; margin-bottom: 10px; }

/* ==================== V5.42.0 首页全新布局 - 按参考图复刻 ==================== */

/* === 主内容区容器 === */
#page-home {
    background: #f6f8fb;
    min-height: 100vh;
}
#page-home .main-content {
    max-width: 1920px;
    margin: 0 auto;
}

/* === HERO 区域 - 浅绿白渐变 === */
.home-hero {
    background: linear-gradient(135deg, #F6FFFB 0%, #F4FBF8 50%, #EEF8F4 100%);
    color: #111827;
    padding: 32px 24px 28px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}
/* 首页topbar融入hero */
#page-home .topbar-breadcrumb a,
#page-home .topbar-breadcrumb .bc-sep { color: rgba(17,24,39,0.5); }
#page-home .topbar-breadcrumb .bc-current { color: #0891B2; }
#page-home .topbar-right { color: rgba(17,24,39,0.7); }
.topbar.scrolled .topbar-breadcrumb a { color: #6b7280; }
.topbar.scrolled .topbar-breadcrumb .bc-sep { color: #d1d5db; }
.topbar.scrolled .topbar-breadcrumb .bc-current { color: #0891B2; }
.topbar.scrolled .topbar-right { color: #374151; }
#page-home .topbar-search i { color: rgba(17,24,39,0.5); }
#page-home .topbar-user-mobile i { color: rgba(17,24,39,0.7); }
/* DNA/分子装饰背景 */
.home-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -20px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(8,145,178,0.06) 0%, rgba(37,99,235,0.03) 40%, transparent 70%);
    pointer-events: none;
}
.home-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(8,145,178,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.home-hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: #111827;
}
.home-hero-title span {
    background: linear-gradient(90deg, #0891B2, #0891B2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-hero-sub {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.6;
}
.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.home-hero-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.8);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0 14px;
    height: 38px;
    min-width: 260px;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.home-hero-search:focus-within {
    background: #fff;
    border-color: #0891B2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.home-hero-search i {
    color: #9ca3af;
    font-size: 14px;
    margin-right: 8px;
}
.home-hero-search input {
    background: none;
    border: none;
    color: #111827;
    font-size: 13px;
    outline: none;
    width: 100%;
}
.home-hero-search input::placeholder {
    color: #9ca3af;
}
.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}
.home-hero-btn-primary {
    background: linear-gradient(135deg, #0891B2, #0891B2);
    color: white;
    box-shadow: 0 2px 8px rgba(8,145,178,0.3);
}
.home-hero-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(8,145,178,0.4);
}
.home-hero-btn-ghost {
    background: #fff;
    color: #374151;
    border: 1px solid #E5E7EB;
}
.home-hero-btn-ghost:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.home-hero-btn-ghost.active {
    background: #0891B2;
    color: white;
    border-color: #0891B2;
}

.home-hero-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #166534, #0891B2);
    color: #fff;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(8,145,178,0.2);
    transition: all 0.25s;
    margin-top: 4px;
}
.home-hero-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(8,145,178,0.4);
}

.home-hero-welcome {
    position: absolute;
    top: 16px;
    right: 24px;
    z-index: 1;
    font-size: 13px;
    color: #6B7280;
}
.home-hero-welcome span {
    color: #0891B2;
    font-weight: 500;
}
/* DNA装饰SVG */
.home-hero-dna {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.08;
    pointer-events: none;
    width: 220px;
    height: 220px;
}

/* === 五大阶段卡片区域 === */
.home-flow-section {
    padding: 20px 24px;
    background: #f6f8fb;
}
.home-flow-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.home-flow-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-flow-header h3 i { color: #0891B2; }
.home-flow-header .home-flow-sub {
    font-size: 12px;
    color: #6B7280;
    margin-left: 4px;
}
.home-flow-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
}
.home-flow-card {
    flex: 1;
    max-width: 220px;
    min-width: 150px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 16px 16px;
    text-align: left;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.home-flow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.home-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: transparent;
}
/* 大号半透明序号 */
.home-flow-seq {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 36px;
    font-weight: 800;
    opacity: 0.08;
    line-height: 1;
    color: #111827;
    pointer-events: none;
}
/* 阶段颜色 */
.home-flow-card.fc-discovery::before { background: #0891B2; }
.home-flow-card.fc-preclinical::before { background: #7c3aed; }
.home-flow-card.fc-preclinical:hover { border-color: rgba(124,58,237,0.3); }
.home-flow-card.fc-discovery:hover { border-color: rgba(8,145,178,0.3); }
.home-flow-card.fc-clinical::before { background: #2563eb; }
.home-flow-card.fc-clinical:hover { border-color: rgba(37,99,235,0.3); }
.home-flow-card.fc-operations::before { background: #0891b2; }
.home-flow-card.fc-operations:hover { border-color: rgba(8,145,178,0.3); }
.home-flow-card.fc-project::before { background: #059669; }
.home-flow-card.fc-project:hover { border-color: rgba(5,150,105,0.3); }
.home-flow-card.fc-knowledge::before { background: #475569; }
.home-flow-card.fc-knowledge:hover { border-color: rgba(71,85,105,0.3); }
.home-flow-card.fc-registration::before { background: #059669; }
.home-flow-card.fc-registration:hover { border-color: rgba(5,150,105,0.3); }
.home-flow-card.fc-postmarket::before { background: #f59e0b; }
.home-flow-card.fc-postmarket:hover { border-color: rgba(245,158,11,0.3); }
.home-flow-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
}
.home-flow-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}
.home-flow-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 10px;
}
.home-flow-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #6B7280;
}
.home-flow-stats span { display: flex; align-items: center; gap: 3px; }
.home-flow-stats .flow-stat-val { font-weight: 600; color: #374151; }
.home-flow-arrow {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: #d1d5db;
    font-size: 16px;
    flex-shrink: 0;
}
.home-flow-arrow i {
    animation: flowArrowPulse 2s ease-in-out infinite;
}
@keyframes flowArrowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 0.8; transform: translateX(3px); }
}

/* === KPI 仪表盘 === */
.home-kpi-section {
    padding: 16px 24px 20px;
    background: #f6f8fb;
}
.home-kpi-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.home-kpi-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-kpi-section-header h3 i { color: #0891B2; }
.home-kpi-section-header .home-kpi-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6B7280;
}
.home-kpi-section-header .home-kpi-month-select {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    outline: none;
}
.home-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.home-kpi-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.home-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: transparent;
}
.home-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--kpi-color, #2563eb);
}
.home-kpi-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-kpi-ring-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    position: relative;
}
.home-kpi-ring-wrap svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.home-kpi-ring-bg {
    fill: none;
    stroke: #f3f4f6;
    stroke-width: 5;
}
.home-kpi-ring-fill {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}
.home-kpi-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.home-kpi-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.home-kpi-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-kpi-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}
.home-kpi-trend {
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
    width: fit-content;
}
.home-kpi-trend.up { color: #16a34a; background: #f0fdf4; }
.home-kpi-trend.down { color: #dc2626; background: #fef2f2; }

/* === 底部三栏（项目动态 | AI智能洞察 | 快捷入口） === */
.home-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 0 24px 20px;
    background: #f6f8fb;
}
.home-bottom-panel {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.home-bottom-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.home-bottom-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-bottom-header .home-more-link {
    font-size: 12px;
    color: #0891B2;
    cursor: pointer;
    font-weight: 500;
}
.home-bottom-header .home-more-link:hover {
    text-decoration: underline;
}
.home-bottom-body {
    padding: 10px 18px 14px;
}
/* 项目动态列表 */
.home-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f9fafb;
}
.home-activity-item:last-child { border-bottom: none; }
.home-activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.home-activity-content { flex: 1; }
.home-activity-text { font-size: 12px; color: #374151; line-height: 1.5; }
.home-activity-text strong { color: #111827; font-weight: 600; }
.home-activity-time { font-size: 11px; color: #9ca3af; margin-top: 2px; }
/* AI洞察 */
.home-ai-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f9fafb;
    cursor: pointer;
}
.home-ai-item:hover .home-ai-title { color: #0891B2; }
.home-ai-item:last-child { border-bottom: none; }
.home-ai-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.home-ai-content { flex: 1; }
.home-ai-title { font-size: 12px; color: #374151; font-weight: 600; }
.home-ai-desc { font-size: 11px; color: #6B7280; margin-top: 1px; line-height: 1.4; }
.home-ai-action {
    font-size: 11px;
    color: #2563eb;
    cursor: pointer;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.home-ai-action:hover { text-decoration: underline; }
/* 快捷入口 */
.home-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.home-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.home-quick-item:hover {
    background: #f0fdf4;
    border-color: rgba(8,145,178,0.2);
}
.home-quick-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.home-quick-label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
}

/* ==================== V10.4 首页工作台重构：从宣传页改为研发运营驾驶舱 ==================== */
#page-home {
    background: #f4f7fa;
}
#page-home .topbar {
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
}
#page-home .topbar.scrolled {
    background: transparent;
    border-bottom: 0;
}
.sidebar-user-row .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ecfeff !important;
    color: #0891b2 !important;
    border: 1px solid #bae6fd !important;
    box-shadow: none !important;
}
.sidebar-user-row .user-avatar:hover {
    box-shadow: 0 0 0 3px rgba(8,145,178,0.12) !important;
}
.search-overlay:not(.active) {
    display: none !important;
    position: fixed;
    inset: 0;
    height: 0 !important;
    overflow: hidden;
}
.home-hero {
    min-height: 0;
    padding: 32px 24px 18px;
    background: #eaf6fb;
    border-bottom: 1px solid #cfe8f3;
}
.home-hero::before,
.home-hero::after,
.home-hero-dna {
    display: none;
}
.home-hero-welcome {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #64748b;
}
.home-hero-inner {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: stretch;
}
.home-hero-main-copy {
    min-width: 0;
}
.home-hero-title {
    font-size: 24px;
    letter-spacing: 0;
    margin-bottom: 6px;
}
.home-hero-sub {
    max-width: 720px;
    margin-bottom: 16px;
    color: #64748b;
}
.home-hero-actions {
    align-items: stretch;
    gap: 10px;
}
.home-hero-search {
    min-width: min(420px, 100%);
    height: 40px;
    background: #fff;
    border-color: #dbe3ea;
    box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}
.home-hero-btns-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.home-hero-btn {
    height: 40px;
    border-radius: 7px;
    padding: 0 13px;
    box-shadow: none;
    border: 1px solid #dbe3ea;
}
.home-hero-btn-primary {
    background: #0891b2;
    border-color: #0891b2;
    color: #fff;
}
.home-hero-btn-ghost {
    background: #fff;
    color: #374151;
}
.home-hero-btn-ghost:hover {
    background: #f8fbfd;
    border-color: #b7dfe8;
    color: #0f766e;
}
.home-hero-btn-primary:hover,
.home-hero-download-btn:hover,
.home-flow-card:hover,
.home-kpi-card:hover {
    transform: none;
}
.home-hero-download-btn {
    height: 40px;
    margin-top: 0;
    border-radius: 7px;
    background: #0f766e;
    box-shadow: none;
}
.home-hero-side {
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border: 1px solid #dbe3ea;
    box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}
.home-command-item {
    min-width: 0;
    padding-left: 12px;
    border-left: 3px solid #0891b2;
}
.home-command-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}
.home-command-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
}
.home-command-desc {
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}
.home-flow-section,
.home-kpi-section {
    padding: 18px 24px 0;
    background: #f4f7fa;
}
.home-flow-header,
.home-kpi-section-header {
    margin-bottom: 10px;
}
.home-flow-header h3,
.home-kpi-section-header h3 {
    font-size: 15px;
}
.home-flow-row {
    gap: 10px;
    justify-content: stretch;
}
.home-flow-arrow {
    display: none;
}
.home-flow-card {
    max-width: none;
    min-width: 0;
    border-radius: 8px;
    padding: 14px;
    box-shadow: none;
}
.home-flow-card:hover,
.home-kpi-card:hover,
.home-bottom-panel:hover {
    border-color: #b7dfe8;
    box-shadow: 0 8px 18px rgba(15,23,42,0.07);
}
.home-flow-seq {
    font-size: 28px;
}
.home-flow-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 15px;
}
.home-flow-desc {
    color: #64748b;
    min-height: 28px;
}
.home-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.home-kpi-card {
    border-radius: 8px;
    padding: 14px;
    box-shadow: none;
}
.home-kpi-card-inner {
    display: block;
}
.home-kpi-ring-wrap {
    display: none;
}
.home-kpi-label {
    color: #64748b;
    white-space: normal;
}
.home-kpi-value {
    margin-top: 6px;
    font-size: 24px;
}
.home-kpi-trend {
    margin-top: 8px;
}
.home-kpi-detail {
    margin-top: 10px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.45;
}
.home-kpi-bar {
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.home-kpi-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--kpi-color, #0891b2);
}
.home-bottom-grid {
    grid-template-columns: 1.15fr 1fr 0.85fr;
    gap: 12px;
    padding: 14px 24px 20px;
    background: #f4f7fa;
}
.home-bottom-panel {
    border-radius: 8px;
    box-shadow: none;
}
.home-bottom-header {
    padding: 10px 14px 8px;
}
.home-bottom-header h4 { font-size: 13px; }
.home-bottom-header .home-more-link { font-size: 11px; }
.home-bottom-body {
    padding: 6px 14px 10px;
}
.home-activity-avatar {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 11px;
}
.home-activity-item,
.home-ai-item {
    gap: 8px;
    padding: 7px 0;
}
.home-activity-text,
.home-ai-title {
    font-size: 11px;
    line-height: 1.35;
}
.home-activity-time,
.home-ai-desc {
    font-size: 10px;
    line-height: 1.35;
}
.home-ai-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 11px;
}
.home-ai-action {
    margin-top: 2px;
    font-size: 10px;
}
.home-quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.home-quick-item {
    border-radius: 7px;
    padding: 7px 8px;
    gap: 7px;
}
.home-quick-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 12px;
}
.home-quick-label {
    font-size: 11px;
}

/* === 响应式 === */
@media (max-width: 1200px) {
    .home-hero-inner { grid-template-columns: 1fr; }
    .home-hero-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .home-flow-card { min-width: 130px; padding: 16px 12px 14px; }
    .home-bottom-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .home-hero { padding: 30px 16px 20px; }
    .home-hero-title { font-size: 22px; }
    .home-hero-sub { font-size: 13px; }
    .home-hero-inner { display: block; }
    .home-hero-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
        padding: 10px;
    }
    .home-command-item { padding-left: 8px; border-left-width: 2px; }
    .home-command-label { font-size: 11px; margin-bottom: 3px; }
    .home-command-value { font-size: 18px; line-height: 1.1; }
    .home-command-desc { font-size: 10px; line-height: 1.3; margin-top: 4px; }
    .home-hero-search { min-width: 200px; }
    .home-hero-welcome { display: none; }
    .home-hero-dna { display: none; }
    .home-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .home-kpi-ring-wrap { width: 40px; height: 40px; }
    .home-kpi-ring-center { font-size: 9px; }
    .home-kpi-value { font-size: 18px; }
    .home-flow-section { padding: 16px 16px; }
    .home-flow-header,
    .home-kpi-section-header { display: block; }
    .home-flow-header .home-flow-sub { display: block; margin: 4px 0 0 24px; }
    .home-kpi-section-header .home-kpi-header-right { margin-top: 8px; }
    .home-flow-row { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .home-flow-arrow { display: none; }
    .home-flow-card { min-width: 0; max-width: none; flex: 1 1 calc(33.3% - 6px); padding: 12px 10px 10px; }
    .home-flow-icon { width: 30px; height: 30px; font-size: 14px; }
    .home-flow-name { font-size: 13px; }
    .home-flow-desc { display: none; }
    .home-flow-seq { font-size: 28px; }
    .home-bottom-grid { grid-template-columns: 1fr; gap: 12px; padding: 16px 16px; }
}
@media (max-width: 768px) {
    /* V10.1.0-20: 移动端按钮精简 */
    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .home-hero-search {
        min-width: 0;
        height: 36px;
        border-radius: 20px;
    }
    .home-hero-search input { font-size: 14px; }
    /* 按钮变紧凑胶囊横排 */
    .home-hero-btns-row {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .home-hero-btns-row::-webkit-scrollbar { display: none; }
    .home-hero-btn {
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 18px;
        white-space: nowrap;
        flex-shrink: 0;
        gap: 4px;
    }
    .home-hero-btn i { font-size: 11px; }
    .home-hero-btn-primary { padding: 7px 14px; }
    /* 下载APP按钮也精简 */
    .home-hero-actions a[download] {
        padding: 7px 14px !important;
        font-size: 12px !important;
        border-radius: 18px !important;
        margin-left: 0 !important;
    }
}
@media (max-width: 480px) {
    .home-hero { padding: 26px 12px 16px; }
    .home-hero-title { font-size: 18px; }
    .home-hero-search { min-width: 0; }
    .home-hero-side { padding: 8px; gap: 6px; }
    .home-command-item { padding-left: 6px; }
    .home-command-value { font-size: 17px; }
    .home-command-desc { display: none; }
    .home-kpi-grid { grid-template-columns: 1fr 1fr; }
    .home-kpi-card { padding: 12px; }
    .home-kpi-detail { display: none; }
    .home-flow-card { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 10px 8px 8px; }
    .home-flow-name { font-size: 12px; }
}
@media (max-width: 375px) {
    .home-flow-card { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 8px 6px 6px; }
    .home-flow-icon { width: 26px; height: 26px; font-size: 12px; }
    .home-flow-seq { font-size: 24px; }
    .home-quick-grid { grid-template-columns: 1fr; }
}

/* V10.5.572: 超小屏首页平台入口回归浅色平台调性 */
@media (max-width: 520px) {
    .home-flow-section {
        background: #eaf7fb;
        padding: 18px 16px 20px;
        border-top: 1px solid #d7ecf3;
        border-bottom: 1px solid #d7ecf3;
    }
    .home-flow-header {
        display: block;
        margin-bottom: 14px;
    }
    .home-flow-header h3 {
        color: #334155;
        font-size: 15px;
        font-weight: 800;
    }
    .home-flow-header h3 i,
    .home-flow-header .home-flow-sub,
    .home-flow-seq,
    .home-flow-desc,
    .home-flow-arrow {
        display: none !important;
    }
    .home-flow-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: start;
        justify-content: stretch;
    }
    .home-flow-card {
        min-width: 0;
        max-width: none;
        min-height: 0;
        padding: 12px 10px;
        border: 1px solid #cfe3ee;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(15, 118, 150, .08);
        text-align: center;
        overflow: hidden;
    }
    .home-flow-card::before {
        display: none;
    }
    .home-flow-card .rbac-entry-badge {
        display: none !important;
    }
    .home-flow-card:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }
    .home-flow-icon {
        width: 54px;
        height: 54px;
        margin: 0 auto 8px;
        border-radius: 14px;
        color: #fff !important;
        font-size: 22px;
        box-shadow: inset -8px -8px 0 rgba(15, 23, 42, .08), 0 8px 16px rgba(14, 116, 144, .12);
    }
    .home-flow-name {
        max-width: 76px;
        margin: 0 auto;
        color: #0f172a;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.25;
        word-break: break-word;
    }
    .home-flow-stats {
        display: none !important;
    }
    .home-flow-card.fc-clinical .home-flow-icon {
        background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
    }
    .home-flow-card.fc-operations .home-flow-icon {
        background: linear-gradient(135deg, #0891b2, #14b8a6) !important;
    }
    .home-flow-card.fc-project .home-flow-icon {
        background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
    }
    .home-flow-card.fc-knowledge .home-flow-icon {
        background: linear-gradient(135deg, #0f766e, #67e8f9) !important;
    }
    .home-flow-card.rbac-entry-locked {
        opacity: .42;
    }
    .home-flow-card.rbac-entry-locked .home-flow-icon {
        filter: grayscale(.45);
    }

    .module-overview {
        padding: 0 14px 22px;
        background: #0b0f14;
    }
    .module-sub-header {
        display: block;
        margin: 0 0 14px;
        padding-top: 12px;
    }
    .module-sub-header h3 {
        color: #8b949e;
        font-size: 15px;
    }
    .module-sub-header .sub-count,
    .ops-overview-note,
    .module-card .card-desc,
    .module-card .card-link {
        display: none !important;
    }
    .module-cards,
    .ops-module-group-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 22px 14px !important;
    }
    .module-card {
        min-height: 0;
        padding: 0 !important;
        border: 0;
        border-radius: 0 !important;
        background: transparent;
        box-shadow: none;
        text-align: center;
        overflow: visible;
    }
    .module-card:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }
    .module-card .card-icon {
        width: 54px !important;
        height: 54px !important;
        margin: 0 auto 8px !important;
        border-radius: 12px !important;
        font-size: 22px !important;
        box-shadow: inset -8px -8px 0 rgba(0,0,0,.08);
    }
    .module-card .card-title {
        max-width: 76px;
        margin: 0 auto !important;
        color: #f8fafc;
        font-size: 14px !important;
        font-weight: 500;
        line-height: 1.25;
        word-break: break-word;
    }
    .ops-module-group {
        margin-bottom: 18px;
        padding: 14px 12px 18px;
        border: 1px solid #1f2933;
        border-radius: 14px;
        background: #15191e;
    }
    .ops-module-group-head {
        display: block;
        margin-bottom: 14px;
        padding: 0;
        border: 0;
    }
    .ops-module-group-head h4 {
        color: #8b949e;
        font-size: 15px;
    }
    .ops-module-group-head p,
    .ops-module-group-head span {
        display: none;
    }

    .smart-scenario-grid,
    .dash-scenario-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 22px 14px !important;
    }
    .smart-scenario-card {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: center;
    }
    .smart-scenario-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .smart-scenario-card .card-icon {
        width: 54px !important;
        height: 54px !important;
        margin: 0 auto 8px !important;
        border-radius: 12px !important;
        font-size: 22px !important;
        color: #fff !important;
        box-shadow: inset -8px -8px 0 rgba(0,0,0,.08);
    }
    .smart-scenario-card h4 {
        max-width: 76px;
        margin: 0 auto !important;
        color: #f8fafc;
        font-size: 14px !important;
        font-weight: 500;
        line-height: 1.25;
    }
    .smart-scenario-card .card-role,
    .smart-scenario-card .card-desc,
    .smart-scenario-card .card-flow {
        display: none !important;
    }
}

/* Dashboard Smart Scenarios (dynamic) */
.dash-scenarios {
    padding: 0 24px 40px;
}
.dash-scenarios h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Admin Panel */
.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.admin-overlay.show {
    display: flex;
}
.admin-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.admin-panel {
    position: relative;
    width: 92%;
    max-width: 960px;
    max-height: 90vh;
    background: #1a3a2a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-header h2 {
    color: #0891B2;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.admin-close:hover { background: rgba(255,255,255,0.1); color: white; }
.admin-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    color: #e0e0e0;
}
.admin-section {
    margin-bottom: 32px;
}
.admin-section h3 {
    color: #0891B2;
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.admin-label {
    color: #a0a0c0;
    font-size: 14px;
    min-width: 120px;
}
.admin-input {
    flex: 1;
    padding: 10px 14px;
    background: #2d2a5e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.admin-input:focus { border-color: #0891B2; }
.admin-input::placeholder { color: #6b6b8d; }
.admin-toggle {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}
.admin-toggle-btn {
    padding: 8px 20px;
    background: #2d2a5e;
    color: #a0a0c0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.admin-toggle-btn.active {
    background: #0891B2;
    color: #1a3a2a;
    font-weight: 600;
}
.admin-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-btn-primary {
    background: #0891B2;
    color: #1a3a2a;
}
.admin-btn-primary:hover { background: #f59e0b; }
.admin-btn-secondary {
    background: #2d2a5e;
    color: #a0a0c0;
    border: 1px solid rgba(255,255,255,0.15);
}
.admin-btn-secondary:hover { background: #3d3a6e; color: white; }
.admin-btn-test {
    background: #3b82f6;
    color: white;
}
.admin-btn-test:hover { background: #2aacba; }
.admin-agent-list {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}
.admin-agent-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}
.admin-agent-item:last-child { border-bottom: none; }
.admin-agent-name {
    flex: 1;
    color: #e0e0e0;
}
.admin-agent-id {
    color: #6b6b8d;
    font-size: 12px;
    min-width: 180px;
    font-family: 'Courier New', monospace;
}
.admin-agent-status {
    min-width: 70px;
    text-align: center;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
}
.admin-agent-status.disconnected { background: rgba(255,255,255,0.05); color: #6b6b8d; }
.admin-agent-status.connected { background: rgba(34,197,94,0.15); color: #22c55e; }
.admin-agent-status.error { background: rgba(239,68,68,0.15); color: #ef4444; }
.admin-sys-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.admin-sys-card {
    background: #2d2a5e;
    border-radius: 8px;
    padding: 14px 18px;
}
.admin-sys-card .label {
    font-size: 12px;
    color: #6b6b8d;
    margin-bottom: 6px;
}
.admin-sys-card .value {
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 500;
}

/* Navbar Admin Button */
/* admin button moved to user dropdown */

/* password toggle */
.pwd-toggle {
    background: #2d2a5e;
    border: 1px solid rgba(255,255,255,0.15);
    color: #a0a0c0;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}
.pwd-toggle:hover { color: white; }
.admin-pwd-wrap {
    display: flex;
    flex: 1;
}
.admin-pwd-wrap .admin-input {
    border-radius: 8px 0 0 8px;
}
.admin-pwd-wrap .admin-input.pwd-visible {
    -webkit-text-security: none;
}

/* Test result toast inside admin */
.admin-test-result {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
}
.admin-test-result.success { display: block; background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.admin-test-result.error { display: block; background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.admin-test-result.info { display: block; background: rgba(8,145,178,0.1); color: #0891B2; border: 1px solid rgba(8,145,178,0.2); }

/* V3.8: Admin Tabs */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0 28px;
    background: rgba(0,0,0,0.15);
}
.admin-tab {
    padding: 12px 20px;
    color: #a0a0c0;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.admin-tab:hover { color: #0891B2; }
.admin-tab.active { color: #0891B2; border-bottom-color: #0891B2; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* V5.58.1: Token统计页面样式 */
.token-stats-filter { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.token-filter-group { display: flex; flex-direction: column; gap: 4px; }
.token-filter-group label { font-size: 12px; color: #a0a0c0; }
.token-filter-group select { padding: 8px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; background: rgba(255,255,255,0.06); color: #d0d0e8; font-size: 13px; min-width: 120px; }
.token-filter-group select:focus { outline: none; border-color: #0891B2; }
.token-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.token-kpi-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px; text-align: center; }
.token-kpi-value { font-size: 24px; font-weight: 700; color: #0891B2; margin-bottom: 4px; }
.token-kpi-label { font-size: 12px; color: #8b8ba8; }
.token-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; }
.token-stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.token-stats-table th { background: rgba(255,255,255,0.06); padding: 10px 12px; text-align: left; color: #a0a0c0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; }
.token-stats-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #d0d0e8; }
.token-stats-table tr:hover td { background: rgba(8,145,178,0.06); }
.token-stats-table td.token-num { text-align: right; font-variant-numeric: tabular-nums; }

/* V3.8: User Management Table */
.user-mgmt-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}
.user-mgmt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.user-mgmt-table th {
    background: rgba(0,0,0,0.2);
    color: #a0a0c0;
    padding: 10px 14px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}
.user-mgmt-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e0e0e0;
}
.user-mgmt-table tr:last-child td { border-bottom: none; }
.user-mgmt-table tr:hover td { background: rgba(251,191,36,0.04); }
.user-mgmt-table .pos-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin: 1px 2px;
    background: rgba(8,145,178,0.15);
    color: #a5b4fc;
}
.user-mgmt-table .status-active { color: #22c55e; }
.user-mgmt-table .status-disabled { color: #ef4444; }
.user-mgmt-table .action-btn {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    margin-right: 4px;
    transition: all 0.2s;
}
.user-mgmt-table .action-edit { background: rgba(8,145,178,0.15); color: #0891B2; }
.user-mgmt-table .action-edit:hover { background: rgba(8,145,178,0.3); }
.user-mgmt-table .action-toggle-active { background: rgba(239,68,68,0.15); color: #f87171; }
.user-mgmt-table .action-toggle-active:hover { background: rgba(239,68,68,0.3); }
.user-mgmt-table .action-toggle-disabled { background: rgba(34,197,94,0.15); color: #4ade80; }
.user-mgmt-table .action-toggle-disabled:hover { background: rgba(34,197,94,0.3); }
.user-mgmt-table .action-reset { background: rgba(251,191,36,0.15); color: #0891B2; }
.user-mgmt-table .action-reset:hover { background: rgba(251,191,36,0.3); }

/* V3.8: User Edit Modal */
.user-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.user-modal-overlay.show { display: flex; }
.user-modal-content {
    background: #1a3a2a;
    border-radius: 16px;
    width: 520px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.user-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.user-modal-header h3 {
    color: #0891B2;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-modal-close {
    color: #a0a0c0;
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}
.user-modal-close:hover { background: rgba(255,255,255,0.1); color: white; }
.user-modal-body { padding: 24px; }
.user-form-group { margin-bottom: 18px; }
.user-form-group label {
    display: block;
    color: #a0a0c0;
    font-size: 13px;
    margin-bottom: 6px;
}
.user-form-group input,
.user-form-group select {
    width: 100%;
    padding: 10px 14px;
    background: #2d2a5e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.user-form-group input:focus,
.user-form-group select:focus { border-color: #0891B2; }
.user-form-group input::placeholder { color: #6b6b8d; }

/* V3.8: Position row in user modal */
.position-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.position-row select {
    flex: 1;
    padding: 8px 10px;
    background: #2d2a5e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13px;
    outline: none;
}
.position-row select:focus { border-color: #0891B2; }
.pos-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.pos-remove:hover { color: #ef4444; background: rgba(239,68,68,0.15); }
.add-position-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #a0a0c0;
    font-size: 13px;
    cursor: pointer;
    background: none;
    transition: all 0.2s;
    margin-top: 4px;
}
.add-position-btn:hover { border-color: #0891B2; color: #0891B2; }
.user-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-section-label-action {
    cursor: pointer;
    outline: none;
    border-radius: 8px;
}
.sidebar-section-label-action:hover,
.sidebar-section-label-action:focus {
    color: #22D3EE;
    background: rgba(6,182,212,0.08);
}
.user-modal-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.user-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.user-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex-shrink: 0;
    background: #1a3a2a;
}

        /* ==================== 模块页Hero区 ==================== */
        .module-hero {
            position: relative;
            padding: 96px 32px 24px;  /* 原48px + 48px(topbar) */
            /* V5.28.11: overflow:hidden→overflow-x:hidden 让背景覆盖topbar区域 */
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #d1fae5 100%);
            overflow-x: hidden;
            overflow-y: visible;
            border-bottom: 1px solid #dcfce7;
        }
        .module-hero::before {
            content: '';
            position: absolute;
            top: -60px;
            right: -40px;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: rgba(8,145,178,0.08);
        }
        .module-hero::after {
            content: '';
            position: absolute;
            bottom: -40px;
            left: 80px;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: rgba(42,172,186,0.06);
        }
        .module-hero .hero-main {
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
            z-index: 1;
        }
        .module-hero .hero-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: white;
            flex-shrink: 0;
        }
        .module-hero .hero-text h1 {
            font-size: 24px;
            font-weight: 700;
            color: #1f2937;
            margin: 0;
            line-height: 1.3;
        }
        .module-hero .hero-en {
            font-size: 13px;
            color: #9ca3af;
            margin-top: 2px;
        }
        .module-hero .hero-desc {
            font-size: 13px;
            color: #6b7280;
            margin-top: 4px;
        }

        #page-project-management {
            background: #f4f9fb;
        }
        .main-container > #page-project-management.page.active {
            margin-top: calc(var(--app-topbar-height) * -1);
        }
        #page-project-management > .module-hero {
            background: #eaf6fb;
            margin: 0 0 14px;
            padding: calc(var(--app-topbar-height) + 24px) 24px 20px;
            border: 0;
            border-bottom: 1px solid #d7eaf2;
            border-radius: 0;
            box-shadow: none;
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
            gap: 18px;
            align-items: center;
        }
        #page-project-management > .module-hero::before,
        #page-project-management > .module-hero::after {
            display: none;
        }
        #page-project-management > .module-hero .hero-desc {
            color: #5b7284;
        }
        #page-project-management .module-hero-side {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }
        #page-project-management .module-hero-stat {
            min-height: 66px;
            padding: 11px 12px;
            border: 1px solid #dbeafe;
            border-left: 3px solid #0891b2;
            border-radius: 9px;
            background: #fff;
            box-shadow: 0 6px 16px rgba(15,23,42,.04);
        }
        #page-project-management .module-hero-stat label {
            display: block;
            margin-bottom: 4px;
            font-size: 11px;
            color: #64748b;
            white-space: nowrap;
        }
        #page-project-management .module-hero-stat strong {
            display: block;
            color: #0f172a;
            font-size: 22px;
            font-weight: 800;
            line-height: 1;
        }
        #page-project-management .module-hero-stat span {
            display: block;
            margin-top: 5px;
            color: #64748b;
            font-size: 11px;
            line-height: 1.35;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        @media (max-width: 1180px) {
            #page-project-management > .module-hero {
                grid-template-columns: 1fr;
            }
            #page-project-management .module-hero-side {
                display: none;
            }
        }
        @media (max-width: 768px) {
            #page-project-management > .module-hero {
                margin: 0 0 12px;
                padding: calc(var(--app-topbar-height) + 20px) 14px 16px;
            }
        }

        /* 各模块图标颜色 - 6色差异化 */
        .hero-icon.discovery { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
        .hero-icon.clinical { background: linear-gradient(135deg, #0891B2, #86efac); }
        .hero-icon.postmarket { background: linear-gradient(135deg, #2563eb, #60a5fa); }
        .hero-icon.operations { background: linear-gradient(135deg, #d97706, #fbbf24); }

        /* 子模块Tab按钮（替代原compact-tabs） */
        .compact-tab-btn {
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 13px;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            background: #f0f0f0;
            color: #555;
        }
        .compact-tab-btn:hover {
            background: #e0e0e0;
        }
        .compact-tab-btn.active {
            color: white;
        }

/* ==================== 模块概览页 ==================== */
.module-overview {
    padding: 0 24px 32px;
}

.module-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 16px;
}

.module-sub-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.module-sub-header .sub-count {
    font-size: 13px;
    color: #9ca3af;
}

.module-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.module-cards.ops-grouped-cards {
    display: block;
}

.ops-overview-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.6;
}

.ops-overview-note i {
    margin-top: 2px;
    color: #2563eb;
}

.ops-module-group {
    margin-bottom: 18px;
}

.ops-module-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.ops-module-group-head h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.ops-module-group-head p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.ops-module-group-head span {
    flex-shrink: 0;
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 3px 8px;
}

.ops-module-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.module-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: transparent;
}

.module-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    margin-bottom: 14px;
}

.module-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.module-card .card-desc {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 12px;
}

.module-card .card-link {
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 各模块主题色 - 6色差异化 */
.card-icon.discovery { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.card-link.discovery { color: #7c3aed; }
.card-link.preclinical { color: #0891b2; }
.card-icon.clinical { background: linear-gradient(135deg, #0891B2, #86efac); }
.card-link.clinical { color: #307440; }
.card-link.registration { color: #ea580c; }
.card-icon.postmarket { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.card-link.postmarket { color: #2563eb; }
.card-icon.operations { background: linear-gradient(135deg, #d97706, #fbbf24); }
.card-link.operations { color: #d97706; }

/* 子模块详情页返回按钮 */
.sub-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    margin-bottom: 8px;
}
.sub-detail-back:hover { color: #0891B2; }

.card-icon.center-prep-icon { background: linear-gradient(135deg, #2aacba, #22d3ee); }
.card-link.center-prep-link { color: #2aacba; }
.card-icon.recruit-icon { background: linear-gradient(135deg, #0891B2, #86efac); }
.card-link.recruit-link { color: #307440; }
.card-icon.monitor-icon { background: linear-gradient(135deg, #ea580c, #fb923c); }
.card-link.monitor-link { color: #ea580c; }

.ops-input-panel .input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}
.ops-input-panel .input-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}
.ops-input-panel .role-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
}
.ops-input-panel .form-group {
    margin-bottom: 14px;
}
.ops-input-panel label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}
.ops-input-panel label .required {
    color: #ef4444;
    margin-left: 2px;
}
.ops-input-panel input,
.ops-input-panel select,
.ops-input-panel textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.ops-input-panel input:focus,
.ops-input-panel select:focus,
.ops-input-panel textarea:focus {
    outline: none;
    border-color: #0891B2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.ops-input-panel textarea {
    min-height: 60px;
    resize: vertical;
}
.ops-input-panel .multi-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ops-input-panel .multi-select-item {
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.ops-input-panel .multi-select-item.selected {
    color: white;
    border-color: transparent;
}
/* 模块特色色选中态 */
.center-prep-input .multi-select-item.selected { background: #2aacba; }
.recruit-input .multi-select-item.selected { background: #0891B2; }
.monitor-input .multi-select-item.selected { background: #ea580c; }

.ops-ai-btn {
    width: 100%;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #d97706, #fbbf24);
}
.ops-ai-btn:hover { transform: translateY(-1px); }
@media (max-width: 768px) {
    .ops2-sub-panel [style*="grid-template-columns:repeat(4"] ,
    .ops2-sub-panel div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .ops2-sub-panel table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
.ops-ai-btn.loading { background: #9ca3af !important; cursor: wait; }
.ops-ai-btn.loading i { animation: spin 1s linear infinite; }
.center-prep-ai-btn { background: linear-gradient(135deg, #2aacba, #22d3ee); }
.center-prep-ai-btn:hover { box-shadow: 0 4px 12px rgba(42,172,186,0.4); }
.recruit-ai-btn { background: linear-gradient(135deg, #0891B2, #86efac); }
.recruit-ai-btn:hover { box-shadow: 0 4px 12px rgba(8,145,178,0.4); }
.monitor-ai-btn { background: linear-gradient(135deg, #ea580c, #fb923c); }
.monitor-ai-btn:hover { box-shadow: 0 4px 12px rgba(234,88,12,0.4); }

/* 右侧Tab输出区 */

.ops-output-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 16px;
}
.ops-output-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ops-output-tab:hover { color: #1f2937; }
.ops-output-tab.active { color: #1f2937; border-bottom-color: #0891B2; font-weight: 600; }
.ops-output-tab .tab-icon { font-size: 12px; }

.ops-output-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 400px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}
.ops-tab-pane {
    display: none;
}
.ops-tab-pane.active {
    display: block;
}
.ops-tab-pane .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.ops-tab-pane .empty-state i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}
.ops-tab-pane .empty-state p {
    font-size: 13px;
}

/* 模拟数据卡片 */
.ops-data-card {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.ops-data-card:hover {
    border-color: #0891B2;
    box-shadow: 0 2px 8px rgba(8,145,178,0.1);
}
.ops-data-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.ops-data-card .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.ops-data-card .card-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.tag-green { background: #ecfdf5; color: #307440; }
.tag-blue { background: #e0f7fa; color: #2aacba; }
.tag-orange { background: #fff7ed; color: #ea580c; }
.tag-red { background: #fef2f2; color: #dc2626; }
.tag-yellow { background: #fefce8; color: #ca8a04; }

.ops-data-card .card-meta {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}
.ops-data-card .card-meta span {
    margin-right: 12px;
}
.ops-data-card .match-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.ops-data-card .match-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* 文献条目 */
.ops-lit-item {
    padding: 10px 12px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.ops-lit-item:hover {
    border-color: #0891B2;
    background: #f0fdf4;
}
.ops-lit-item .lit-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}
.ops-lit-item .lit-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.ops-lit-item .lit-source-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}
.ops-lit-item .lit-abstract {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* 报告区域 */
.ops-report-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.ops-report-section .rpt-header {
    padding: 10px 14px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}
.ops-report-section .rpt-header:hover {
    background: #f3f4f6;
}
.ops-report-section .rpt-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.ops-report-section .rpt-header .rpt-toggle {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s;
}
.ops-report-section.expanded .rpt-header .rpt-toggle {
    transform: rotate(180deg);
}
.ops-report-section .rpt-body {
    display: none;
    padding: 14px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}
.ops-report-section.expanded .rpt-body {
    display: block;
}

/* 进度预估表 */
.ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}
.ops-table th {
    background: #f9fafb;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}
.ops-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}
.ops-table tr:hover td {
    background: #f0fdf4;
}

/* 打字机光标 */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #0891B2;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==================== V4.4: 综合管理增强子模块 (ops2-) ==================== */
.ops2-sub-panel {
    display: none;
    padding: 16px 20px 20px;
    max-width: 1600px;
    margin: 0 auto;
}
.ops2-sub-panel.active { display: block; }

.ops2-panel-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.ops2-panel-back:hover { color: #0891B2; border-color: #0891B2; }

.ops2-smart-module {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 20px;
    min-height: calc(100vh - 260px);
}

.ops2-input-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 200px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}
.ops2-input-panel::-webkit-scrollbar { width: 4px; }
.ops2-input-panel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.ops2-input-panel .input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}
.ops2-input-panel .input-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ops2-input-panel .role-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
}
.ops2-input-panel .form-group {
    margin-bottom: 14px;
}
.ops2-input-panel label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}
.ops2-input-panel label .required {
    color: #ef4444;
    margin-left: 2px;
}
.ops2-input-panel input,
.ops2-input-panel select,
.ops2-input-panel textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.ops2-input-panel input:focus,
.ops2-input-panel select:focus,
.ops2-input-panel textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.ops2-input-panel textarea {
    min-height: 60px;
    resize: vertical;
}
.ops2-input-panel .multi-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ops2-input-panel .multi-select-item {
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.ops2-input-panel .multi-select-item:hover {
    border-color: #9ca3af;
}
.ops2-input-panel .multi-select-item.selected {
    color: white;
    border-color: transparent;
}

/* 模块特色色 - 选中态 */
.ops2-risk-input .multi-select-item.selected { background: #ef4444; }
.ops2-risk-input input:focus, .ops2-risk-input select:focus, .ops2-risk-input textarea:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.ops2-qc-input .multi-select-item.selected { background: #7c3aed; }
.ops2-qc-input input:focus, .ops2-qc-input select:focus, .ops2-qc-input textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.ops2-dm-input .multi-select-item.selected { background: #2563eb; }
.ops2-dm-input input:focus, .ops2-dm-input select:focus, .ops2-dm-input textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.ops2-pv-input .multi-select-item.selected { background: #f59e0b; color: #1f2937; }
.ops2-pv-input input:focus, .ops2-pv-input select:focus, .ops2-pv-input textarea:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }

/* AI分析按钮 */
.ops2-ai-btn {
    width: 100%;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #d97706, #fbbf24);
}
.ops2-ai-btn:hover { transform: translateY(-1px); }
.ops2-ai-btn.loading { background: #9ca3af !important; cursor: wait; }
.ops2-ai-btn.loading i { animation: spin 1s linear infinite; }

.ops2-risk-ai-btn { background: linear-gradient(135deg, #ef4444, #f87171); }
.ops2-risk-ai-btn:hover { box-shadow: 0 4px 12px rgba(239,68,68,0.4); }
.ops2-qc-ai-btn { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.ops2-qc-ai-btn:hover { box-shadow: 0 4px 12px rgba(124,58,237,0.4); }
.ops2-dm-ai-btn { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.ops2-dm-ai-btn:hover { box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.ops2-pv-ai-btn { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1f2937; }
.ops2-pv-ai-btn:hover { box-shadow: 0 4px 12px rgba(245,158,11,0.4); }

/* 右侧Tab输出区 */
.ops2-output-area {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ops2-output-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 16px;
}
.ops2-output-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ops2-output-tab:hover { color: #1f2937; }
.ops2-output-tab.active { color: #1f2937; font-weight: 600; }
.ops2-output-tab .tab-icon { font-size: 12px; }

/* 模块Tab特色色 */
.ops2-risk-panel .ops2-output-tab.active { border-bottom-color: #ef4444; }
.ops2-qc-panel .ops2-output-tab.active { border-bottom-color: #7c3aed; }
.ops2-dm-panel .ops2-output-tab.active { border-bottom-color: #2563eb; }
.ops2-pv-panel .ops2-output-tab.active { border-bottom-color: #f59e0b; }

.ops2-output-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 400px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}
.ops2-output-content::-webkit-scrollbar { width: 4px; }
.ops2-output-content::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.ops2-tab-pane {
    display: none;
}
.ops2-tab-pane.active {
    display: block;
}
.ops2-tab-pane .empty-state {
    text-align: center;
    padding: 60px 20px;
}
.ops2-tab-pane .empty-state i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    color: #9ca3af;
}
.ops2-tab-pane .empty-state p {
    font-size: 13px;
    color: #9ca3af;
}

/* V4.4 入口卡片 */
.ops2-module-card {
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: 2px solid transparent;
}
.ops2-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.ops2-module-card .ops2-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
    color: white;
}
.ops2-module-card .ops2-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}
.ops2-module-card .ops2-card-desc {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}
.ops2-module-card .ops2-card-link {
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.ops2-module-card.risk-card:hover { border-color: #ef4444; }
.ops2-module-card.risk-card .ops2-card-icon { background: linear-gradient(135deg, #ef4444, #f87171); }
.ops2-module-card.risk-card .ops2-card-link { color: #ef4444; }

.ops2-module-card.qc-card:hover { border-color: #7c3aed; }
.ops2-module-card.qc-card .ops2-card-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.ops2-module-card.qc-card .ops2-card-link { color: #7c3aed; }

.ops2-module-card.dm-card:hover { border-color: #2563eb; }
.ops2-module-card.dm-card .ops2-card-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.ops2-module-card.dm-card .ops2-card-link { color: #2563eb; }

.ops2-module-card.pv-card:hover { border-color: #f59e0b; }
.ops2-module-card.pv-card .ops2-card-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.ops2-module-card.pv-card .ops2-card-link { color: #f59e0b; }

/* 风险矩阵热力图 */
.ops2-risk-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    margin: 12px 0;
}
.ops2-risk-matrix th {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    padding: 6px 4px;
    text-align: center;
}
.ops2-risk-matrix td {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    padding: 10px 4px;
    border-radius: 4px;
    color: white;
    cursor: default;
    transition: transform 0.15s;
}
.ops2-risk-matrix td:hover {
    transform: scale(1.05);
}

/* 数据仪表板 */
.ops2-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ops2-stat-row:last-child { border-bottom: none; }
.ops2-stat-label {
    font-size: 13px;
    color: #4b5563;
    min-width: 100px;
}
.ops2-stat-value {
    font-size: 15px;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}
.ops2-stat-bar-wrap {
    flex: 1;
    margin: 0 12px;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}
.ops2-stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* 勾选清单 */
.ops2-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #4b5563;
}
.ops2-checklist-item input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #0891B2;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* V4.4 响应式 */
@media (max-width: 1024px) {
    .ops2-smart-module { grid-template-columns: 1fr; }
    .ops2-input-panel { position: static; max-height: none; }
}

/* ==================== V4.5: 注册上市 & 上市后 增强子模块 ==================== */

/* --- 通用 sub-panel --- */

/* ==================== V4.6: 临床研究模块样式 ==================== */

/* Phase 卡片（临床研究首页） */
.clinical-phase-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 20px 24px;
    max-width: 1600px;
    margin: 0 auto;
}
.clinical-phase-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}
.clinical-phase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border-color: #0891B2;
}
.clinical-phase-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.clinical-phase-info {
    flex: 1;
}
.clinical-phase-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}
.clinical-phase-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}
.clinical-phase-modules {
    font-size: 12px;
    color: #0891B2;
    font-weight: 500;
}
.clinical-phase-arrow {
    color: #9ca3af;
    font-size: 18px;
    transition: all 0.3s;
}
.clinical-phase-card:hover .clinical-phase-arrow {
    color: #0891B2;
    transform: translateX(4px);
}

/* Phase 中间层页面（28子模块网格） */
.clinical-sub-page {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}
.clinical-sub-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.clinical-sub-back:hover { color: #0891B2; border-color: #0891B2; }

.clinical-sub-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.clinical-sub-title .phase-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
}
.clinical-sub-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.clinical-module-grid {
    /* V5.39.1: Now wraps category sections, grid handled by .cr-overview-cards */
}

/* ==================== V5.42.0: 首页参考图复刻(浅绿渐变Hero+5阶段带序号卡片+KPI仪表盘+3栏底部). V5.40.0: SaaS级UI重构 - 临床研究页面样式 ==================== */
.cr-hero-banner {
    position: relative;
    margin: 16px 24px 0;
    height: 260px;
    border-radius: 28px;
    background: linear-gradient(135deg, #F6FFFB 0%, #F4FBF8 50%, #EEF8F4 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.cr-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}
.cr-hero-left {
    max-width: 780px;
}
.cr-hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(8,145,178,0.1);
    color: #0891B2;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.cr-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-hero-gradient {
    background: linear-gradient(135deg, #0891B2, #34C759);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cr-hero-subtitle {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 0 24px;
}
.cr-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.cr-btn-primary {
    height: 44px;
    padding: 0 24px;
    border-radius: 14px;
    background: #0891B2;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-btn-primary:hover { background: #15904D; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(8,145,178,0.3); }
.cr-btn-outline {
    height: 44px;
    padding: 0 24px;
    border-radius: 14px;
    background: white;
    color: #0891B2;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid #0891B2;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-btn-outline:hover { background: #F6FFFB; }
.cr-btn-ghost {
    height: 44px;
    padding: 0 24px;
    border-radius: 14px;
    background: #F5F7FA;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-btn-ghost:hover { background: #E5E7EB; color: #374151; }
.cr-hero-right {
    flex-shrink: 0;
    margin-left: 40px;
}
.cr-hero-dna {
    width: 200px;
    height: 260px;
}

/* 阶段筛选栏 */
.cr-phase-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    margin: 24px 24px 0;
    padding: 0 8px;
}
.cr-overview-phase-tabs {
    display: flex;
    gap: 8px;
}
.cr-overview-phase-tab {
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.cr-overview-phase-tab:hover {
    color: #374151;
    background: #F5F7FA;
}
.cr-overview-phase-tab.active {
    color: white;
    background: #0891B2;
    font-weight: 600;
}
.cr-phase-search {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}
.cr-phase-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 14px;
}
.cr-phase-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    font-size: 14px;
    color: #374151;
    background: #F5F7FA;
    outline: none;
    transition: all 0.2s;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-phase-search input:focus {
    border-color: #0891B2;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.cr-phase-search input::placeholder { color: #9CA3AF; }

/* AI智能洞察区 */
.cr-ai-insights {
    margin: 0 24px;
    padding: 24px 0;
}
.cr-ai-insights-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-ai-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cr-insight-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #F1F5F9;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s;
}
.cr-insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}
.cr-insight-indicator {
    width: 4px;
    height: 48px;
    border-radius: 4px;
    flex-shrink: 0;
}
.cr-insight-indicator.red { background: #EF4444; }
.cr-insight-indicator.yellow { background: #F59E0B; }
.cr-insight-indicator.green { background: #0891B2; }
.cr-insight-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-insight-body p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* 模块容器 */
.cr-modules-container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 分区 */
.cr-overview-category {
    margin-bottom: 32px;
}
.cr-overview-category-header {
    display: flex;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 18px;
    gap: 10px;
    background: transparent;
    border-left: none !important;
}
.cr-overview-category-header .cr-cat-icon {
    font-size: 20px;
}
.cr-overview-category-header .cr-cat-name {
    font-weight: 700;
    font-size: 20px;
    color: #111827;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-overview-category-header .cr-cat-desc {
    font-size: 14px;
    color: #9CA3AF;
    margin-left: 12px;
}
.cr-overview-category-header .cr-cat-count {
    margin-left: 8px;
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
}

/* 5列Grid */
.cr-overview-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
@media (max-width: 1400px) {
    .cr-overview-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
    .cr-overview-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .cr-overview-cards { grid-template-columns: repeat(2, 1fr); }
    .cr-ai-insights-grid { grid-template-columns: 1fr; }
    .cr-hero-title { font-size: 28px; }
    .cr-hero-subtitle { font-size: 14px; }
    .cr-hero-actions { flex-wrap: wrap; }
    .cr-phase-bar { flex-direction: column; height: auto; padding: 12px 0; gap: 12px; }
    .cr-phase-search { width: 100%; }
    .cr-ai-workbench-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .cr-overview-cards { grid-template-columns: 1fr; }
}

/* V5.40.0: 新版模块卡片 */
.clinical-module-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 160px;
}
.clinical-module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
    background: rgba(255,255,255,0.95);
}
.clinical-module-card:active {
    transform: translateY(-1px) scale(0.99);
    transition: transform 0.1s;
}
.clinical-module-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.clinical-module-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.cr-ai-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: #EEF8FF;
    color: #3B82F6;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.clinical-module-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 6px;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.clinical-module-card-desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}
.clinical-module-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}
.cr-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    background: #F5F7FA;
    color: #6B7280;
    white-space: nowrap;
}

/* 底部AI工作台 */
.cr-ai-workbench {
    margin: 40px 24px 0;
    padding: 32px 0;
    border-top: 1px solid #EEF2F7;
}
.cr-ai-workbench-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-ai-workbench-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cr-workbench-card {
    height: 100px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15,23,42,0.03);
}
.cr-workbench-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(8,145,178,0.12), 0 8px 24px rgba(15,23,42,0.06);
    border-color: #0891B2;
}
.cr-workbench-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.cr-workbench-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
    font-family: 'PingFang SC', 'Inter', sans-serif;
}
.cr-workbench-info p {
    font-size: 12px;
    color: #9CA3AF;
    margin: 0;
}

/* page-clinical background */
#page-clinical {
    background: #F5F7FA;
    min-height: 100vh;
}

/* V5.40.0: Old .clinical-module-card styles replaced by new SaaS CSS above */
/* Old .cr-ai-tag styles replaced by .cr-ai-badge */

/* ==================== V5.40.0: 旧版toolbar样式已迁移至cr-phase-bar ==================== */
/* .cr-overview-toolbar is DEPRECATED - replaced by .cr-phase-bar */
.cr-overview-toolbar { display: none; }
/* .cr-overview-search is DEPRECATED - replaced by .cr-phase-search */
.cr-overview-search { display: none; }
/* V5.40.0: category/cards styles moved to new SaaS CSS section above */
/* Old responsive overrides removed - now handled in new CSS */

/* ==================== V4.6: 方案撰写(protocol) 7步工作流 ==================== */
.clinical-protocol-workflow {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    background: #fff;
}
.clinical-protocol-step-nav {
    width: 100%;
    background: linear-gradient(180deg, #1a3a2a, #2d5a3f);
    border-radius: 12px 12px 0 0;
    padding: 14px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    gap: 0;
    flex-shrink: 0;
}
.clinical-protocol-step-nav::-webkit-scrollbar { height: 3px; }
.clinical-protocol-step-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.clinical-protocol-nav-title {
    color: #fff; font-size: 13px; font-weight: 700;
    padding-right: 16px; margin-right: 8px; border-right: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.clinical-protocol-nav-title i { color: #0891B2; font-size: 14px; }
.clinical-protocol-step-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; cursor: pointer;
    transition: all 0.25s; position: relative;
    color: rgba(255,255,255,0.6); font-size: 12px; white-space: nowrap;
    border-radius: 6px;
}
.clinical-protocol-step-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.clinical-protocol-step-item.active { background: rgba(8,145,178,0.25); color: #fff; }
.clinical-protocol-step-item.completed { color: rgba(255,255,255,0.8); }
.clinical-protocol-step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; flex-shrink: 0; transition: all 0.25s;
}
.clinical-protocol-step-item.active .clinical-protocol-step-num {
    background: #0891B2; border-color: #0891B2; color: #fff;
    box-shadow: 0 2px 8px rgba(8,145,178,0.4);
}
.clinical-protocol-step-item.completed .clinical-protocol-step-num {
    background: #2aacba; border-color: #2aacba; color: #fff;
}
.clinical-protocol-step-item.completed .clinical-protocol-step-num::after { content: '\2713'; font-size: 11px; }
.clinical-protocol-step-item.completed .clinical-protocol-step-num { font-size: 0; }
.clinical-protocol-step-label { line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.clinical-protocol-step-connector {
    width: 20px; height: 2px; background: rgba(255,255,255,0.2); flex-shrink: 0;
}
.clinical-protocol-step-item:last-child .clinical-protocol-step-connector { display: none; }
.clinical-protocol-step-connector.completed { background: #2aacba; }

.clinical-protocol-content {
    flex: 1; display: flex; flex-direction: column;
    background: #fff;
    min-height: 0; overflow: hidden;
}
.clinical-protocol-step-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; border-bottom: 1px solid #e5e7eb; background: #fafbfc;
}
.clinical-protocol-step-header h3 {
    font-size: 18px; font-weight: 600; color: var(--text-dark);
    display: flex; align-items: center; gap: 10px;
}
.clinical-protocol-step-header h3 .clinical-protocol-step-badge {
    background: #0891B2; color: #fff; font-size: 12px;
    padding: 2px 10px; border-radius: 12px;
}
.clinical-protocol-ai-btn {
    padding: 8px 20px; background: linear-gradient(135deg, #0891B2, #2aacba);
    color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 6px;
}
.clinical-protocol-ai-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(8,145,178,0.35); }
.clinical-protocol-ai-btn.loading { background: #9ca3af; pointer-events: none; }

.clinical-protocol-step-body { flex: 1; overflow-y: auto; padding: 24px; min-height: 0; }
.clinical-protocol-form-section { margin-bottom: 24px; }
.clinical-protocol-form-section-title {
    font-size: 14px; font-weight: 600; color: #0891B2;
    padding-bottom: 8px; margin-bottom: 16px; border-bottom: 2px solid #dcfce7;
    display: flex; align-items: center; gap: 6px;
}
.clinical-protocol-form-section-title i { font-size: 14px; }
.clinical-protocol-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clinical-protocol-form-grid.cols-1 { grid-template-columns: 1fr; }
.clinical-protocol-form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.clinical-protocol-form-group { margin-bottom: 4px; }
.clinical-protocol-form-group.full-width { grid-column: 1 / -1; }
.clinical-protocol-multiselect-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.clinical-protocol-multiselect-tag { display: inline-block; padding: 4px 12px; border-radius: 16px; font-size: 12px; cursor: pointer; background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; transition: all 0.2s; }
.clinical-protocol-multiselect-tag:hover { background: #e0f2fe; border-color: #0891B2; }
.clinical-protocol-multiselect-tag.selected { background: #dcfce7; color: #166534; border-color: #0891B2; }
.clinical-protocol-form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: #374151; }
.clinical-protocol-form-group label .required { color: #ef4444; margin-left: 2px; }
.clinical-protocol-form-group input,
.clinical-protocol-form-group select,
.clinical-protocol-form-group textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 13px; transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; font-family: inherit; background: #fff;
}
.clinical-protocol-form-group input:focus,
.clinical-protocol-form-group select:focus,
.clinical-protocol-form-group textarea:focus {
    outline: none; border-color: #0891B2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}
.clinical-protocol-form-group textarea { min-height: 60px; resize: vertical; }
.clinical-protocol-multiselect { display: flex; flex-wrap: wrap; gap: 6px; }
.clinical-protocol-multiselect-tag {
    padding: 5px 12px; border: 1px solid #e5e7eb; border-radius: 16px;
    font-size: 12px; cursor: pointer; transition: all 0.2s; user-select: none; color: #374151;
}
.clinical-protocol-multiselect-tag:hover { border-color: #0891B2; color: #0891B2; }
.clinical-protocol-multiselect-tag.selected { background: #0891B2; color: #fff; border-color: #0891B2; }

.clinical-protocol-step-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; border-top: 1px solid #e5e7eb; background: #fafbfc;
}
.clinical-protocol-nav-btn {
    padding: 9px 24px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.clinical-protocol-nav-btn.prev { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.clinical-protocol-nav-btn.prev:hover { background: #e5e7eb; }
.clinical-protocol-nav-btn.next { background: #0891B2; color: #fff; border: none; }
.clinical-protocol-nav-btn.next:hover { background: #3d8c42; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(8,145,178,0.3); }
.clinical-protocol-nav-btn.generate { background: linear-gradient(135deg, #0891B2, #2aacba); color: #fff; border: none; font-size: 14px; padding: 10px 32px; }
.clinical-protocol-nav-btn.generate:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(8,145,178,0.35); }
.clinical-protocol-step-progress { font-size: 12px; color: #9ca3af; }

.clinical-protocol-output-area { margin-top: 20px; background: #f9fafb; border-radius: 10px; border: 1px solid #e5e7eb; overflow: hidden; }
.clinical-protocol-output-tabs { display: flex; border-bottom: 1px solid #e5e7eb; background: #fff; }
.clinical-protocol-output-tab {
    flex: 1; padding: 10px 12px; font-size: 12px; font-weight: 600; text-align: center;
    cursor: pointer; transition: all 0.2s; border-bottom: 2px solid transparent; color: #9ca3af;
}
.clinical-protocol-output-tab:hover { color: #374151; background: #f3f4f6; }
.clinical-protocol-output-tab.active { color: #0891B2; border-bottom-color: #0891B2; background: #f9fafb; }
.clinical-protocol-output-panel {
    display: none; padding: 16px; min-height: 200px; max-height: 400px;
    overflow-y: auto; font-size: 13px; line-height: 1.7; color: #4b5563;
}
.clinical-protocol-output-panel.active { display: block; }
.clinical-protocol-output-empty { text-align: center; padding: 40px 20px; color: #9ca3af; }
.clinical-protocol-output-empty i { font-size: 28px; margin-bottom: 10px; display: block; }

.clinical-protocol-gen-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.clinical-protocol-gen-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid #e5e7eb; background: #fafbfc;
}
.clinical-protocol-gen-section-header h4 { font-size: 14px; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.clinical-protocol-gen-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.clinical-protocol-gen-status.pending { background: #fef3c7; color: #d97706; }
.clinical-protocol-gen-status.generating { background: #dbeafe; color: #2563eb; }
.clinical-protocol-gen-status.generated { background: #dcfce7; color: #16a34a; }
.clinical-protocol-gen-status.adopted { background: #dbeafe; color: #2563eb; }
.clinical-protocol-gen-body { padding: 14px 16px; font-size: 13px; line-height: 1.7; color: #4b5563; min-height: 60px; }
.clinical-protocol-gen-actions { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid #f3f4f6; }
.clinical-protocol-gen-act-btn { padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; }
.clinical-protocol-gen-act-btn.adopt { background: #0891B2; color: #fff; }
.clinical-protocol-gen-act-btn.adopt:hover { background: #3d8c42; }
.clinical-protocol-gen-act-btn.modify { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.clinical-protocol-gen-act-btn.modify:hover { background: #e5e7eb; }

.clinical-protocol-final-report {
    background: linear-gradient(135deg, #f0fdf4, #ecfeff); border: 2px solid #dcfce7;
    border-radius: 12px; padding: 20px; margin-top: 20px;
}
.clinical-protocol-final-report h3 {
    font-size: 16px; font-weight: 700; color: #0891B2;
    margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.clinical-protocol-final-section { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 8px; border: 1px solid #e5e7eb; }
.clinical-protocol-final-section h5 { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
.clinical-protocol-final-section p { font-size: 12px; color: #6b7280; line-height: 1.6; }
.clinical-protocol-export-btns { display: flex; gap: 10px; margin-top: 16px; }
.clinical-protocol-export-btn {
    flex: 1; padding: 10px; border: none; border-radius: 8px; cursor: pointer;
    font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.3s;
}
.clinical-protocol-export-btn.pdf { background: #FF5252; color: white; }
.clinical-protocol-export-btn.word { background: #2aacba; color: white; }

/* Protocol workflow responsive */
@media (max-width: 768px) {
    .clinical-protocol-step-nav { padding: 10px 12px; }
    .clinical-protocol-nav-title { display: none; }
    .clinical-protocol-step-item { padding: 6px 8px; gap: 4px; }
    .clinical-protocol-step-label { max-width: 48px; font-size: 11px; }
    .clinical-protocol-step-connector { width: 12px; }
    .clinical-protocol-step-num { width: 22px; height: 22px; font-size: 10px; }
    .clinical-protocol-form-grid { grid-template-columns: 1fr; }
    .clinical-protocol-form-grid.cols-3 { grid-template-columns: 1fr; }
}

/* 子模块详情页（输入引导+三区输出） */
.clinical-detail-page {
    padding: 16px 20px;
    max-width: 1600px;
    margin: 0 auto;
}
.clinical-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.clinical-detail-breadcrumb a {
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.clinical-detail-breadcrumb a:hover { color: #0891B2; }
.clinical-detail-breadcrumb .bc-sep { margin: 0 2px; }
.clinical-detail-breadcrumb .bc-current { color: #1f2937; font-weight: 500; }

.clinical-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.clinical-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.clinical-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}
.clinical-detail-desc {
    font-size: 13px;
    color: #6b7280;
}

.clinical-detail-layout {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 20px;
    min-height: calc(100vh - 300px);
}
.clinical-detail-input {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 80px;
}
.clinical-detail-input h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.clinical-detail-input .form-group {
    margin-bottom: 14px;
}
.clinical-detail-input .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}
.clinical-detail-input .form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}
.clinical-detail-input .form-group input,
.clinical-detail-input .form-group select,
.clinical-detail-input .form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}
.clinical-detail-input .form-group input:focus,
.clinical-detail-input .form-group select:focus,
.clinical-detail-input .form-group textarea:focus {
    outline: none;
    border-color: #0891B2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.clinical-detail-input .form-group textarea {
    min-height: 60px;
    resize: vertical;
}
.clinical-detail-ai-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(135deg, #0891B2, #2aacba);
    color: #fff;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.clinical-detail-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(8,145,178,0.35);
}
.clinical-detail-ai-btn.loading {
    background: #9ca3af;
    pointer-events: none;
}

.clinical-detail-output {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.clinical-output-zone {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    flex: 1;
}
.clinical-output-zone .zone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}
.clinical-output-zone .zone-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
}
.clinical-output-zone .zone-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.clinical-output-zone .zone-content {
    padding: 16px;
    min-height: 100px;
}
.clinical-output-zone .zone-content .empty-state {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
}
.clinical-output-zone .zone-content .empty-state i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}
.clinical-output-zone .zone-content .empty-state p {
    font-size: 13px;
}

.clinical-detail-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.clinical-detail-footer .btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    transition: all 0.2s;
}
.clinical-detail-footer .btn:hover {
    background: #f3f4f6;
}
.clinical-detail-footer .btn-primary {
    background: #0891B2;
    color: #fff;
    border-color: #0891B2;
}
.clinical-detail-footer .btn-primary:hover {
    background: #3d8c42;
}
/* ==================== V5.42.0: 临床研究详情页SaaS风格统一 ==================== */
.cr-detail-page-v2 {
    padding: 16px 20px;
    max-width: 1600px;
    margin: 0 auto;
    background: #F5F7FA;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}
.cr-detail-page-v2,
.cr-detail-page-v2 * {
    box-sizing: border-box;
}
.cr-detail-page-v2 textarea {
    max-width: 100%;
}
.cr-detail-breadcrumb-v2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.cr-detail-breadcrumb-v2 a {
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.cr-detail-breadcrumb-v2 a:hover { color: #0891B2; }
.cr-detail-breadcrumb-v2 .bc-sep { margin: 0 2px; color: #d1d5db; }
.cr-detail-breadcrumb-v2 .bc-current { color: #1f2937; font-weight: 500; }

.cr-detail-header-v2 {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.cr-detail-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.cr-detail-icon-v2 {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.cr-detail-title-area {
    min-width: 0;
}
.cr-detail-title-v2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cr-detail-title-v2 .cr-phase-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(8,145,178,0.1);
    color: #0891B2;
    font-weight: 600;
}
.cr-detail-title-v2 .cr-ai-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0891B2, #2aacba);
    color: #fff;
    font-weight: 600;
}
.cr-detail-desc-v2 {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.5;
}
.cr-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cr-detail-btn-back {
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cr-detail-btn-back:hover { background: #f3f4f6; }
.cr-detail-btn-save {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cr-detail-btn-save:hover { background: #f3f4f6; }
/* V5.58.1: 保存按钮已移除，保留class以防引用错误 */
.cr-detail-btn-save { display: none !important; }
/* V5.58.1: 智能选择器 Smart Selector */
.cr-smart-selector { position: relative; margin-bottom: 12px; }
.cr-selector-input-wrap { position: relative; display: flex; align-items: center; }
.cr-selector-icon { position: absolute; left: 12px; color: #9ca3af; font-size: 13px; pointer-events: none; }
.cr-selector-input {
  width: 100%; padding: 10px 32px 10px 36px; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 13px; outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.cr-selector-input:focus { border-color: #0891B2; box-shadow: 0 0 0 3px rgba(8,145,178,0.1); }
/* V5.58.1: smart-selector选中客户时的样式 */
.cr-selector-input.cr-selector-matched { border-color: #3B82F6; background: #F0F7FF; }
.cr-selector-input.cr-selector-matched:focus { box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.cr-selector-clear {
  position: absolute; right: 8px; background: none; border: none; color: #9ca3af;
  cursor: pointer; font-size: 16px; padding: 4px; display: none; line-height: 1;
}
.cr-selector-clear:hover { color: #374151; }
.cr-selector-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); max-height: 240px; overflow-y: auto;
  display: none; margin-top: 4px;
}
.cr-selector-dropdown.show { display: block; }
.cr-selector-item {
  padding: 10px 14px; cursor: pointer; font-size: 13px; color: #374151;
  border-bottom: 1px solid #f3f4f6; transition: background 0.15s;
}
.cr-selector-item:hover { background: #F0FDF4; }
.cr-selector-item:last-child { border-bottom: none; }
.cr-selector-item-name { font-weight: 600; color: #1f2937; }
.cr-selector-item-sub { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.cr-selector-empty { padding: 16px; text-align: center; color: #9ca3af; font-size: 13px; }
.cr-selector-selected-info {
  padding: 10px; background: #F0FDF4; border-radius: 8px; font-size: 12px;
  color: #166534; margin-top: 8px;
}
.cr-selector-selected-title { font-weight: 600; margin-bottom: 4px; }
.cr-detail-ai-btn-v2 {
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #0891B2;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(8,145,178,0.25);
}
.cr-detail-ai-btn-v2:hover {
    background: #12944A;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(8,145,178,0.35);
}
.cr-detail-ai-btn-v2.loading {
    background: #9ca3af;
    pointer-events: none;
    box-shadow: none;
}

/* V5.58: 保存到项目按钮 - 蓝灰色调区分AI按钮 */
.cr-detail-save-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #CBD5E1;
    background: #F1F5F9;
    color: #475569;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cr-detail-save-btn:hover {
    background: #E2E8F0;
    border-color: #94A3B8;
    color: #1E293B;
    transform: translateY(-1px);
}

/* V5.42.0: SaaS横向步骤导航 */
.cr-detail-step-nav-v2 {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    flex-shrink: 0;
}
.cr-detail-step-nav-v2::-webkit-scrollbar { height: 3px; }
.cr-detail-step-nav-v2::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.cr-step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    color: #6b7280;
    background: transparent;
    border: 1px solid transparent;
}
.cr-step-pill:hover {
    background: #f0fdf4;
    color: #0891B2;
}
.cr-step-pill.active {
    background: #0891B2;
    color: #fff;
    border-color: #0891B2;
    box-shadow: 0 2px 8px rgba(8,145,178,0.2);
}
.cr-step-pill.completed {
    background: rgba(8,145,178,0.1);
    color: #0891B2;
    border-color: rgba(8,145,178,0.1);
}
/* V5.58.1: 自由跳转 - 未访问步骤也明确可点击 */
.cr-step-pill.clickable {
    background: #f9fafb;
    color: #374151;
    border-color: #e5e7eb;
}
.cr-step-pill.clickable:hover {
    background: #f0fdf4;
    color: #0891B2;
    border-color: #bbf7d0;
}
.cr-step-pill.clickable .cr-step-pill-num {
    background: #d1d5db;
    color: #374151;
}
.cr-step-pill-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.25s;
}
.cr-step-pill.active .cr-step-pill-num {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.cr-step-pill.completed .cr-step-pill-num {
    background: #0891B2;
    color: #fff;
}
.cr-step-connector-v2 {
    width: 24px;
    height: 2px;
    background: #e5e7eb;
    flex-shrink: 0;
}
.cr-step-connector-v2.completed {
    background: #0891B2;
}

/* V5.42.0: SaaS AI输出面板 */
.cr-perspective-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
}
.cr-detail-layout-v2 {
    flex: 1;
    display: grid;
    grid-template-columns: 38% 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
    min-height: auto;
}
.cr-detail-input-v2 {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    height: fit-content;
    position: sticky;
    top: 80px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cr-detail-input-v2 h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cr-detail-input-v2 .form-group {
    margin-bottom: 16px;
}
.cr-detail-input-v2 .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}
.cr-detail-input-v2 .form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}
.cr-detail-input-v2 .form-group input,
.cr-detail-input-v2 .form-group select,
.cr-detail-input-v2 .form-group textarea,
.cr-detail-input-v2 .cr-selector-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.45;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}
.cr-detail-input-v2 .form-group input:focus,
.cr-detail-input-v2 .form-group select:focus,
.cr-detail-input-v2 .form-group textarea:focus,
.cr-detail-input-v2 .cr-selector-input:focus {
    outline: none;
    border-color: #0891B2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.cr-detail-input-v2 .form-group textarea {
    min-height: 86px;
    resize: vertical;
    overflow: auto;
}
.cr-detail-input-v2 .form-group textarea[rows="2"] {
    min-height: 68px;
}
.cr-detail-input-v2 .form-group textarea[rows="1"] {
    min-height: 42px;
}

.cr-detail-ai-panel {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 400px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cr-ai-panel-tabs {
    display: flex;
    border-bottom: 1px solid rgba(8,145,178,0.08);
    padding: 0 20px;
    background: rgba(240,253,250,0.5);
    gap: 2px;
}
.cr-ai-panel-tab {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cr-ai-panel-tab:hover {
    color: #0891B2;
}
.cr-ai-panel-tab.active {
    color: #0891B2;
    border-bottom-color: #0891B2;
    font-weight: 600;
}
.cr-ai-panel-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* V10.0.0-7: 面板收起/展开 - 手机端优化 */
.cr-form-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    color: #6b7280;
    font-size: 12px;
    transition: all 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}
.cr-form-toggle-btn:hover { background: #e5e7eb; color: #374151; }
.cr-form-toggle-btn.collapsed i { transform: rotate(180deg); }

.cr-detail-layout-v2.form-collapsed {
    grid-template-columns: 0px 1fr;
    gap: 0;
    transition: grid-template-columns 0.3s ease;
}
.cr-detail-layout-v2.form-collapsed .cr-detail-input-v2 {
    overflow: hidden;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    width: 0;
    min-width: 0;
    border: none;
    transition: all 0.3s ease;
}
.cr-detail-layout-v2.form-collapsed .cr-detail-ai-panel {
    border-radius: 16px;
}

/* 填写模式：左面板覆盖右面板 */
.cr-detail-layout-v2.form-overlay {
    grid-template-columns: 1fr 0px;
    gap: 0;
    transition: grid-template-columns 0.3s ease;
}
.cr-detail-layout-v2.form-overlay .cr-detail-input-v2 {
    z-index: 10;
    position: relative;
}
.cr-detail-layout-v2.form-overlay .cr-detail-ai-panel {
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    width: 0;
    min-width: 0;
    transition: all 0.3s ease;
}

/* 浮动展开按钮（收起状态显示） */
.cr-form-expand-fab {
    display: none;
    position: fixed;
    left: 12px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #0891B2;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(8,145,178,0.3);
    cursor: pointer;
    z-index: 100;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.cr-form-expand-fab:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(8,145,178,0.4); }
.cr-form-expand-fab.visible { display: flex; }
.cr-ai-panel-pane {
    display: none;
}
.cr-ai-panel-pane.active {
    display: block;
}
.cr-ai-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
}
.cr-ai-empty-state i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    color: #d1d5db;
}
.cr-ai-empty-state p {
    font-size: 13px;
    line-height: 1.6;
}
.cr-ai-empty-state .cr-ai-empty-hint {
    font-size: 12px;
    color: #b0b8c4;
    margin-top: 8px;
}

/* V5.59.3: 参考文献列表 */
.cr-ref-list { padding: 12px; }
.cr-ref-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #E5E7EB; }
.cr-ref-header span { font-weight: 600; font-size: 14px; color: #1F2937; }
.cr-ref-add-btn { background: none; border: 1px solid #D1D5DB; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; color: #6B7280; transition: all 0.15s; }
.cr-ref-add-btn:hover { border-color: #3B82F6; color: #3B82F6; }
.cr-ref-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
.cr-ref-item:last-child { border-bottom: none; }
.cr-ref-num { font-weight: 600; color: #3B82F6; font-size: 13px; min-width: 28px; padding-top: 1px; }
.cr-ref-body { flex: 1; }
.cr-ref-title { font-size: 13px; color: #1F2937; font-weight: 500; line-height: 1.4; }
.cr-ref-authors { font-size: 12px; color: #6B7280; margin-top: 2px; }
.cr-ref-journal { font-size: 11px; color: #9CA3AF; margin-top: 2px; font-style: italic; }
.cr-ref-doi, .cr-ref-url, .cr-ref-nct { margin-top: 4px; }
.cr-ref-pdf { margin-top: 4px; }
.cr-ref-source-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.cr-ref-source-tag.semantic_scholar { background: #EFF6FF; color: #2563EB; }
.cr-ref-source-tag.clinicaltrials { background: #ECFDF5; color: #059669; }
.cr-ref-source-tag.crossref { background: #FFFBEB; color: #D97706; }
.cr-ref-source-tag.manual { background: #F5F3FF; color: #7C3AED; }
/* V5.59.3: 追问textarea样式 */
textarea.cr-followup-input-v2 { flex: 1; padding: 8px 12px; border: 1px solid #E5E7EB; border-radius: 8px; font-size: 13px; outline: none; resize: none; min-height: 36px; max-height: 120px; line-height: 1.5; font-family: inherit; }
textarea.cr-followup-input-v2:focus { border-color: #0891B2; box-shadow: 0 0 0 2px rgba(8,145,178,0.12); }

/* V5.42.0: SaaS详情页底部 */
.cr-detail-footer-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 16px 0;
}
.cr-detail-footer-nav {
    display: flex;
    gap: 10px;
}
.cr-detail-footer-nav .btn-nav {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cr-detail-footer-nav .btn-nav:hover { background: #f3f4f6; }
.cr-detail-footer-nav .btn-nav.primary {
    background: #0891B2;
    color: #fff;
    border-color: #0891B2;
}
.cr-detail-footer-nav .btn-nav.primary:hover { background: #12944A; }
.cr-detail-footer-progress {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* V5.42.0: Protocol步骤导航视觉升级 */
.clinical-protocol-step-nav-v2 {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    flex-shrink: 0;
}
.clinical-protocol-step-nav-v2::-webkit-scrollbar { height: 3px; }
.clinical-protocol-step-nav-v2::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* V5.42.0: SIV模块样式 */
.siv-workflow-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.siv-step-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.siv-ai-output {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    min-height: 300px;
}
.siv-material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}
.siv-material-item:hover { background: #f9fafb; }
.siv-material-item:last-child { border-bottom: none; }
.siv-material-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.siv-material-tag.ai-gen {
    background: rgba(8,145,178,0.1);
    color: #0891B2;
}
.siv-material-tag.manual {
    background: #FEF3C7;
    color: #D97706;
}
.siv-material-tag.ai-review {
    background: #EEF2FF;
    color: #6366f1;
}

/* V5.43.0: 伦理申报(ethics)模块样式 */
.cr-ethics-profile-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.cr-ethics-profile-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cr-ethics-profile-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.cr-ethics-profile-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.cr-ethics-profile-center { font-size: 12px; color: #6b7280; }
.cr-ethics-info-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #4b5563; line-height: 1.6; }
.cr-ethics-info-label { font-weight: 600; color: #374151; white-space: nowrap; min-width: 80px; }
.cr-ethics-tag {
    display: inline-block; font-size: 11px; padding: 2px 8px;
    border-radius: 10px; font-weight: 600; white-space: nowrap; margin: 2px 4px 2px 0;
}
.cr-ethics-tag.required { background: #FEE2E2; color: #DC2626; }
.cr-ethics-tag.optional { background: #F3F4F6; color: #6B7280; }
.cr-ethics-tag.ai-gen { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-ethics-tag.prepared { background: #DBEAFE; color: #2563EB; }
.cr-ethics-tag.need-modify { background: #FEF3C7; color: #D97706; }
.cr-ethics-tag.not-prepared { background: #FEE2E2; color: #EF4444; }
.cr-ethics-tag.depends { background: #E0E7FF; color: #4F46E5; }
.cr-ethics-checklist-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid #f3f4f6;
    font-size: 13px; transition: background 0.2s;
}
.cr-ethics-checklist-item:hover { background: #f9fafb; }
.cr-ethics-checklist-item:last-child { border-bottom: none; }
.cr-ethics-checklist-num { font-weight: 700; color: #9ca3af; min-width: 22px; }
.cr-ethics-checklist-name { flex: 1; color: #374151; }
.cr-ethics-condition-card {
    background: #fff; border-radius: 10px; padding: 14px;
    margin-bottom: 10px; border-left: 3px solid #F59E0B;
}
.cr-ethics-condition-card.severity-high { border-left-color: #EF4444; }
.cr-ethics-condition-card.severity-medium { border-left-color: #F59E0B; }
.cr-ethics-condition-card.severity-low { border-left-color: #3B82F6; }
.cr-ethics-condition-title { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
.cr-ethics-condition-suggestion { font-size: 12px; color: #4b5563; line-height: 1.6; }
.cr-ethics-search-box {
    position: relative;
}
.cr-ethics-search-box input {
    width: 100%; padding: 10px 14px 10px 38px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 14px; transition: border-color 0.2s;
}
.cr-ethics-search-box input:focus { border-color: #3B82F6; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.cr-ethics-search-box .search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 14px;
}
.cr-ethics-search-results { margin-top: 10px; }

/* V5.43.0: 监查管理(monitor)模块样式 */
.cr-monitor-plan-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 16px; margin-bottom: 12px;
}
.cr-monitor-plan-section { margin-bottom: 14px; }
.cr-monitor-plan-title { font-size: 14px; font-weight: 700; color: #1f2937; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.cr-monitor-plan-content { font-size: 13px; color: #4b5563; line-height: 1.7; }
.cr-monitor-finding-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid #f3f4f6;
    font-size: 13px; transition: background 0.2s;
}
.cr-monitor-finding-item:hover { background: #f9fafb; }
.cr-monitor-finding-item:last-child { border-bottom: none; }
.cr-monitor-severity {
    font-size: 11px; padding: 2px 8px; border-radius: 10px;
    font-weight: 600; white-space: nowrap;
}
.cr-monitor-severity.high { background: #FEE2E2; color: #DC2626; }
.cr-monitor-severity.medium { background: #FEF3C7; color: #D97706; }
.cr-monitor-severity.low { background: #DBEAFE; color: #2563EB; }
.cr-monitor-scan-zone {
    border: 2px dashed #d1d5db; border-radius: 12px; padding: 30px;
    text-align: center; margin-bottom: 14px; transition: border-color 0.2s;
    cursor: pointer;
}
.cr-monitor-scan-zone:hover { border-color: #3B82F6; background: #F8FAFC; }
.cr-monitor-scan-zone i { font-size: 28px; color: #9ca3af; margin-bottom: 8px; }
.cr-monitor-scan-zone p { font-size: 13px; color: #6b7280; margin: 4px 0; }
.cr-monitor-med-section {
    background: #fff; border-radius: 10px; padding: 14px;
    margin-bottom: 10px; border: 1px solid #e5e7eb;
}
.cr-monitor-med-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.cr-monitor-sdv-stat {
    display: flex; align-items: center; gap: 16px; padding: 14px;
    background: #EFF6FF; border-radius: 10px; margin-bottom: 12px;
}
.cr-monitor-sdv-rate { font-size: 28px; font-weight: 800; color: #2563EB; }
.cr-monitor-sdv-label { font-size: 12px; color: #6b7280; }
.cr-monitor-sdv-bar { flex: 1; height: 8px; background: #E5E7EB; border-radius: 4px; overflow: hidden; }
.cr-monitor-sdv-bar-fill { height: 100%; background: #3B82F6; border-radius: 4px; transition: width 0.5s; }
.cr-monitor-risk-point {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin-bottom: 6px; border-radius: 8px; font-size: 13px;
}
.cr-monitor-risk-point.high { background: #FEF2F2; }
.cr-monitor-risk-point.medium { background: #FFFBEB; }

/* V5.44.0: 招募筛选(recruit)模块样式 */
.cr-recruit-channel-bar {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.cr-recruit-channel-name { font-size: 13px; color: #374151; min-width: 80px; font-weight: 600; }
.cr-recruit-channel-track { flex: 1; height: 20px; background: #f3f4f6; border-radius: 10px; overflow: hidden; position: relative; }
.cr-recruit-channel-fill { height: 100%; border-radius: 10px; transition: width 0.6s; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 11px; color: #fff; font-weight: 700; }
.cr-recruit-channel-fill.green { background: linear-gradient(90deg, #0891B2, #36D399); }
.cr-recruit-channel-fill.blue { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.cr-recruit-channel-fill.amber { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.cr-recruit-channel-fill.purple { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.cr-recruit-channel-fill.rose { background: linear-gradient(90deg, #F43F5E, #FB7185); }
.cr-recruit-fail-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin-bottom: 6px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-recruit-fail-rank { font-size: 14px; font-weight: 800; color: #9ca3af; min-width: 24px; text-align: center; }
.cr-recruit-fail-name { flex: 1; color: #374151; font-weight: 600; }
.cr-recruit-fail-rate { font-size: 14px; font-weight: 700; color: #EF4444; }
.cr-recruit-bottleneck-stat {
    display: flex; align-items: center; gap: 16px; padding: 14px;
    background: #FEF2F2; border-radius: 10px; margin-bottom: 12px;
}
.cr-recruit-bottleneck-rate { font-size: 28px; font-weight: 800; color: #EF4444; }
.cr-recruit-bottleneck-label { font-size: 12px; color: #6b7280; }
.cr-recruit-bottleneck-bar { flex: 1; height: 8px; background: #E5E7EB; border-radius: 4px; overflow: hidden; }
.cr-recruit-bottleneck-bar-fill { height: 100%; background: #EF4444; border-radius: 4px; transition: width 0.5s; }
.cr-recruit-optimize-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px; margin-bottom: 10px; border-left: 3px solid #3B82F6;
}
.cr-recruit-optimize-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cr-recruit-optimize-content { font-size: 12px; color: #4b5563; line-height: 1.7; }

/* V5.44.0: 风险管理(risk-mgmt)模块样式 */
.cr-risk-domain-tag {
    display: inline-block; font-size: 11px; padding: 3px 10px;
    border-radius: 12px; font-weight: 600; margin: 2px 4px 2px 0;
}
.cr-risk-domain-tag.ops { background: #DBEAFE; color: #2563EB; }
.cr-risk-domain-tag.clinical { background: #FCE7F3; color: #DB2777; }
.cr-risk-domain-tag.reg { background: #FEF3C7; color: #D97706; }
.cr-risk-domain-tag.data { background: #E0E7FF; color: #4F46E5; }
.cr-risk-domain-tag.safety { background: #FEE2E2; color: #DC2626; }
.cr-risk-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; margin-bottom: 8px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb; transition: background 0.2s;
}
.cr-risk-item:hover { background: #f9fafb; }
.cr-risk-item-num { font-weight: 800; color: #9ca3af; min-width: 22px; }
.cr-risk-item-content { flex: 1; }
.cr-risk-item-name { font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.cr-risk-item-desc { font-size: 12px; color: #6b7280; line-height: 1.5; }
.cr-risk-matrix-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f4f6;
}
.cr-risk-matrix-row:last-child { border-bottom: none; }
.cr-risk-matrix-name { flex: 1; font-size: 13px; color: #374151; font-weight: 600; }
.cr-risk-matrix-score { font-size: 16px; font-weight: 800; min-width: 36px; text-align: center; }
.cr-risk-matrix-score.very-high { color: #DC2626; }
.cr-risk-matrix-score.high { color: #F59E0B; }
.cr-risk-matrix-score.medium { color: #3B82F6; }
.cr-risk-matrix-score.low { color: #0891B2; }
.cr-risk-matrix-bar { width: 80px; height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.cr-risk-matrix-bar-fill { height: 100%; border-radius: 3px; }
.cr-risk-matrix-bar-fill.very-high { background: #EF4444; }
.cr-risk-matrix-bar-fill.high { background: #F59E0B; }
.cr-risk-matrix-bar-fill.medium { background: #3B82F6; }
.cr-risk-matrix-bar-fill.low { background: #0891B2; }
.cr-risk-level-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap;
}
.cr-risk-level-tag.very-high { background: #FEE2E2; color: #DC2626; }
.cr-risk-level-tag.high { background: #FEF3C7; color: #D97706; }
.cr-risk-level-tag.medium { background: #DBEAFE; color: #2563EB; }
.cr-risk-level-tag.low { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-risk-response-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px; margin-bottom: 10px;
}
.cr-risk-response-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cr-risk-response-content { font-size: 12px; color: #4b5563; line-height: 1.7; }
.cr-risk-alert-rule {
    padding: 10px 14px; margin-bottom: 8px; border-radius: 8px;
    background: #FFFBEB; border-left: 3px solid #F59E0B; font-size: 12px; color: #92400e;
}

/* V5.44.0: PV药物警戒(pv)模块样式 */
.cr-pv-kpi-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px;
}
.cr-pv-kpi-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 12px; text-align: center;
}
.cr-pv-kpi-value { font-size: 24px; font-weight: 800; }
.cr-pv-kpi-value.red { color: #EF4444; }
.cr-pv-kpi-value.blue { color: #3B82F6; }
.cr-pv-kpi-value.amber { color: #F59E0B; }
.cr-pv-kpi-value.green { color: #0891B2; }
.cr-pv-kpi-label { font-size: 11px; color: #6b7280; margin-top: 2px; }
.cr-pv-signal-stat {
    display: flex; align-items: center; gap: 16px; padding: 14px;
    background: #FEF2F2; border-radius: 10px; margin-bottom: 12px;
}
.cr-pv-signal-prr { font-size: 28px; font-weight: 800; color: #EF4444; }
.cr-pv-signal-label { font-size: 12px; color: #6b7280; }
.cr-pv-compliance-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    margin-bottom: 6px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-pv-compliance-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.cr-pv-compliance-status.pass { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-pv-compliance-status.fail { background: #FEE2E2; color: #DC2626; }
.cr-pv-compliance-status.warn { background: #FEF3C7; color: #D97706; }
.cr-pv-psur-chapter {
    padding: 8px 12px; margin-bottom: 4px; border-radius: 6px;
    background: #EFF6FF; font-size: 12px; color: #1e40af; border-left: 2px solid #3B82F6;
}
.cr-pv-review-summary {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px;
}
.cr-pv-review-stat {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 12px; text-align: center;
}
.cr-pv-review-stat-value { font-size: 22px; font-weight: 800; color: #374151; }
.cr-pv-review-stat-label { font-size: 11px; color: #6b7280; margin-top: 2px; }
.cr-pv-suggestion {
    padding: 10px 14px; margin-bottom: 8px; border-radius: 8px;
    background: #F0FDF4; border-left: 3px solid #0891B2; font-size: 12px; color: #166534;
}

/* V5.44.0: 质控管理(qc)模块样式 */
.cr-qc-checklist-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; margin-bottom: 4px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-qc-checklist-domain { font-weight: 700; color: #374151; min-width: 80px; }
.cr-qc-checklist-items { flex: 1; font-size: 12px; color: #4b5563; }
.cr-qc-finding-item {
    padding: 12px; margin-bottom: 10px; border-radius: 10px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-qc-finding-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cr-qc-finding-level {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.cr-qc-finding-level.critical { background: #FEE2E2; color: #DC2626; }
.cr-qc-finding-level.major { background: #FEF3C7; color: #D97706; }
.cr-qc-finding-level.minor { background: #DBEAFE; color: #2563EB; }
.cr-qc-finding-title { font-size: 13px; font-weight: 600; color: #1f2937; }
.cr-qc-finding-desc { font-size: 12px; color: #4b5563; line-height: 1.6; }
.cr-qc-score-card {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE); border-radius: 12px; margin-bottom: 12px;
}
.cr-qc-score-value { font-size: 36px; font-weight: 800; color: #2563EB; }
.cr-qc-score-grade { font-size: 18px; font-weight: 700; color: #0891B2; }
.cr-qc-capa-item {
    padding: 12px; margin-bottom: 10px; border-radius: 10px;
    background: #fff; border: 1px solid #e5e7eb; border-left: 3px solid #3B82F6;
}
.cr-qc-capa-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cr-qc-capa-type {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.cr-qc-capa-type.corrective { background: #FEE2E2; color: #DC2626; }
.cr-qc-capa-type.preventive { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-qc-capa-title { font-size: 13px; font-weight: 600; color: #1f2937; }
.cr-qc-capa-desc { font-size: 12px; color: #4b5563; line-height: 1.6; margin-top: 4px; }
.cr-qc-capa-meta { font-size: 11px; color: #9ca3af; margin-top: 6px; }


/* V5.45.0: 商务调研(research)模块样式 */
.cr-research-profile-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px; margin-bottom: 10px; border-left: 3px solid #8B5CF6;
}
.cr-research-profile-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cr-research-profile-content { font-size: 12px; color: #4b5563; line-height: 1.7; }
.cr-research-tag {
    display: inline-block; font-size: 11px; padding: 3px 10px;
    border-radius: 12px; font-weight: 600; margin: 2px 4px 2px 0;
    background: #EDE9FE; color: #7C3AED;
}
.cr-research-checklist-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin-bottom: 4px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-research-checklist-num { font-weight: 800; color: #9ca3af; min-width: 22px; }
.cr-research-proposal-item {
    padding: 8px 12px; margin-bottom: 4px; border-radius: 6px;
    background: #EFF6FF; font-size: 12px; color: #1e40af; border-left: 2px solid #3B82F6;
}

/* V5.45.0: 商务竞标(bidding)模块样式 */
.cr-bidding-req-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin-bottom: 4px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-bidding-req-num { font-weight: 800; color: #9ca3af; min-width: 22px; }
.cr-bidding-eval-bar {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.cr-bidding-eval-name { font-size: 13px; font-weight: 600; color: #374151; min-width: 80px; }
.cr-bidding-eval-track { flex: 1; height: 20px; background: #f3f4f6; border-radius: 10px; overflow: hidden; position: relative; }
.cr-bidding-eval-fill { height: 100%; border-radius: 10px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 11px; color: #fff; font-weight: 700; background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.cr-bidding-section-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px; margin-bottom: 10px; border-left: 3px solid #3B82F6;
}
.cr-bidding-section-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.cr-bidding-section-content { font-size: 12px; color: #4b5563; line-height: 1.7; }
.cr-bidding-competitor-row {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
    margin-bottom: 8px; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb;
}
.cr-bidding-competitor-name { font-weight: 700; min-width: 60px; font-size: 13px; }
.cr-bidding-competitor-name.ours { color: #0891B2; }
.cr-bidding-competitor-detail { font-size: 12px; color: #6b7280; line-height: 1.5; }
.cr-bidding-quotation-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    margin-bottom: 4px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-bidding-quotation-module { font-weight: 600; color: #374151; min-width: 100px; }
.cr-bidding-quotation-amount { font-weight: 700; color: #2563EB; }
.cr-bidding-diff-item {
    padding: 10px 14px; margin-bottom: 8px; border-radius: 8px;
    background: #FFFBEB; border-left: 3px solid #F59E0B; font-size: 12px; color: #92400e;
}

/* V5.45.0: 合同辅助(contract)模块样式 */
.cr-contract-clause-item {
    padding: 12px; margin-bottom: 10px; border-radius: 10px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-contract-clause-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cr-contract-clause-title { font-size: 13px; font-weight: 600; color: #1f2937; flex: 1; }
.cr-contract-risk-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.cr-contract-risk-tag.low { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-contract-risk-tag.mid { background: #FEF3C7; color: #D97706; }
.cr-contract-risk-tag.high { background: #FEE2E2; color: #DC2626; }
.cr-contract-clause-content { font-size: 12px; color: #4b5563; line-height: 1.6; }
.cr-contract-issue-item {
    padding: 12px; margin-bottom: 10px; border-radius: 10px;
    background: #fff; border: 1px solid #e5e7eb; border-left: 3px solid #EF4444;
}
.cr-contract-issue-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cr-contract-issue-clause { font-size: 13px; font-weight: 700; color: #1f2937; }
.cr-contract-issue-type {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.cr-contract-issue-type.risk { background: #FEE2E2; color: #DC2626; }
.cr-contract-issue-type.missing { background: #FEF3C7; color: #D97706; }
.cr-contract-issue-type.compliance { background: #FCE7F3; color: #DB2777; }
.cr-contract-issue-type.suggest { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-contract-severity {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.cr-contract-severity.high { background: #FEE2E2; color: #DC2626; }
.cr-contract-severity.mid { background: #FEF3C7; color: #D97706; }
.cr-contract-severity.low { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-contract-issue-desc { font-size: 12px; color: #4b5563; line-height: 1.6; }
.cr-contract-diff-item {
    padding: 12px; margin-bottom: 10px; border-radius: 10px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-contract-diff-clause { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.cr-contract-diff-row { display: flex; gap: 12px; font-size: 12px; margin-bottom: 4px; }
.cr-contract-diff-label { color: #6b7280; min-width: 60px; }
.cr-contract-diff-val { color: #374151; }

/* V5.45.0: 预算分析(budget)模块样式 */
.cr-budget-category-bar {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.cr-budget-category-name { font-size: 13px; font-weight: 600; color: #374151; min-width: 80px; }
.cr-budget-category-track { flex: 1; height: 24px; background: #f3f4f6; border-radius: 12px; overflow: hidden; position: relative; }
.cr-budget-category-fill { height: 100%; border-radius: 12px; transition: width 0.6s; display: flex; align-items: center; padding-left: 10px; font-size: 11px; color: #fff; font-weight: 700; }
.cr-budget-category-fill.c1 { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.cr-budget-category-fill.c2 { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.cr-budget-category-fill.c3 { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.cr-budget-category-fill.c4 { background: linear-gradient(90deg, #EF4444, #FB7185); }
.cr-budget-category-fill.c5 { background: linear-gradient(90deg, #0891B2, #36D399); }
.cr-budget-category-fill.c6 { background: linear-gradient(90deg, #6B7280, #9CA3AF); }
.cr-budget-category-amount { font-size: 13px; font-weight: 700; color: #374151; min-width: 60px; text-align: right; }
.cr-budget-benchmark-card {
    display: flex; align-items: center; gap: 20px; padding: 16px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE); border-radius: 12px; margin-bottom: 12px;
}
.cr-budget-benchmark-value { font-size: 28px; font-weight: 800; }
.cr-budget-benchmark-value.ours { color: #2563EB; }
.cr-budget-benchmark-value.industry { color: #9ca3af; }
.cr-budget-benchmark-label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.cr-budget-optimize-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px; margin-bottom: 10px; border-left: 3px solid #0891B2;
}
.cr-budget-optimize-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cr-budget-optimize-content { font-size: 12px; color: #4b5563; line-height: 1.7; }
.cr-budget-sensitivity-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    margin-bottom: 8px; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb;
}
.cr-budget-sensitivity-name { font-weight: 600; color: #374151; flex: 1; font-size: 13px; }
.cr-budget-sensitivity-impact { font-weight: 700; color: #EF4444; font-size: 13px; min-width: 100px; }
.cr-budget-sensitivity-prob {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.cr-budget-sensitivity-prob.mid { background: #FEF3C7; color: #D97706; }
.cr-budget-sensitivity-prob.low { background: rgba(8,145,178,0.1); color: #0891B2; }

/* V5.45.0: 立项辅助(init-approve)模块样式 */
.cr-initapprove-checklist-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; margin-bottom: 6px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-initapprove-checklist-name { flex: 1; font-weight: 600; color: #374151; }
.cr-initapprove-checklist-status {
    font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600;
}
.cr-initapprove-checklist-status.done { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-initapprove-checklist-status.pending { background: #FEF3C7; color: #D97706; }
.cr-initapprove-checklist-ai { font-size: 11px; color: #8B5CF6; font-weight: 600; }
.cr-initapprove-agenda-item {
    padding: 8px 12px; margin-bottom: 4px; border-radius: 6px;
    background: #EFF6FF; font-size: 12px; color: #1e40af; border-left: 2px solid #3B82F6;
}
.cr-initapprove-discussion-item {
    padding: 10px 14px; margin-bottom: 8px; border-radius: 8px;
    background: #FFFBEB; border-left: 3px solid #F59E0B; font-size: 12px; color: #92400e;
}
.cr-initapprove-tracking-step {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    margin-bottom: 6px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-initapprove-tracking-name { flex: 1; font-weight: 600; color: #374151; }
.cr-initapprove-tracking-status {
    font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600;
}
.cr-initapprove-tracking-status.passed { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-initapprove-tracking-status.progress { background: #DBEAFE; color: #2563EB; }
.cr-initapprove-tracking-status.pending { background: #f3f4f6; color: #6b7280; }
.cr-initapprove-tracking-date { font-size: 12px; color: #9ca3af; min-width: 90px; text-align: right; }

/* V5.45.0: 临床研究报告(report)模块样式 */
.cr-report-outline-item {
    padding: 8px 12px; margin-bottom: 4px; border-radius: 6px;
    background: #EFF6FF; font-size: 12px; color: #1e40af; border-left: 2px solid #3B82F6;
}
.cr-report-kpi-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px;
}
.cr-report-kpi-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 12px; text-align: center;
}
.cr-report-kpi-value { font-size: 24px; font-weight: 800; color: #2563EB; }
.cr-report-kpi-label { font-size: 11px; color: #6b7280; margin-top: 2px; }
.cr-report-draft-item {
    padding: 8px 12px; margin-bottom: 4px; border-radius: 6px; font-size: 12px;
    background: rgba(8,145,178,0.1); color: #166534;
}
.cr-report-draft-item.in-progress { background: #FEF3C7; color: #92400e; }
.cr-report-review-score {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    border-radius: 12px; margin-bottom: 12px;
}
.cr-report-review-score.good { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); }
.cr-report-review-score.warn { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); }
.cr-report-review-score-value { font-size: 36px; font-weight: 800; }
.cr-report-review-score-value.good { color: #0891B2; }
.cr-report-review-score-value.warn { color: #D97706; }
.cr-report-review-score-label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.cr-report-finding-item {
    padding: 8px 12px; margin-bottom: 4px; border-radius: 8px;
    background: #FEF2F2; border-left: 2px solid #EF4444; font-size: 12px; color: #991b1b;
}

/* V5.45.0: 关中心(close-center)模块样式 */
.cr-closecenter-step-item {
    padding: 8px 12px; margin-bottom: 4px; border-radius: 6px;
    background: #EFF6FF; font-size: 12px; color: #1e40af; border-left: 2px solid #3B82F6;
}
.cr-closecenter-checklist-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; margin-bottom: 6px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-closecenter-checklist-name { flex: 1; font-weight: 600; color: #374151; }
.cr-closecenter-checklist-category {
    font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
    background: #EDE9FE; color: #7C3AED;
}
.cr-closecenter-checklist-status {
    font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600;
}
.cr-closecenter-checklist-status.done { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-closecenter-checklist-status.progress { background: #DBEAFE; color: #2563EB; }
.cr-closecenter-checklist-status.pending { background: #FEF3C7; color: #D97706; }
.cr-closecenter-condition-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; margin-bottom: 6px; border-radius: 8px; font-size: 13px;
    background: #fff; border: 1px solid #e5e7eb;
}
.cr-closecenter-condition-name { flex: 1; color: #374151; }
.cr-closecenter-condition-icon { font-size: 16px; }
/* V5.47.0: SMO筛选(smo)模块样式 */
.cr-smo-candidate-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #475569; }
.cr-smo-candidate-name { font-size: 14px; font-weight: 700; color: #1f2937; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cr-smo-match-score { font-size: 18px; font-weight: 800; color: #0891B2; }
.cr-smo-dimension-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cr-smo-dimension-label { font-size: 12px; color: #6b7280; min-width: 60px; }
.cr-smo-dimension-track { flex: 1; height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.cr-smo-dimension-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #475569, #94a3b8); transition: width 0.5s; }
.cr-smo-strength-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #F0F9FF; color: #0369a1; margin: 2px; font-weight: 600; }
.cr-smo-compare-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.cr-smo-compare-name { flex: 1; font-weight: 600; color: #374151; }

/* V5.47.0: 知情同意(icf)模块样式 */
.cr-icf-section-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #2563eb; }
.cr-icf-section-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cr-icf-section-content { font-size: 12px; color: #4b5563; line-height: 1.7; }
.cr-icf-readability-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.cr-icf-readability-track { flex: 1; height: 10px; background: #f3f4f6; border-radius: 5px; overflow: hidden; }
.cr-icf-readability-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2563eb, #60a5fa); transition: width 0.5s; }
.cr-icf-readability-label { font-size: 12px; color: #6b7280; min-width: 60px; }
.cr-icf-version-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; margin: 2px; }
.cr-icf-version-tag.current { background: #DBEAFE; color: #2563eb; }
.cr-icf-version-tag.draft { background: #FEF3C7; color: #d97706; }

/* V5.47.0: 试验执行(execution)模块样式 */
.cr-execution-timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.cr-execution-timeline-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.cr-execution-timeline-dot.done { background: #0891B2; }
.cr-execution-timeline-dot.active { background: #3B82F6; }
.cr-execution-timeline-dot.pending { background: #d1d5db; }
.cr-execution-visit-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.cr-execution-visit-name { font-size: 13px; font-weight: 600; color: #1f2937; flex: 1; }
.cr-execution-visit-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.cr-execution-visit-status.completed { background: rgba(8,145,178,0.1); color: #0891B2; }
.cr-execution-visit-status.pending { background: #FEF3C7; color: #d97706; }
.cr-execution-compliance-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cr-execution-compliance-label { font-size: 12px; color: #6b7280; min-width: 80px; }
.cr-execution-compliance-track { flex: 1; height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.cr-execution-compliance-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.cr-execution-report-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #dc2626; }

/* V5.47.0: 方案偏离(deviation)模块样式 */
.cr-deviation-incident-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #f59e0b; }
.cr-deviation-incident-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cr-deviation-severity-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.cr-deviation-severity-tag.important { background: #FEE2E2; color: #dc2626; }
.cr-deviation-severity-tag.minor { background: #FEF3C7; color: #d97706; }
.cr-deviation-impact-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 12px; color: #4b5563; }
.cr-deviation-capa-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; margin-bottom: 8px; border-left: 3px solid #0891B2; }
.cr-deviation-capa-title { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.cr-deviation-capa-meta { font-size: 11px; color: #6b7280; }

/* V5.47.0: 药物管理(drug-mgmt)模块样式 */
.cr-drugmgmt-inventory-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.cr-drugmgmt-inventory-center { flex: 1; font-weight: 600; color: #374151; }
.cr-drugmgmt-inventory-qty { font-weight: 700; min-width: 50px; text-align: right; }
.cr-drugmgmt-inventory-qty.low { color: #dc2626; }
.cr-drugmgmt-inventory-qty.ok { color: #0891B2; }
.cr-drugmgmt-flow-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; margin-bottom: 8px; border-left: 3px solid #be185d; }
.cr-drugmgmt-flow-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.cr-drugmgmt-flow-detail { font-size: 12px; color: #4b5563; line-height: 1.6; }
.cr-drugmgmt-temp-alert { background: #FEF2F2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cr-drugmgmt-plan-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #be185d; }

/* V5.47.0: 数据管理(data-mgmt)模块样式 */
.cr-datamgmt-quality-score { font-size: 28px; font-weight: 800; text-align: center; margin: 8px 0; }
.cr-datamgmt-quality-score.good { color: #0891B2; }
.cr-datamgmt-quality-score.warning { color: #F59E0B; }
.cr-datamgmt-quality-score.poor { color: #EF4444; }
.cr-datamgmt-issue-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.cr-datamgmt-issue-type { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.cr-datamgmt-issue-type.missing { background: #FEE2E2; color: #dc2626; }
.cr-datamgmt-issue-type.query { background: #FEF3C7; color: #d97706; }
.cr-datamgmt-dbl-checklist { list-style: none; padding: 0; }
.cr-datamgmt-dbl-checklist li { padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.cr-datamgmt-export-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #3b82f6; }

/* V5.47.0: 统计分析(stats-analysis)模块样式 */
.cr-stats-sap-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #1d4ed8; }
.cr-stats-sap-title { font-size: 13px; font-weight: 700; color: #1f2937; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cr-stats-sap-content { font-size: 12px; color: #4b5563; line-height: 1.7; }
.cr-stats-sample-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12px; }
.cr-stats-sample-table th { background: #f3f4f6; padding: 6px 10px; text-align: left; font-weight: 600; border: 1px solid #e5e7eb; }
.cr-stats-sample-table td { padding: 6px 10px; border: 1px solid #e5e7eb; color: #4b5563; }
.cr-stats-tfl-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px; }
.cr-stats-tfl-id { font-weight: 700; color: #1d4ed8; min-width: 60px; }
.cr-stats-tfl-type { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: #EFF6FF; color: #1d4ed8; font-weight: 600; }
.cr-stats-result-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; border-left: 3px solid #1d4ed8; }
.cr-stats-csr-chapter { padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px; display: flex; align-items: center; gap: 6px; }

/* Clinical detail - literature items */
.clinical-lit-item {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.clinical-lit-item:last-child { border-bottom: none; }
.clinical-lit-item .lit-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}
.clinical-lit-item .lit-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.clinical-lit-item .lit-abstract {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.6;
}

/* ===== V4.7: Enhanced Module Styles ===== */
.clinical-mod-step-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.clinical-mod-step-tab {
    padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer;
    border: 1px solid #e5e7eb; background: #f9fafb; color: #6b7280; transition: all 0.2s;
    display: flex; align-items: center; gap: 4px;
}
.clinical-mod-step-tab.active { background: #0891B2; color: #fff; border-color: #0891B2; }
.clinical-mod-step-tab:hover:not(.active) { border-color: #0891B2; color: #0891B2; }
.clinical-mod-step-content { min-height: 200px; }
.clinical-mod-form-section { margin-bottom: 16px; }
.clinical-mod-form-section-title {
    font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 10px;
    padding-bottom: 6px; border-bottom: 1px solid #f3f4f6;
    display: flex; align-items: center; gap: 6px;
}
.clinical-mod-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clinical-mod-form-grid.cols-1 { grid-template-columns: 1fr; }
.clinical-mod-form-group { margin-bottom: 2px; }
.clinical-mod-form-group label {
    display: block; font-size: 12px; font-weight: 500; margin-bottom: 3px; color: #374151;
}
.clinical-mod-form-group label .required { color: #ef4444; margin-left: 2px; }
.clinical-mod-form-group input,
.clinical-mod-form-group select,
.clinical-mod-form-group textarea {
    width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 12px; font-family: inherit; transition: border-color 0.2s; background: #fff;
}
.clinical-mod-form-group input:focus,
.clinical-mod-form-group select:focus,
.clinical-mod-form-group textarea:focus {
    outline: none; border-color: #0891B2; box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
.clinical-mod-form-group textarea { min-height: 50px; resize: vertical; }

/* Output tabs */
.clinical-mod-output-tabs {
    display: flex; gap: 0; margin-bottom: 0; border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid #e5e7eb; border-bottom: none;
}
.clinical-mod-output-tab {
    flex: 1; padding: 10px 12px; font-size: 12px; font-weight: 500; text-align: center;
    cursor: pointer; background: #f9fafb; color: #6b7280; border-right: 1px solid #e5e7eb;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.clinical-mod-output-tab:last-child { border-right: none; }
.clinical-mod-output-tab.active { background: #0891B2; color: #fff; }
.clinical-mod-output-tab:hover:not(.active) { background: #f0fdf4; }
.clinical-mod-output-panels {
    border: 1px solid #e5e7eb; border-radius: 0 0 8px 8px; background: #fff;
    min-height: 300px; padding: 16px;
}
.clinical-mod-output-panel { display: none; }
.clinical-mod-output-panel.active { display: block; }

/* Result cards */
.clinical-mod-result-card {
    padding: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px;
}
.clinical-mod-result-card h4 { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.clinical-mod-result-card p { font-size: 12px; color: #4b5563; line-height: 1.6; margin: 2px 0; }
.clinical-mod-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px;
    font-weight: 500; margin-right: 4px; margin-bottom: 4px;
}
.clinical-mod-tag.success { background: #dcfce7; color: #166534; }
.clinical-mod-tag.warning { background: #fef3c7; color: #92400e; }
.clinical-mod-tag.danger { background: #fee2e2; color: #991b1b; }
.clinical-mod-tag.info { background: #dbeafe; color: #1e40af; }
.clinical-mod-tag.purple { background: #ede9fe; color: #5b21b6; }

/* Score bar */
.clinical-mod-score-bar {
    display: flex; align-items: center; gap: 8px; margin: 6px 0;
}
.clinical-mod-score-bar .bar-track {
    flex: 1; height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden;
}
.clinical-mod-score-bar .bar-fill {
    height: 100%; border-radius: 4px; transition: width 0.6s;
}
.clinical-mod-score-bar .bar-label {
    font-size: 12px; font-weight: 600; min-width: 32px; text-align: right;
}

/* Checklist */
.clinical-mod-checklist { list-style: none; padding: 0; margin: 6px 0; }
.clinical-mod-checklist li {
    padding: 4px 0; font-size: 12px; color: #4b5563; display: flex; align-items: center; gap: 6px;
}
.clinical-mod-checklist li i { font-size: 10px; }

/* Budget table */
.clinical-mod-budget-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
}
.clinical-mod-budget-table th {
    background: #f9fafb; padding: 6px 10px; text-align: left; font-weight: 600;
    color: #374151; border-bottom: 2px solid #e5e7eb;
}
.clinical-mod-budget-table td {
    padding: 6px 10px; border-bottom: 1px solid #f3f4f6; color: #4b5563;
}

/* Doc tree */
.clinical-mod-doctree { padding: 0; margin: 6px 0; }
.clinical-mod-doctree-item {
    padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; font-size: 12px;
    display: flex; align-items: center; gap: 6px; cursor: default;
}
.clinical-mod-doctree-item.folder { background: #eff6ff; color: #1e40af; font-weight: 500; }
.clinical-mod-doctree-item.file { background: #f9fafb; color: #4b5563; margin-left: 20px; }
.clinical-mod-doctree-item.missing { background: #fef2f2; color: #991b1b; }

/* Output zone enhancement for single zone with tabs */
.clinical-output-zone.enhanced {
    display: flex; flex-direction: column;
}
.clinical-output-zone.enhanced .zone-header {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .clinical-module-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .clinical-module-grid { grid-template-columns: repeat(2, 1fr); }
    .clinical-detail-layout { grid-template-columns: 1fr; }
    .clinical-detail-input { position: static; }
    .clinical-phase-card { padding: 16px 20px; }
}
@media (max-width: 480px) {
    .clinical-module-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    /* V5.40.0: responsive card padding handled in new CSS */
}

/* V4.8: 模块8-14样式 */
/* ========== V4.8: 模块8-14 增强样式 ========== */

/* 模块分步表单区 - 复用protocol工作流样式体系 */
.clinical-module-steps {
  display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 2px solid #f3f4f6;
  overflow-x: auto; padding-bottom: 0;
}
.clinical-module-step-tab {
  padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px;
  color: #9ca3af; transition: all 0.2s; display: flex; align-items: center; gap: 4px;
}
.clinical-module-step-tab:hover { color: #374151; background: #f9fafb; }
.clinical-module-step-tab.active { color: #0891B2; border-bottom-color: #0891B2; }
.clinical-module-step-tab .step-num {
  width: 20px; height: 20px; border-radius: 50%; background: #e5e7eb;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: #6b7280; flex-shrink: 0;
}
.clinical-module-step-tab.active .step-num { background: #0891B2; color: #fff; }
.clinical-module-step-tab.completed .step-num { background: #2aacba; color: #fff; }
.clinical-module-step-tab.completed .step-num::after { content: '\2713'; font-size: 10px; }
.clinical-module-step-tab.completed .step-num span { display: none; }

.clinical-module-step-content { display: none; }
.clinical-module-step-content.active { display: block; }

/* 分步表单内section */
.clinical-module-form-section { margin-bottom: 16px; }
.clinical-module-form-section-title {
  font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; gap: 6px;
}
.clinical-module-form-section-title i { font-size: 13px; color: #0891B2; }
.clinical-module-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clinical-module-form-grid.cols-1 { grid-template-columns: 1fr; }
.clinical-module-form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.clinical-module-form-group { margin-bottom: 2px; }
.clinical-module-form-group.full-width { grid-column: 1 / -1; }
.clinical-module-form-group label {
  display: block; font-size: 12px; font-weight: 500; margin-bottom: 3px; color: #374151;
}
.clinical-module-form-group label .required { color: #ef4444; margin-left: 2px; }
.clinical-module-form-group input,
.clinical-module-form-group select,
.clinical-module-form-group textarea {
  width: 100%; padding: 7px 10px; border: 1px solid #e5e7eb; border-radius: 6px;
  font-size: 13px; transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box; font-family: inherit; background: #fff;
}
.clinical-module-form-group input:focus,
.clinical-module-form-group select:focus,
.clinical-module-form-group textarea:focus {
  outline: none; border-color: #0891B2;
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}
.clinical-module-form-group textarea { min-height: 56px; resize: vertical; }

/* 多选标签 */
.clinical-module-multiselect { display: flex; flex-wrap: wrap; gap: 5px; }
.clinical-module-multiselect-tag {
  padding: 4px 10px; border: 1px solid #e5e7eb; border-radius: 14px;
  font-size: 12px; cursor: pointer; transition: all 0.2s; user-select: none; color: #374151;
}
.clinical-module-multiselect-tag:hover { border-color: #0891B2; color: #0891B2; }
.clinical-module-multiselect-tag.selected { background: #0891B2; color: #fff; border-color: #0891B2; }

/* 三区Tab增强 */
.clinical-module-output-tabs {
  display: flex; border-bottom: 1px solid #e5e7eb; background: #fff; border-radius: 10px 10px 0 0;
}
.clinical-module-output-tab {
  flex: 1; padding: 9px 10px; font-size: 12px; font-weight: 600; text-align: center;
  cursor: pointer; transition: all 0.2s; border-bottom: 2px solid transparent; color: #9ca3af;
}
.clinical-module-output-tab:hover { color: #374151; background: #f3f4f6; }
.clinical-module-output-tab.active { color: #0891B2; border-bottom-color: #0891B2; background: #f9fafb; }
.clinical-module-output-panel {
  display: none; padding: 14px; min-height: 180px; max-height: 500px;
  overflow-y: auto; font-size: 13px; line-height: 1.7; color: #4b5563;
}
.clinical-module-output-panel.active { display: block; }

/* AI分析结果卡片 */
.clinical-ai-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px;
}
.clinical-ai-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.clinical-ai-card-title { font-size: 13px; font-weight: 600; color: #1f2937; }
.clinical-ai-card-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
}
.clinical-ai-card-badge.success { background: #dcfce7; color: #16a34a; }
.clinical-ai-card-badge.warning { background: #fef3c7; color: #d97706; }
.clinical-ai-card-badge.error { background: #fee2e2; color: #dc2626; }
.clinical-ai-card-badge.info { background: #dbeafe; color: #2563eb; }
.clinical-ai-card-body { font-size: 12px; color: #4b5563; line-height: 1.7; }

/* 进度条 */
.clinical-progress-bar {
  height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin: 4px 0;
}
.clinical-progress-bar-fill {
  height: 100%; border-radius: 3px; transition: width 0.6s ease;
}

/* 状态指示灯 */
.clinical-status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px;
}
.clinical-status-dot.green { background: #22c55e; }
.clinical-status-dot.yellow { background: #f59e0b; }
.clinical-status-dot.red { background: #ef4444; }
.clinical-status-dot.blue { background: #3b82f6; }
.clinical-status-dot.gray { background: #9ca3af; }

/* 数据表格 */
.clinical-mini-table {
  width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px;
}
.clinical-mini-table th {
  background: #f9fafb; padding: 6px 8px; text-align: left; font-weight: 600;
  color: #374151; border-bottom: 1px solid #e5e7eb;
}
.clinical-mini-table td {
  padding: 6px 8px; border-bottom: 1px solid #f3f4f6; color: #4b5563;
}
.clinical-mini-table tr:hover td { background: #f9fafb; }

/* 漏斗图 */
.clinical-funnel {
  display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 12px 0;
}
.clinical-funnel-step {
  text-align: center; padding: 8px 0; border-radius: 4px; color: #fff;
  font-size: 12px; font-weight: 500; transition: all 0.3s;
}

/* 步骤导航按钮 */
.clinical-module-step-nav-btns {
  display: flex; gap: 8px; margin-top: 16px; justify-content: space-between;
}

/* V4.9: 模块15-21样式 */
/* ==================== V4.9: 模块15-21 增强样式 ==================== */

/* --- 分析卡片 --- */
.v49-analysis-card {
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.v49-analysis-card:last-child { margin-bottom: 0; }

.v49-card-green { border-left: 4px solid #0891B2; }
.v49-card-blue { border-left: 4px solid #2aacba; }
.v49-card-orange { border-left: 4px solid #f59e0b; }
.v49-card-red { border-left: 4px solid #dc2626; }
.v49-card-purple { border-left: 4px solid #7c3aed; }

.v49-card-header {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    padding: 12px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #f3f4f6;
}
.v49-card-body {
    padding: 14px 16px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

/* --- 统计行 --- */
.v49-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}
.v49-stat-row:last-child { border-bottom: none; }
.v49-stat-label {
    font-size: 13px;
    color: #6b7280;
}
.v49-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.v49-text-green { color: #16a34a !important; }
.v49-text-orange { color: #d97706 !important; }
.v49-text-red { color: #dc2626 !important; }

/* --- 进度条 --- */
.v49-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}
.v49-progress-label {
    font-size: 12px;
    color: #6b7280;
    min-width: 80px;
    flex-shrink: 0;
}
.v49-progress-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}
.v49-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.v49-progress-text {
    font-size: 12px;
    color: #6b7280;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* --- 警告项 --- */
.v49-alert-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.6;
}
.v49-alert-item:last-child { margin-bottom: 0; }
.v49-alert-item i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.v49-alert-item > div {
    flex: 1;
}
.v49-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.v49-alert-warning i { color: #f59e0b; }
.v49-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.v49-alert-danger i { color: #ef4444; }
.v49-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.v49-alert-info i { color: #3b82f6; }

/* --- 勾选项 --- */
.v49-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}
.v49-check-done { color: #16a34a; }
.v49-check-done i { color: #16a34a; }
.v49-check-pending { color: #9ca3af; }
.v49-check-pending i { color: #d1d5db; }

/* --- 文档折叠区 --- */
.v49-doc-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.v49-doc-section:last-of-type { margin-bottom: 0; }
.v49-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fafbfc;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.v49-doc-header:hover { background: #f3f4f6; }
.v49-doc-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.v49-doc-header h4 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}
.v49-doc-header i {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s;
}
.v49-doc-body {
    padding: 12px 14px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}
.v49-doc-body p {
    margin: 0 0 8px 0;
}
.v49-doc-body p:last-child { margin-bottom: 0; }

/* --- 迷你表格 --- */
.v49-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}
.v49-mini-table th {
    background: #f3f4f6;
    padding: 6px 10px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}
.v49-mini-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}
.v49-mini-table tr:hover td {
    background: #f9fafb;
}

/* --- 导出按钮 --- */
.v49-doc-btn {
    padding: 7px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.v49-doc-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.v49-btn-pdf { color: #dc2626; }
.v49-btn-pdf:hover { border-color: #dc2626; }
.v49-btn-word { color: #2563eb; }
.v49-btn-word:hover { border-color: #2563eb; }

/* --- 表单增强: checkbox类型 --- */
.clinical-detail-input .form-group input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
    accent-color: #0891B2;
    cursor: pointer;
}
.clinical-detail-input .form-group label:has(+ input[type="checkbox"]),
.clinical-detail-input .form-group input[type="checkbox"] + label {
    display: inline;
    font-weight: 400;
}

/* --- 表单增强: date/datetime-local --- */
.clinical-detail-input .form-group input[type="date"],
.clinical-detail-input .form-group input[type="datetime-local"] {
    color: #374151;
}

/* V4.10: 模块22-28样式 */
/* ==================== V4.10: 模块22-28 增强样式 ==================== */

/* 增强表单 - 日期输入 */
.clinical-detail-input input[type="date"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #1f2937;
    background: white;
    transition: border-color 0.2s;
}
.clinical-detail-input input[type="date"]:focus {
    border-color: #0891B2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}

/* 增强表单 - 复选框组 */
.v410-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.v410-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
    user-select: none;
}
.v410-checkbox-item:hover {
    border-color: #0891B2;
    background: #f0fdf4;
}
.v410-checkbox-item.checked {
    border-color: #0891B2;
    background: #ecfdf5;
    color: #166534;
}
.v410-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0891B2;
    cursor: pointer;
}

/* 增强表单 - 表单区域分组标题 */
.v410-form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 16px 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 6px;
}
.v410-form-section-title:first-child {
    margin-top: 0;
}
.v410-form-section-title i {
    color: #0891B2;
    font-size: 12px;
}

/* 增强表单 - 双列布局 */
.v410-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Zone区增强 - 指标卡片 */
.v410-metric-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    min-width: 80px;
}
.v410-metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.v410-metric-label {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.v410-metric-value.danger { color: #dc2626; }
.v410-metric-value.warning { color: #f59e0b; }
.v410-metric-value.success { color: #16a34a; }

/* Zone区增强 - 标签 */
.v410-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}
.v410-tag.red { background: #fee2e2; color: #dc2626; }
.v410-tag.orange { background: #fff7ed; color: #ea580c; }
.v410-tag.yellow { background: #fef9c3; color: #a16207; }
.v410-tag.green { background: #dcfce7; color: #16a34a; }
.v410-tag.blue { background: #dbeafe; color: #2563eb; }
.v410-tag.purple { background: #ede9fe; color: #7c3aed; }

/* Zone区增强 - 进度条 */
.v410-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 4px 0;
}
.v410-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.v410-progress-fill.green { background: linear-gradient(90deg, #0891B2, #22c55e); }
.v410-progress-fill.blue { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.v410-progress-fill.orange { background: linear-gradient(90deg, #ea580c, #f59e0b); }
.v410-progress-fill.red { background: linear-gradient(90deg, #dc2626, #ef4444); }

/* Zone区增强 - 甘特图样式 */
.v410-gantt-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}
.v410-gantt-label {
    width: 100px;
    flex-shrink: 0;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v410-gantt-track {
    flex: 1;
    height: 18px;
    position: relative;
    background: #f9fafb;
    border-radius: 4px;
}
.v410-gantt-bar {
    position: absolute;
    height: 14px;
    top: 2px;
    border-radius: 3px;
    min-width: 8px;
}
.v410-gantt-bar.completed { background: #0891B2; }
.v410-gantt-bar.in-progress { background: #3b82f6; }
.v410-gantt-bar.delayed { background: #f59e0b; }
.v410-gantt-bar.not-started { background: #d1d5db; }

/* Zone区增强 - 文档列表 */
.v410-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.v410-doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    margin-bottom: 6px;
    background: white;
    transition: all 0.2s;
}
.v410-doc-item:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.v410-doc-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.v410-doc-icon.pdf { background: #fee2e2; color: #dc2626; }
.v410-doc-icon.word { background: #dbeafe; color: #2563eb; }
.v410-doc-icon.excel { background: #dcfce7; color: #16a34a; }
.v410-doc-info { flex: 1; min-width: 0; }
.v410-doc-name { font-size: 13px; font-weight: 500; color: #1f2937; }
.v410-doc-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.v410-doc-action {
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 11px;
    color: #4b5563;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}
.v410-doc-action:hover {
    border-color: #0891B2;
    color: #0891B2;
    background: #f0fdf4;
}

/* Zone区增强 - 检查清单 */
.v410-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.v410-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #4b5563;
}
.v410-check-item:last-child { border-bottom: none; }
.v410-check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.v410-check-icon.done { background: #dcfce7; color: #16a34a; }
.v410-check-icon.pending { background: #fef9c3; color: #a16207; }
.v410-check-icon.fail { background: #fee2e2; color: #dc2626; }
.v410-check-status {
    font-size: 11px;
    margin-left: auto;
    font-weight: 500;
}
.v410-check-status.done { color: #16a34a; }
.v410-check-status.pending { color: #a16207; }
.v410-check-status.fail { color: #dc2626; }

/* 增强输出区 - 数据表格 */
.v410-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 8px 0;
}
.v410-table th {
    background: #f9fafb;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}
.v410-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}
.v410-table tr:hover td {
    background: #f9fafb;
}

/* 增强输出区 - 阶段差异标签 */
.v410-phase-diff {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0;
}
.v410-phase-card {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}
.v410-phase-card .phase-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}
.v410-phase-card .phase-label.i { color: #2563eb; }
.v410-phase-card .phase-label.ii { color: #16a34a; }
.v410-phase-card .phase-label.iii { color: #7c3aed; }
.v410-phase-card .phase-value {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.v410-phase-card .phase-note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* 增强AI按钮状态 */
.clinical-detail-ai-btn.v410-analyzing {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    animation: v410-pulse 1.5s ease-in-out infinite;
}
@keyframes v410-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 响应式 */
@media (max-width: 768px) {
    .v410-form-row { grid-template-columns: 1fr; }
    .v410-phase-diff { grid-template-columns: 1fr; }
    .v410-checkbox-group { gap: 6px; }
}

/* V4.20 AI输出样式 */
.ai-output { font-size: 13px; line-height: 1.8; color: #374151; }
.ai-output h2 { font-size: 16px; font-weight: 600; color: #1f2937; margin: 12px 0 8px 0; padding-bottom: 6px; border-bottom: 2px solid #0891B2; }
.ai-output h3 { font-size: 15px; font-weight: 600; color: #1f2937; margin: 10px 0 6px 0; }
.ai-output h4 { font-size: 14px; font-weight: 600; color: #374151; margin: 8px 0 4px 0; }
.ai-output ul { padding-left: 20px; margin: 4px 0; }
.ai-output li { margin: 2px 0; }
.ai-output strong { color: #1f2937; }
.ai-output em { color: #6b7280; font-style: italic; }
.ai-output p { margin: 4px 0; }
.ai-streaming { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.6;} }

/* ==================== V5.1: File Upload ==================== */
.file-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    margin-bottom: 12px;
}
.file-upload-zone:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.file-upload-zone.drag-over {
    border-color: #2563eb;
    background: #dbeafe;
}
.upload-zone-icon {
    font-size: 28px;
    color: #9ca3af;
    margin-bottom: 8px;
}
.upload-zone-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    margin-bottom: 4px;
}
.upload-zone-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}
.upload-zone-formats {
    font-size: 11px;
    color: #9ca3af;
}
.file-upload-list {
    margin-top: 8px;
}
.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    padding: 4px 0;
    margin-bottom: 4px;
}
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fff;
    transition: background 0.15s;
}
.file-item:hover {
    background: #f9fafb;
}
.file-item-icon {
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.file-item-info {
    flex: 1;
    min-width: 0;
}
.file-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-item-meta {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.file-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
}
.file-status.parsed { color: #16a34a; }
.file-status.parsing { color: #2563eb; }
.file-status.error { color: #dc2626; }
.file-status.pending { color: #9ca3af; }
.file-item-parse {
    flex-shrink: 0;
    padding: 2px 8px;
    border: 1px solid #2563eb;
    background: #eff6ff;
    color: #2563eb;
    cursor: pointer;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.15s;
}
.file-item-parse:hover {
    background: #2563eb;
    color: #fff;
}
.file-item-remove {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s;
}
.file-item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

@media (max-width: 768px) {
    .file-upload-zone { padding: 16px 12px; }
    .upload-zone-icon { font-size: 22px; }
    .upload-zone-text { font-size: 13px; }
}

/* ==================== V5.18: 项目中心 ==================== */
.pm-page-container { width: 100%; box-sizing: border-box; padding: 0 24px 32px; }
.pm-list-header { display:flex; align-items:center; justify-content:space-between; margin:20px 0 16px; flex-wrap:wrap; gap:12px; }
.pm-list-header h3 { font-size:18px; font-weight:700; color:#1f2937; }
.pm-list-toolbar { display:grid; grid-template-columns:minmax(320px,1fr) auto auto; align-items:center; gap:12px; margin:0 0 18px; }
.pm-list-search { display:flex; align-items:center; gap:9px; background:#fff; border:1px solid #dbeafe; border-radius:10px; padding:9px 14px; min-height:42px; box-shadow:0 8px 18px rgba(15,23,42,0.04); }
.pm-list-search input { border:none; outline:none; font-size:13px; width:100%; background:transparent; color:#0f172a; }
.pm-list-search input::placeholder { color:#94a3b8; }
.pm-list-search i { color:#9ca3af; font-size:13px; }
.pm-list-filters { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-list-filters select { min-height:38px; border:1px solid #dbeafe; border-radius:9px; background:#fff; color:#0f172a; font-size:13px; font-weight:650; padding:0 10px; }
.pm-search-box { display:flex; align-items:center; gap:8px; background:white; border:1px solid #e5e7eb; border-radius:8px; padding:6px 14px; }
.pm-search-box input { border:none; outline:none; font-size:13px; width:200px; background:transparent; }
.pm-search-box i { color:#9ca3af; font-size:13px; }
.pm-add-btn { display:inline-flex; align-items:center; gap:7px; justify-content:center; min-height:42px; padding:0 18px; background:linear-gradient(135deg,#0891B2,#35a36d); color:white; border:none; border-radius:10px; font-size:13px; font-weight:750; cursor:pointer; transition:all 0.2s; box-shadow:0 10px 20px rgba(8,145,178,0.18); }
.pm-add-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(8,145,178,0.3); }
.pm-project-cards { display:grid; grid-template-columns:1fr; gap:12px; margin-top:8px; width:100%; }
.pm-project-card { position:relative; display:grid; grid-template-columns:minmax(320px,1.05fr) minmax(420px,.95fr); gap:22px; align-items:stretch; min-height:156px; background:linear-gradient(135deg,#ffffff 0%,#fbfefd 100%); border:1px solid #dbeafe; border-radius:12px; padding:18px 22px 18px 24px; cursor:pointer; transition:all 0.22s ease; box-shadow:0 10px 26px rgba(15,23,42,0.05); overflow:hidden; }
.pm-project-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; background:var(--pm-project-accent,#0891B2); }
.pm-project-card:hover { transform:translateY(-2px); border-color:var(--pm-project-accent,#0891B2); box-shadow:0 16px 34px rgba(15,23,42,0.09); }
.pm-project-card-main { min-width:0; display:flex; flex-direction:column; gap:10px; }
.pm-project-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:0; }
.pm-project-title-group { min-width:0; display:grid; gap:3px; }
.pm-project-card-name { color:#0f172a; font-size:18px; font-weight:850; line-height:1.25; white-space:normal; overflow:visible; overflow-wrap:anywhere; word-break:break-word; }
.pm-project-card-code { color:#0891B2; font-size:12px; font-weight:800; letter-spacing:.01em; }
.pm-project-card-badges { display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; flex-shrink:0; }
.pm-project-phase-pill, .pm-project-risk-pill { display:inline-flex; align-items:center; min-height:24px; padding:0 9px; border:1px solid; border-radius:999px; font-size:11px; font-weight:800; white-space:nowrap; }
.pm-project-risk-pill.low { border-color:#bbf7d0; background:#f0fdf4; color:#15803d; }
.pm-project-risk-pill.medium { border-color:#fed7aa; background:#fff7ed; color:#c2410c; }
.pm-project-risk-pill.high { border-color:#fecaca; background:#fef2f2; color:#dc2626; }
.pm-project-card-desc { color:#334155; font-size:13px; font-weight:650; line-height:1.45; }
.pm-project-card-meta { display:flex; align-items:center; gap:18px; flex-wrap:wrap; color:#475569; font-size:12px; }
.pm-project-card-meta span { display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%; }
.pm-project-card-meta b { color:#94a3b8; font-size:11px; font-weight:750; }
.pm-project-card-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; color:#64748b; font-size:12px; }
.pm-project-enter { display:inline-flex; align-items:center; gap:6px; color:#0891B2; font-weight:800; }
.pm-project-card-metrics { display:grid; grid-template-columns:repeat(4,minmax(72px,1fr)); gap:0; align-content:center; border-left:1px solid #e2e8f0; padding-left:18px; }
.pm-project-stat { min-width:0; padding:0 11px; border-right:1px solid #eef2f7; }
.pm-project-stat:last-of-type { border-right:0; }
.pm-project-stat span { display:block; color:#94a3b8; font-size:11px; font-weight:750; margin-bottom:5px; }
.pm-project-stat strong { display:block; color:#0f172a; font-size:18px; font-weight:850; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pm-project-stat small { display:block; margin-top:4px; color:#64748b; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pm-project-stat.primary strong { color:#0891B2; }
.pm-project-stat.risk.low strong { color:#15803d; }
.pm-project-stat.risk.medium strong { color:#c2410c; }
.pm-project-stat.risk.high strong { color:#dc2626; }
.pm-project-progress { grid-column:1 / -1; height:5px; margin:15px 13px 0; border-radius:999px; background:#e2e8f0; overflow:hidden; }
.pm-project-progress-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,#0891B2,#35a36d); }
.pm-empty-state { text-align:center; padding:60px 20px; color:#9ca3af; }
.pm-empty-state i { font-size:48px; margin-bottom:16px; display:block; }
.pm-empty-state p { font-size:14px; margin-bottom:8px; }

/* 驾驶舱样式 */
.pm-cockpit { padding:0 24px 32px; }
.pm-cockpit-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; transition:color 0.2s; margin-bottom:12px; }
.pm-cockpit-back:hover { color:#0891B2; }
.pm-cockpit-title-bar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.pm-cockpit-title-bar h2 { font-size:20px; font-weight:700; color:#1f2937; display:flex; align-items:center; gap:10px; }
.pm-cockpit-title-bar h2 .pm-phase-tag { display:inline-block; padding:3px 12px; border-radius:20px; font-size:12px; font-weight:500; }
.pm-cockpit-actions { display:flex; gap:10px; flex-wrap:wrap; }
.pm-cockpit-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:8px; font-size:13px; cursor:pointer; border:1px solid #e5e7eb; background:white; color:#374151; transition:all 0.2s; }
.pm-cockpit-btn:hover { border-color:#0891B2; color:#0891B2; }
.pm-cockpit-btn.primary { background:linear-gradient(135deg,#0891B2,#48a14d); color:white; border:none; }
.pm-cockpit-btn.primary:hover { box-shadow:0 4px 12px rgba(8,145,178,0.3); }

.pm-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.pm-card { background:white; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; transition:all 0.25s; box-shadow:0 1px 3px rgba(0,0,0,0.04); cursor:pointer; }
.pm-card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.08); border-color:#d1d5db; }
.pm-card-header { display:flex; align-items:center; gap:10px; padding:14px 18px 10px; border-bottom:1px solid #f3f4f6; }
.pm-card-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; color:white; flex-shrink:0; }
.pm-card-header-text { flex:1; }
.pm-card-header-text h4 { font-size:14px; font-weight:600; color:#1f2937; margin:0; }
.pm-card-header-text small { font-size:11px; color:#9ca3af; }
.pm-card-link { font-size:11px; color:#0891B2; display:flex; align-items:center; gap:3px; }
.pm-card-body { padding:14px 18px; }
.pm-info-row { display:flex; justify-content:space-between; font-size:12px; margin-bottom:6px; padding:2px 0; }
.pm-info-row .label { color:#9ca3af; }
.pm-info-row .value { color:#1f2937; font-weight:500; }
.pm-stat-row { display:flex; gap:12px; margin-bottom:10px; }
.pm-stat-item { flex:1; text-align:center; padding:8px; background:#f9fafb; border-radius:8px; }
.pm-stat-item .num { font-size:20px; font-weight:700; color:#1f2937; }
.pm-stat-item .lbl { font-size:11px; color:#9ca3af; margin-top:2px; }
.pm-progress-bar { height:8px; border-radius:4px; background:#e5e7eb; overflow:hidden; margin:8px 0; }
.pm-progress-bar-fill { height:100%; border-radius:4px; transition:width 0.6s; }
.pm-milestone-timeline { display:flex; align-items:center; gap:2px; margin:8px 0; flex-wrap:nowrap; }
.pm-milestone-node { flex:1; text-align:center; position:relative; }
.pm-milestone-dot { width:10px; height:10px; border-radius:50%; margin:0 auto 4px; }
.pm-milestone-dot.done { background:#0891B2; }
.pm-milestone-dot.current { background:#fbbf24; box-shadow:0 0 0 3px rgba(251,191,36,0.2); }
.pm-milestone-dot.pending { background:#d1d5db; }
.pm-milestone-label { font-size:9px; color:#6b7280; white-space:nowrap; }
.pm-milestone-date { font-size:9px; color:#9ca3af; }
.pm-milestone-line { flex:0.5; height:2px; background:#e5e7eb; margin-bottom:16px; }
.pm-milestone-line.done { background:#0891B2; }
.pm-risk-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:500; }
.pm-risk-badge.high { background:#fef2f2; color:#dc2626; }
.pm-risk-badge.medium { background:#fffbeb; color:#d97706; }
.pm-risk-badge.low { background:#f0fdf4; color:#16a34a; }
.pm-mini-chart { display:flex; align-items:flex-end; gap:3px; height:40px; margin-top:6px; }
.pm-mini-bar { flex:1; border-radius:2px 2px 0 0; transition:height 0.5s; min-width:6px; }

/* AI报告弹窗 */
.pm-ai-modal { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:9999; align-items:center; justify-content:center; }
.pm-ai-modal.show { display:flex; }
.pm-ai-modal-content { background:white; border-radius:16px; width:90%; max-width:720px; max-height:80vh; overflow-y:auto; padding:24px; position:relative; }
.pm-ai-modal-close { position:absolute; top:12px; right:16px; font-size:20px; color:#9ca3af; cursor:pointer; background:none; border:none; }
.pm-ai-modal-close:hover { color:#374151; }
.pm-ai-modal-title { font-size:18px; font-weight:700; color:#1f2937; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-ai-report-body { font-size:13px; line-height:1.8; color:#374151; }
.pm-ai-report-body h3 { font-size:15px; font-weight:600; color:#1f2937; margin:16px 0 8px; padding-bottom:6px; border-bottom:1px solid #e5e7eb; }
.pm-ai-report-body strong { color:#0891B2; }
.pm-ai-report-body ul { padding-left:20px; margin:8px 0; }
.pm-ai-report-body li { margin-bottom:4px; }
.pm-ai-loading { text-align:center; padding:40px; color:#9ca3af; }
.pm-ai-loading i { font-size:32px; animation:spin 1s linear infinite; display:block; margin-bottom:12px; }
@keyframes spin { 100%{transform:rotate(360deg);} }

/* 新增/编辑项目弹窗 */
.pm-form-modal { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:9998; align-items:center; justify-content:center; }
.pm-form-modal.show { display:flex; }
.pm-form-modal-content { background:white; border-radius:16px; width:90%; max-width:560px; max-height:80vh; overflow-y:auto; padding:24px; }
.pm-form-group { margin-bottom:14px; }
.pm-form-group label { display:block; font-size:13px; font-weight:500; color:#374151; margin-bottom:4px; }
.pm-form-group input, .pm-form-group select, .pm-form-group textarea { width:100%; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; }
.pm-form-group input:focus, .pm-form-group select:focus, .pm-form-group textarea:focus { border-color:#0891B2; }
.pm-form-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:20px; position:sticky; bottom:-24px; z-index:2; background:#fff; padding:14px 0 0; }
.pm-form-actions button { padding:8px 20px; border-radius:8px; font-size:13px; cursor:pointer; border:none; }
.pm-form-actions .btn-cancel { background:#f3f4f6; color:#374151; }
.pm-form-actions .btn-save { background:linear-gradient(135deg,#0891B2,#48a14d); color:white; }

@media(max-width:1024px) {
    .pm-grid { grid-template-columns:repeat(2,1fr); }
    .pm-project-card { grid-template-columns:minmax(0,1fr) minmax(360px,.85fr); gap:16px; padding:16px 18px 16px 20px; }
    .pm-project-card-name { font-size:17px; }
    .pm-project-card-meta { gap:10px 14px; }
    .pm-project-card-meta span { flex:1 1 180px; }
    .pm-project-card-footer { margin-top:0; }
    .pm-project-card-metrics { grid-template-columns:repeat(4,minmax(64px,1fr)); padding-left:14px; }
    .pm-project-stat { padding:0 8px; }
    .pm-project-stat strong { font-size:17px; }
    .pm-project-stat small { font-size:10px; }
    .pm-project-progress { margin:14px 8px 0; }
}
@media(max-width:768px) {
    .pm-grid { grid-template-columns:1fr; }
    .pm-project-cards { grid-template-columns:1fr; }
    .pm-list-toolbar { grid-template-columns:1fr; }
    .pm-list-filters { width:100%; }
    .pm-list-filters select { flex:1; min-width:0; }
    .pm-add-btn { width:100%; }
    .pm-project-card { grid-template-columns:1fr; min-height:auto; padding:16px 16px 16px 18px; gap:14px; }
    .pm-project-card-header { align-items:flex-start; }
    .pm-project-card-name { font-size:16px; white-space:normal; }
    .pm-project-card-badges { justify-content:flex-start; }
    .pm-project-card-meta { gap:8px 12px; }
    .pm-project-card-meta span { flex:1 1 160px; }
    .pm-project-card-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); border-left:0; border-top:1px solid #e2e8f0; padding:14px 0 0; row-gap:12px; }
    .pm-project-stat { padding:0 12px; }
    .pm-project-stat:nth-child(2n) { border-right:0; }
    .pm-project-progress { margin:2px 12px 0; }
    .pm-search-box input { width:140px; }
    /* V5.30.3: 表格横向滚动 */
    .pm-data-table { display: block; }
    .pm-docs-table-wrap, .pm-budget-table-wrap, .pm-contracts-table-wrap, .pm-hospitals-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pm-page-container, .pm-cockpit { padding: 0 12px 24px; }
    .pm-ov-info-card { padding: 14px; }
    .pm-ov-bottom { grid-template-columns: 1fr; }
}
@media(max-width:640px) {
    .pm-project-card { padding:14px 14px 14px 16px; gap:10px; }
    .pm-project-card-header { display:grid; gap:8px; }
    .pm-project-card-desc { font-size:12px; }
    .pm-project-card-meta { display:grid; grid-template-columns:1fr; gap:6px; }
    .pm-project-card-meta span:nth-child(2) { display:none; }
    .pm-project-card-footer { align-items:flex-start; }
    .pm-project-card-footer > span:first-child { display:none; }
    .pm-project-card-metrics { display:none; }
}

/* ==================== V5.20 RBAC 权限控制 ==================== */
.rbac-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}
.rbac-role-badge.view { background: #fef3c7; color: #92400e; }
.rbac-role-badge.edit { background: #dbeafe; color: #1e40af; }
.rbac-role-badge.manage { background: #d1fae5; color: #065f46; }
.rbac-topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}
.rbac-topbar-badge.view { background: #fef3c7; color: #92400e; }
.rbac-topbar-badge.edit { background: #dbeafe; color: #1e40af; }
.rbac-topbar-badge.manage { background: #d1fae5; color: #065f46; }
.rbac-locked-card {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.6);
    position: relative;
}
.rbac-locked-card::after {
    content: '🔒';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    opacity: 1;
    filter: none;
}
.rbac-locked-card .clinical-module-card-name,
.rbac-locked-card .clinical-module-card-desc {
    filter: none;
}
.rbac-sidebar-hidden {
    display: none !important;
}

/* V10.5.837: sidebar permission is enforced silently; templates must not look permission-bound. */
.sidebar .rbac-sidebar-badge {
    display: none !important;
}
.rbac-view-readonly input,
.rbac-view-readonly select,
.rbac-view-readonly textarea {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    pointer-events: none !important;
    border-color: #e5e7eb !important;
}
.rbac-view-readonly .btn-primary,
.rbac-view-readonly button[class*="save"],
.rbac-view-readonly button[class*="submit"] {
    display: none !important;
}
.rbac-manage-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #ecfdf5, #f0f9ff);
    border: 1px solid #d1fae5;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #065f46;
}
.rbac-manage-bar i { color: #0891B2; }

/* V8.0.1-3: 知识中心/文件管理页面容器 */
#page-knowledge-hub, #page-project-doc, #page-project-dashboard { height: 100%; overflow-y: auto; }
#page-project-manager, #page-file-version-modal, #page-audit-log-viewer { height: 100%; overflow-y: auto; }
#page-project-dashboard { height: 100%; overflow-y: auto; }

/* ==================== V5.25: 文档管理中心样式 ==================== */
.doc-mgmt-page { display:flex; flex-direction:column; height:100%; }
.doc-mgmt-hero { background: linear-gradient(135deg, #1a5632 0%, #2d7a4f 50%, #0891B2 100%); color: #fff; padding: 24px 28px; }
.doc-mgmt-hero h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.doc-mgmt-hero .doc-mgmt-hero-en { font-size: 12px; opacity: 0.8; letter-spacing: 1px; }
.doc-mgmt-hero .doc-mgmt-hero-desc { font-size: 13px; opacity: 0.9; margin-top: 6px; }

.doc-mgmt-toolbar {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    background: #fff; border-bottom: 1px solid #e1e8ed; flex-wrap: wrap;
}
.doc-mgmt-toolbar select {
    padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; color: #374151; background: #f9fafb; min-width: 180px;
}
.doc-mgmt-toolbar .doc-mgmt-btn {
    padding: 6px 14px; border: none; border-radius: 6px; font-size: 12px;
    cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
}
.doc-mgmt-btn-primary { background: #0891B2; color: #fff; }
.doc-mgmt-btn-primary:hover { background: #48a14d; }
.doc-mgmt-btn-outline { background: #fff; color: #0891B2; border: 1px solid #0891B2; }
.doc-mgmt-btn-outline:hover { background: #ecfdf5; }

.doc-mgmt-tabs {
    display: flex; gap: 0; background: #fff; border-bottom: 2px solid #e1e8ed; padding: 0 20px;
}
.doc-mgmt-tab {
    padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer;
    border-bottom: 3px solid transparent; color: #6b7280; transition: all 0.2s;
    background: none; border-top: none; border-left: none; border-right: none;
}
.doc-mgmt-tab:hover { color: #0891B2; }
.doc-mgmt-tab.active { color: #0891B2; border-bottom-color: #0891B2; }

.doc-mgmt-body {
    display: flex; flex: 1; min-height: 0; overflow: hidden;
}
.doc-mgmt-tree-panel {
    width: 380px; min-width: 300px; background: #fff; border-right: 1px solid #e1e8ed;
    overflow-y: auto; padding: 8px 0;
}
.doc-mgmt-tree-panel::-webkit-scrollbar { width: 4px; }
.doc-mgmt-tree-panel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.doc-mgmt-file-panel {
    flex: 1; background: #f9fafb; overflow-y: auto; padding: 16px 20px;
}
.doc-mgmt-file-panel::-webkit-scrollbar { width: 4px; }
.doc-mgmt-file-panel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.dm-tree-node { user-select: none; }
.dm-tree-node-header {
    display: flex; align-items: center; padding: 5px 8px; cursor: pointer;
    border-radius: 4px; margin: 1px 8px; font-size: 13px; color: #374151;
    transition: background 0.15s;
}
.dm-tree-node-header:hover { background: #f0fdf4; }
.dm-tree-node-header.selected { background: #dcfce7; color: #166534; font-weight: 600; }
.dm-tree-node-header .dm-arrow {
    width: 16px; font-size: 10px; color: #9ca3af; transition: transform 0.2s; flex-shrink: 0;
}
.dm-tree-node-header .dm-arrow.open { transform: rotate(90deg); }
.dm-tree-node-header .dm-arrow.leaf { visibility: hidden; }
.dm-tree-node-header .dm-icon { margin: 0 6px; font-size: 13px; }
.dm-tree-node-header .dm-icon.folder { color: #f59e0b; }
.dm-tree-node-header .dm-icon.leaf-icon { color: #0891B2; }
.dm-tree-node-header .dm-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-tree-node-header .dm-count {
    font-size: 11px; color: #9ca3af; background: #f3f4f6; padding: 1px 6px;
    border-radius: 10px; margin-left: 4px;
}
.dm-tree-children { display: none; }
.dm-tree-children.open { display: block; }

.dm-file-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.dm-file-header h3 { font-size: 16px; font-weight: 600; color: #1f2937; }
.dm-file-path { font-size: 12px; color: #9ca3af; margin-bottom: 12px; }

.dm-version-table {
    width: 100%; border-collapse: collapse; font-size: 12px; background: #fff;
    border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.dm-version-table th {
    background: #f8fafc; padding: 8px 12px; text-align: left; font-weight: 600;
    color: #374151; border-bottom: 2px solid #e5e7eb; white-space: nowrap;
}
.dm-version-table td {
    padding: 8px 12px; border-bottom: 1px solid #f3f4f6; color: #4b5563;
}
.dm-version-table tr:hover td { background: #f9fafb; }

.dm-status-tag {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.dm-status-pending { background: #fef3c7; color: #92400e; }
.dm-status-approved { background: #d1fae5; color: #065f46; }
.dm-status-rejected { background: #fee2e2; color: #991b1b; }

.dm-validate-area {
    background: #fff; border-radius: 8px; padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-top: 16px;
}
.dm-validate-area h4 { font-size: 14px; font-weight: 600; color: #1f2937; margin-bottom: 12px; }
.dm-validate-input-row {
    display: flex; gap: 8px; margin-bottom: 12px; align-items: center; flex-wrap: wrap;
}
.dm-validate-input {
    flex: 1; min-width: 280px; padding: 8px 12px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 13px;
}
.dm-validate-input:focus { outline: none; border-color: #0891B2; box-shadow: 0 0 0 3px rgba(8,145,178,0.1); }
.dm-validate-result {
    padding: 10px 14px; border-radius: 6px; font-size: 12px; line-height: 1.8;
}
.dm-validate-pass { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.dm-validate-fail { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.dm-validate-hint { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.dm-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px; color: #9ca3af;
}
.dm-empty-state i { font-size: 48px; margin-bottom: 16px; color: #d1d5db; }
.dm-empty-state p { font-size: 14px; }

.dm-upload-modal-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 2000; display: flex;
    align-items: center; justify-content: center;
}
.dm-upload-modal {
    background: #fff; border-radius: 12px; width: 520px; max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); max-height: 80vh; overflow-y: auto;
}
.dm-upload-modal-header {
    padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: space-between;
}
.dm-upload-modal-header h3 { font-size: 16px; font-weight: 600; }
.dm-upload-modal-body { padding: 16px 20px; }
.dm-upload-modal-footer {
    padding: 12px 20px; border-top: 1px solid #e5e7eb;
    display: flex; justify-content: flex-end; gap: 8px;
}
.dm-form-group { margin-bottom: 14px; }
.dm-form-label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.dm-form-input {
    width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px;
}
.dm-form-input:focus { outline: none; border-color: #0891B2; }
.dm-drop-zone {
    border: 2px dashed #d1d5db; border-radius: 8px; padding: 24px;
    text-align: center; color: #9ca3af; cursor: pointer; transition: all 0.2s;
}
.dm-drop-zone:hover, .dm-drop-zone.dragover {
    border-color: #0891B2; background: #ecfdf5; color: #0891B2;
}
.dm-drop-zone i { font-size: 28px; margin-bottom: 8px; display: block; }

/* ==================== V8.0.0-0: 批量操作+质控反馈样式 ==================== */

/* 批量操作下拉 */
.dm-batch-dropdown { position: relative; display: inline-block; }
.dm-batch-trigger { font-size: 12px !important; padding: 5px 12px !important; }
.dm-batch-trigger:disabled { opacity: 0.5; cursor: not-allowed; }
.dm-batch-count { background: #0891B2; color: #fff; padding: 1px 6px; border-radius: 10px; font-size: 10px; margin-left: 4px; }
.dm-batch-menu {
    position: absolute; top: 100%; left: 0; z-index: 100;
    background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 200px; padding: 4px 0; margin-top: 4px;
    border: 1px solid #e5e7eb;
}
.dm-batch-item {
    padding: 8px 16px; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 8px;
    color: #374151; transition: background 0.15s;
}
.dm-batch-item:hover { background: #f0fdf4; }

/* 电子文档列表项 */
.dm-file-list { display: flex; flex-direction: column; gap: 4px; }
.dm-file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 10px; background: #fff; border-radius: 6px; border: 1px solid #f3f4f6;
    font-size: 12px; transition: background 0.15s;
}
.dm-file-item:hover { background: #f9fafb; }
.dm-file-item-info { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.dm-file-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.dm-file-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.dm-action-btn {
    background: none; border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 6px;
    font-size: 11px; cursor: pointer; color: #6b7280; transition: all 0.15s;
}
.dm-action-btn:hover { border-color: #0891B2; color: #0891B2; background: #f0fdf4; }
.dm-action-btn-ai { color: #7c3aed; border-color: #ddd6fe; }
.dm-action-btn-ai:hover { border-color: #7c3aed; background: #f5f3ff; color: #7c3aed; }

/* 上传区域 */
.dm-upload-area {
    margin-top: 8px; padding: 10px 14px; border: 2px dashed #d1d5db; border-radius: 6px;
    font-size: 12px; color: #6b7280; text-align: center; cursor: pointer;
    transition: all 0.2s; background: #fafafa;
}
.dm-upload-area:hover, .dm-upload-area.dm-dragover {
    border-color: #0891B2; background: #ecfdf5; color: #0891B2;
}

/* 质控反馈区 */
.dm-qc-section { margin-top: 16px; }
.dm-qc-box {
    background: #f8fafc; border-radius: 8px; padding: 10px 14px;
    border: 1px solid #e5e7eb;
}
.dm-qc-round {
    margin-bottom: 8px; padding-bottom: 8px;
    border-bottom: 1px dashed #e5e7eb;
}
.dm-qc-round:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.dm-qc-round-label {
    font-size: 11px; font-weight: 700; color: #374151; margin-bottom: 4px;
}
.dm-qc-row {
    display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px;
}
.dm-qc-type {
    font-weight: 600; color: #6b7280; min-width: 30px; font-size: 11px;
}
.dm-qc-result-pass { color: #059669; font-weight: 600; font-size: 12px; }
.dm-qc-result-issue { color: #d97706; font-weight: 600; font-size: 12px; }
.dm-qc-pending { color: #9ca3af; font-size: 12px; font-style: italic; }
.dm-qc-detail { color: #6b7280; font-size: 11px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-qc-fill-btn, .dm-qc-edit-btn {
    background: none; border: 1px solid #d1d5db; border-radius: 4px; padding: 1px 8px;
    font-size: 11px; cursor: pointer; color: #6b7280; transition: all 0.15s; margin-left: auto;
}
.dm-qc-fill-btn:hover, .dm-qc-edit-btn:hover { border-color: #0891B2; color: #0891B2; background: #f0fdf4; }
.dm-qc-add-round { text-align: center; padding-top: 8px; }

/* QC反馈Modal */
.dm-qc-modal {
    background: #fff; border-radius: 12px; width: 420px; max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); max-height: 80vh; overflow-y: auto;
}

/* 批量上传文件项 */
.dm-batch-file-item {
    display: flex; align-items: center; gap: 6px; padding: 4px 8px;
    background: #fff; border-radius: 4px; border: 1px solid #f3f4f6;
    font-size: 12px; margin-bottom: 4px;
}
.dm-batch-section-select { max-width: 160px; }

/* 进度条 */
.dm-progress-bar {
    height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden;
}
.dm-progress-fill {
    height: 100%; background: linear-gradient(90deg, #0891B2, #48a14d);
    border-radius: 3px; transition: width 0.3s;
}

/* 选中行高亮（批量操作） */
.dm-row-selected { background: #ecfdf5 !important; }
.dm-checkbox { width: 14px; height: 14px; cursor: pointer; accent-color: #0891B2; }

/* ========== V5.27: 项目中心驾驶舱样式 ========== */
.pm-dash-selector { display:flex; align-items:center; gap:12px; padding:0 24px 16px; flex-wrap:wrap; }
.pm-dash-selector label { font-size:13px; color:#6b7280; font-weight:500; }
.pm-dash-selector select { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:14px; background:#fff; min-width:240px; cursor:pointer; }
.pm-dash-selector select:focus { border-color:#0891B2; outline:none; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-dash-info-bar { display:flex; gap:16px; padding:0 24px 16px; flex-wrap:wrap; }
.pm-dash-info-item { font-size:12px; color:#6b7280; }
.pm-dash-info-item span { color:#1f2937; font-weight:500; }

.pm-dash-kpi-row { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; padding:0 24px 20px; }
.pm-dash-kpi { background:#fff; border-radius:10px; padding:16px 12px; border:1px solid #e5e7eb; display:flex; flex-direction:column; align-items:center; gap:6px; position:relative; transition:all 0.2s; overflow:hidden; }
.pm-dash-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-dash-kpi .kpi-main { text-align:center; }
.pm-dash-kpi .kpi-num { font-size:20px; font-weight:700; color:#1f2937; }
.pm-dash-kpi .kpi-label { font-size:11px; color:#9ca3af; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.pm-dash-kpi .kpi-icon { position:absolute; top:8px; right:8px; width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; flex-shrink:0; }
.pm-dash-kpi.kpi-green .kpi-num { color:#16a34a; }
.pm-dash-kpi.kpi-green .kpi-icon { background:#dcfce7; color:#16a34a; }
.pm-dash-kpi.kpi-orange .kpi-num { color:#d97706; }
.pm-dash-kpi.kpi-orange .kpi-icon { background:#fef3c7; color:#d97706; }
.pm-dash-kpi.kpi-red .kpi-num { color:#dc2626; }
.pm-dash-kpi.kpi-red .kpi-icon { background:#fee2e2; color:#dc2626; }
.pm-dash-kpi.kpi-blue .kpi-num { color:#2563eb; }
.pm-dash-kpi.kpi-blue .kpi-icon { background:#dbeafe; color:#2563eb; }
.pm-dash-kpi.kpi-purple .kpi-num { color:#7c3aed; }
.pm-dash-kpi.kpi-purple .kpi-icon { background:#ede9fe; color:#7c3aed; }

/* V5.30.3: 驾驶舱KPI卡片移动端适配 */
@media (max-width: 768px) {
    .pm-dash-kpi-row { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px 16px; }
    .pm-dash-kpi { padding: 12px 8px; }
    .pm-dash-kpi .kpi-num { font-size: 16px; }
    .pm-dash-kpi .kpi-label { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .pm-dash-kpi .kpi-icon { width: 20px; height: 20px; font-size: 8px; top: 6px; right: 6px; }
}
@media (max-width: 375px) {
    .pm-dash-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 8px 12px; }
    .pm-dash-kpi { padding: 10px 6px; }
    .pm-dash-kpi .kpi-num { font-size: 14px; }
    .pm-dash-kpi .kpi-label { font-size: 9px; }
}

.pm-dash-zone { padding:0 24px 20px; }
.pm-dash-zone-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.pm-dash-zone-title i { font-size:12px; }
.pm-dash-zone-title::after { content:''; flex:1; height:1px; background:#e5e7eb; }

.pm-dash-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; }
.pm-dash-card { background:#fff; border-radius:10px; padding:14px 16px; border:1px solid #e5e7eb; cursor:pointer; transition:all 0.25s; display:flex; align-items:center; gap:10px; }
.pm-dash-card:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,0.08); border-color:#0891B2; }
.pm-dash-card-icon { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.pm-dash-card-text { flex:1; min-width:0; }
.pm-dash-card-text h5 { font-size:13px; font-weight:600; color:#1f2937; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pm-dash-card-text small { font-size:10px; color:#9ca3af; }
.pm-dash-card-arrow { color:#d1d5db; font-size:12px; transition:color 0.2s; }
.pm-dash-card:hover .pm-dash-card-arrow { color:#0891B2; }

/* V10.3: 项目中心驾驶舱第一轮视觉整理 */
.pm-page-container {
    width: 100%;
    box-sizing: border-box;
    max-width: 1480px;
    margin: 0 auto;
}
#page-project-management > .pm-page-container {
    max-width: none;
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
}
#page-project-management .pm-list-toolbar,
#page-project-management .pm-project-cards,
#page-project-management .pm-project-card {
    min-width: 0;
    max-width: 100%;
}
.pm-dash-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 24px 12px;
    padding: 8px 0;
    color: #0f766e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.pm-dash-back:hover { color: #0891B2; }
.pm-dash-project-bar {
    margin: 0 24px 16px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.pm-dash-selector {
    padding: 0;
    margin-bottom: 10px;
    justify-content: space-between;
}
.pm-dash-selector label {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}
.pm-dash-selector select {
    min-width: 320px;
    min-height: 42px;
    border-color: #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 650;
}
.pm-dash-info-bar {
    padding: 0;
    display: block;
}
.pm-dash-context-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-top: 2px;
}
.pm-dash-context-main {
    min-width: 0;
    display: grid;
    gap: 7px;
}
.pm-dash-context-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex-wrap: wrap;
}
.pm-dash-context-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.pm-dash-context-title strong {
    max-width: 360px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pm-dash-context-title code {
    padding: 2px 7px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #f8fcff;
    color: #0891B2;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
}
.pm-dash-context-flow {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}
.pm-dash-context-flow i { color: #0891B2; }
.pm-dash-context-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.pm-dash-context-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 650;
}
.pm-dash-context-meta b {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}
.pm-dash-linkage-wrap { position: relative; }
.pm-dash-linkage-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #bae6fd;
    border-radius: 9px;
    background: #f0fdff;
    color: #0e7490;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.pm-dash-linkage-btn:hover {
    border-color: #0891B2;
    background: #ecfeff;
}
.pm-dash-linkage-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
}
.pm-dash-linkage-panel {
    position: absolute;
    top: 40px;
    right: 0;
    width: 360px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 1000;
}
.pm-dash-content-wrapper {
    margin: 0 24px 16px;
}
.pm-dash-content-wrapper:empty {
    display: none;
}
.pm-dash-tab-panel {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
    overflow: hidden;
}
.pm-dash-tab-section {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}
.pm-dash-tab-section:last-child { border-bottom: 0; }
.pm-dash-tab-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 750;
}
.pm-dash-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 18px;
}
.pm-dash-tab-field {
    min-width: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}
.pm-dash-tab-field span {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.pm-dash-action-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
}
.pm-dash-action-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
}
.pm-dash-action-desc {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}
.pm-dash-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.pm-dash-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.pm-dash-action-btn.primary {
    border-color: #0891B2;
    background: #0891B2;
    color: #fff;
}
.pm-dash-action-btn:hover {
    border-color: #0891B2;
    color: #0e7490;
    background: #f0fdff;
}
.pm-dash-action-btn.primary:hover {
    background: #0e7490;
    color: #fff;
}
.pm-dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(156px, 1fr));
    gap: 12px;
    padding: 0 24px 18px;
}
.pm-dash-kpi {
    --kpi-color: #0891B2;
    --kpi-soft: #ecfeff;
    min-height: 104px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    padding: 16px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: none;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.pm-dash-kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--kpi-color);
    opacity: 0.82;
}
.pm-dash-kpi:hover {
    transform: translateY(-1px);
    border-color: rgba(8, 145, 178, 0.34);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.pm-dash-kpi.kpi-green { --kpi-color: #16a34a; --kpi-soft: #ecfdf5; }
.pm-dash-kpi.kpi-blue { --kpi-color: #2563eb; --kpi-soft: #eff6ff; }
.pm-dash-kpi.kpi-purple { --kpi-color: #7c3aed; --kpi-soft: #f5f3ff; }
.pm-dash-kpi.kpi-orange { --kpi-color: #d97706; --kpi-soft: #fffbeb; }
.pm-dash-kpi.kpi-red { --kpi-color: #dc2626; --kpi-soft: #fff1f2; }
.pm-dash-kpi > svg {
    width: 46px;
    height: 46px;
}
.pm-dash-kpi.kpi-count {
    grid-template-columns: minmax(0, 1fr) 34px;
}
.pm-dash-kpi .kpi-main {
    width: 100%;
    display: grid;
    gap: 5px;
    text-align: left;
}
.pm-dash-kpi .kpi-num {
    color: var(--kpi-color);
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}
.pm-dash-kpi .kpi-label {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
}
.pm-dash-kpi .kpi-sub {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.35;
    word-break: break-word;
}
.pm-dash-kpi .kpi-icon {
    position: static;
    justify-self: end;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--kpi-soft);
    color: var(--kpi-color);
    font-size: 12px;
}
#pm-dash-zones {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    padding: 0 24px 30px;
}
.pm-dash-zone {
    grid-column: span 6;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--zone-soft, #f8fafc) 0%, rgba(255, 255, 255, 0.92) 58%, #fff 100%);
    box-shadow: none;
    overflow: hidden;
}
.pm-dash-zone-wide {
    grid-column: 1 / -1;
}
.pm-dash-zone-title {
    min-height: 44px;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.62);
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pm-dash-zone-title::after { display: none; }
.pm-dash-zone-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--zone-color, #0891B2);
    color: #fff;
    font-size: 12px;
    flex: 0 0 auto;
}
.pm-dash-zone-name {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}
.pm-dash-zone-title small {
    margin-left: auto;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}
.pm-dash-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}
.pm-dash-zone-wide .pm-dash-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pm-dash-card {
    width: 100%;
    min-height: 86px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    padding: 14px 14px 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px 12px;
    align-items: center;
    gap: 10px;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
}
.pm-dash-card:focus-visible {
    outline: 2px solid rgba(8, 145, 178, 0.28);
    outline-offset: 2px;
}
.pm-dash-card:hover {
    transform: translateY(-1px);
    border-color: rgba(8, 145, 178, 0.30);
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.055);
}
.pm-dash-card-rail {
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--module-color, #0891B2);
}
.pm-dash-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--module-soft, #ecfeff);
    color: var(--module-color, #0891B2);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pm-dash-card-text h5 {
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 14px;
}
.pm-dash-card-text small {
    display: -webkit-box;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pm-dash-card-arrow {
    color: #cbd5e1;
    font-size: 11px;
}
.pm-dash-card:hover .pm-dash-card-arrow {
    color: var(--module-color, #0891B2);
}
@media (max-width: 1180px) {
    .pm-dash-kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pm-dash-zone { grid-column: 1 / -1; }
    .pm-dash-zone-wide .pm-dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pm-dash-project-bar, .pm-dash-back { margin-left: 12px; margin-right: 12px; }
    .pm-dash-content-wrapper { margin-left: 12px; margin-right: 12px; }
    .pm-dash-selector { align-items: flex-start; }
    .pm-dash-selector select { min-width: 100%; width: 100%; }
    .pm-dash-context-strip { grid-template-columns: 1fr; }
    .pm-dash-context-title strong { max-width: 100%; }
    .pm-dash-context-meta { justify-content: flex-start; }
    .pm-dash-linkage-panel { left: 0; right: auto; width: min(360px, calc(100vw - 32px)); }
    .pm-dash-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px 16px; }
    #pm-dash-zones { grid-template-columns: 1fr; padding: 0 12px 24px; }
    .pm-dash-cards, .pm-dash-zone-wide .pm-dash-cards { grid-template-columns: 1fr; }
    .pm-dash-action-panel { grid-template-columns: 1fr; }
    .pm-dash-action-buttons { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .pm-dash-kpi-row { grid-template-columns: 1fr; }
    .pm-dash-zone-title { align-items: flex-start; flex-wrap: wrap; }
    .pm-dash-zone-title small { flex-basis: 100%; margin-left: 40px; }
}

/* 子模块详情页 */
.pm-sub-detail { display:none; padding:0 24px 32px; }
.pm-sub-detail.active { display:block; }
.pm-sub-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; transition:color 0.2s; margin-bottom:12px; border:1px solid #e5e7eb; border-radius:8px; background:#fff; }
.pm-sub-back:hover { color:#0891B2; border-color:#0891B2; }
.pm-sub-header { display:flex; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.pm-sub-header-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; }
.pm-sub-header h3 { font-size:18px; font-weight:700; color:#1f2937; margin:0; }
.pm-sub-header small { font-size:12px; color:#9ca3af; }
.pm-sub-layout { display:grid; grid-template-columns:1fr 380px; gap:20px; }
@media(max-width:1100px) { .pm-sub-layout { grid-template-columns:1fr; } }
.pm-sub-input { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.pm-sub-input h4 { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.pm-sub-output { display:flex; flex-direction:column; gap:12px; }
.pm-sub-output-zone { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-sub-output-zone .zone-header { padding:10px 14px; display:flex; align-items:center; gap:8px; border-bottom:1px solid #f3f4f6; }
.pm-sub-output-zone .zone-icon { width:24px; height:24px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:10px; }
.pm-sub-output-zone .zone-title { font-size:12px; font-weight:600; color:#374151; }
.pm-sub-output-zone .zone-content { padding:12px 14px; min-height:80px; font-size:12px; color:#9ca3af; }

/* ==================== V5.29.0: 项目概况(pm_overview)重构样式 ==================== */
.pm-overview { display:flex; flex-direction:column; gap:20px; }
.pm-ov-info-card { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.pm-ov-info-left { flex:1; min-width:240px; }
.pm-ov-info-title { font-size:20px; font-weight:700; color:#1f2937; display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.pm-ov-info-title .pm-ov-id { font-size:13px; font-weight:500; color:#6b7280; }
.pm-ov-status-tag { display:inline-block; padding:3px 12px; border-radius:20px; font-size:11px; font-weight:600; }
.pm-ov-status-tag.active { background:#dcfce7; color:#16a34a; }
.pm-ov-status-tag.completed { background:#dbeafe; color:#2563eb; }
.pm-ov-status-tag.paused { background:#fef3c7; color:#d97706; }
.pm-ov-info-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:8px 24px; margin-top:14px; }
.pm-ov-info-item { font-size:13px; color:#6b7280; }
.pm-ov-info-item label { color:#9ca3af; font-size:12px; display:block; margin-bottom:2px; }
.pm-ov-info-item span { color:#1f2937; font-weight:500; }
.pm-ov-info-right { display:flex; align-items:flex-start; gap:8px; }
.pm-ov-edit-btn { padding:7px 16px; border-radius:8px; font-size:12px; font-weight:500; border:1px solid #e5e7eb; background:#fff; color:#374151; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-ov-edit-btn:hover { border-color:#0891B2; color:#0891B2; background:#f0fdf4; }
.pm-ov-edit-btn i { font-size:11px; }

.pm-ov-kpi-row { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
@media(max-width:900px) { .pm-ov-kpi-row { grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px) { .pm-ov-kpi-row { grid-template-columns:repeat(2,1fr); } }
.pm-ov-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px 14px; display:flex; flex-direction:column; align-items:center; gap:4px; position:relative; transition:all 0.2s; overflow:hidden; }
.pm-ov-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-ov-kpi .kpi-ring { flex-shrink:0; }
.pm-ov-kpi .kpi-value { font-size:18px; font-weight:700; text-align:center; }
.pm-ov-kpi .kpi-sub { font-size:11px; color:#6b7280; text-align:center; }
.pm-ov-kpi .kpi-label { font-size:11px; color:#9ca3af; margin-top:2px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.pm-ov-kpi .kpi-icon-corner { position:absolute; top:8px; right:8px; width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; }

.pm-ov-bottom { display:grid; grid-template-columns:1fr 340px; gap:20px; }
@media(max-width:1100px) { .pm-ov-bottom { grid-template-columns:1fr; } }

.pm-ov-timeline { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.pm-ov-timeline-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-ov-timeline-title i { color:#0891B2; font-size:12px; }
.pm-ov-tl-list { position:relative; padding-left:20px; }
.pm-ov-tl-list::before { content:''; position:absolute; left:6px; top:4px; bottom:4px; width:2px; background:#e5e7eb; border-radius:1px; }
.pm-ov-tl-item { position:relative; padding-bottom:16px; }
.pm-ov-tl-item:last-child { padding-bottom:0; }
.pm-ov-tl-dot { position:absolute; left:-18px; top:4px; width:10px; height:10px; border-radius:50%; border:2px solid #0891B2; background:#fff; }
.pm-ov-tl-item:first-child .pm-ov-tl-dot { background:#0891B2; }
.pm-ov-tl-time { font-size:11px; color:#9ca3af; margin-bottom:2px; }
.pm-ov-tl-action { font-size:13px; color:#1f2937; line-height:1.5; }
.pm-ov-tl-action strong { color:#374151; }
.pm-ov-tl-module { display:inline-block; font-size:10px; padding:1px 6px; border-radius:4px; background:#f3f4f6; color:#6b7280; margin-left:4px; }
.pm-ov-tl-empty { text-align:center; padding:24px; color:#9ca3af; font-size:13px; }

.pm-ov-shortcuts { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.pm-ov-shortcuts-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-ov-shortcuts-title i { color:#0891B2; font-size:12px; }
.pm-ov-sc-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pm-ov-sc-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; border:1px solid #e5e7eb; cursor:pointer; transition:all 0.2s; }
.pm-ov-sc-item:hover { border-color:#0891B2; background:#f0fdf4; transform:translateY(-1px); }
.pm-ov-sc-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.pm-ov-sc-text { flex:1; min-width:0; }
.pm-ov-sc-text h5 { font-size:12px; font-weight:600; color:#1f2937; margin:0; }
.pm-ov-sc-text small { font-size:10px; color:#9ca3af; }
.pm-ov-sc-arrow { color:#d1d5db; font-size:10px; transition:color 0.2s; }
.pm-ov-sc-item:hover .pm-ov-sc-arrow { color:#0891B2; }

/* ==================== V5.29.1: 中心管理(pm_centers)重构样式 ==================== */
.pm-centers { display:flex; flex-direction:column; gap:16px; }
.pm-centers-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-centers-search { position:relative; flex:1; min-width:200px; max-width:360px; }
.pm-centers-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-centers-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; }
.pm-centers-search input:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-centers-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; min-width:100px; }
.pm-centers-filter:focus { border-color:#0891B2; }
.pm-centers-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-centers-btn-add { background:#0891B2; color:#fff; }
.pm-centers-btn-add:hover { background:#4aa349; transform:translateY(-1px); }
.pm-centers-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-centers-btn-export:hover { border-color:#0891B2; color:#0891B2; background:#f0fdf4; }
.pm-centers-btn-ai { background:linear-gradient(135deg,#7c3aed,#6366f1); color:#fff; }
.pm-centers-btn-ai:hover { opacity:0.9; transform:translateY(-1px); }
.pm-centers-sync { margin-left:auto; display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:8px; border:1px solid #e5e7eb; background:#fff; color:#6b7280; font-size:12px; white-space:nowrap; }
.pm-centers-sync.remote { border-color:#bae6fd; background:#f0f9ff; color:#0369a1; }
.pm-centers-sync.local { border-color:#fed7aa; background:#fff7ed; color:#c2410c; }
.pm-centers-sync.syncing, .pm-centers-sync.loading { border-color:#ddd6fe; background:#f5f3ff; color:#6d28d9; }
.pm-centers-sync.error { border-color:#fecaca; background:#fef2f2; color:#b91c1c; }
.pm-centers-load-error { display:flex; align-items:center; gap:8px; padding:10px 12px; margin:0 0 12px; border:1px solid #fecaca; background:#fef2f2; color:#991b1b; font-size:13px; }
.pm-centers-load-error span { flex:1; min-width:0; }
.pm-centers-load-error button { display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:5px 10px; border:1px solid #fca5a5; background:#fff; color:#991b1b; cursor:pointer; }
.pm-centers-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.pm-centers-summary-card { min-height:92px; display:grid; grid-template-columns:38px minmax(0,1fr); gap:12px; align-items:center; padding:14px; border:1px solid rgba(148,163,184,.24); border-radius:10px; background:linear-gradient(180deg,#fff 0%,var(--sum-bg,#f8fafc) 100%); }
.pm-centers-summary-icon { width:38px; height:38px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:var(--sum-bg,#f8fafc); color:var(--sum-color,#0891B2); font-size:15px; }
.pm-centers-summary-main { display:grid; gap:2px; min-width:0; }
.pm-centers-summary-main strong { color:var(--sum-color,#0891B2); font-size:24px; line-height:1; font-weight:800; }
.pm-centers-summary-main span { color:#0f172a; font-size:13px; font-weight:750; }
.pm-centers-summary-main small { color:#64748b; font-size:11px; line-height:1.35; }
.pm-centers-toolbar { padding:12px; border:1px solid rgba(148,163,184,.24); border-radius:10px; background:#fff; }
.pm-centers-list-panel { border:1px solid rgba(148,163,184,.24); border-radius:10px; background:#fff; overflow:hidden; }
.pm-centers-list-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.pm-centers-list-head h4 { margin:0; color:#0f172a; font-size:15px; font-weight:800; }
.pm-centers-list-head span { display:block; margin-top:3px; color:#64748b; font-size:12px; }
.pm-centers-list-head b { color:#0891B2; font-size:12px; white-space:nowrap; }
.pm-centers .pm-data-table { border:0; border-radius:0; }
.pm-centers .pm-data-table thead th { padding:11px 16px; background:#fff; color:#64748b; border-bottom:1px solid #e2e8f0; }
.pm-centers .pm-data-table tbody td { padding:14px 16px; vertical-align:middle; }
.pm-centers .pm-data-table tbody tr:hover { background:#f8fcff; }
.pm-centers-identity, .pm-centers-owner, .pm-centers-enroll { display:grid; gap:5px; min-width:0; }
.pm-centers-identity b, .pm-centers-owner b, .pm-centers-enroll strong { color:#0f172a; font-size:13px; font-weight:750; }
.pm-centers-name-link { border:0; background:transparent; padding:0; margin:0; color:#0f172a; font-size:13px; font-weight:750; text-align:left; cursor:pointer; line-height:1.35; }
.pm-centers-name-link:hover, .pm-centers-name-link:focus-visible { color:#0891B2; text-decoration:underline; outline:none; }
.pm-centers-identity span, .pm-centers-owner span, .pm-centers-date { color:#64748b; font-size:11px; line-height:1.35; }
.pm-centers-tags { display:flex; flex-wrap:wrap; gap:5px; }
.pm-centers-tags span { padding:3px 7px; border:1px solid #e2e8f0; border-radius:999px; background:#f8fafc; color:#475569; font-size:10px; font-weight:650; white-space:nowrap; }
.pm-centers-row-action { width:28px; height:28px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; color:#94a3b8; cursor:pointer; }
.pm-centers-row-action:hover { border-color:#0891B2; color:#0891B2; background:#ecfeff; }
@media(max-width:1180px) { .pm-centers-summary { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
    .pm-centers-summary { grid-template-columns:1fr; }
    .pm-centers-toolbar { align-items:stretch; }
    .pm-centers-search { max-width:none; }
    .pm-centers .pm-data-table { min-width:900px; }
    .pm-centers-list-panel { overflow-x:auto; }
}

.pm-data-table { width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; border:1px solid #e5e7eb; }
.pm-data-table thead th { padding:12px 14px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; white-space:nowrap; }
.pm-data-table tbody td { padding:11px 14px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }
.pm-data-table tbody tr { cursor:pointer; transition:background 0.15s; }
.pm-data-table tbody tr:hover { background:#f0fdf4; }
.pm-data-table tbody tr:last-child td { border-bottom:none; }

.pm-status-tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-status-tag.active { background:#dcfce7; color:#16a34a; }
.pm-status-tag.pending { background:#fef3c7; color:#d97706; }
.pm-status-tag.planned { background:#fef3c7; color:#d97706; }
.pm-status-tag.closed { background:#f3f4f6; color:#6b7280; }
.pm-status-tag.risk { background:#fee2e2; color:#dc2626; }
.pm-centers-empty { text-align:center; color:#9ca3af; padding:32px 14px !important; cursor:default; }
.pm-centers-empty i { display:block; font-size:22px; color:#cbd5e1; margin-bottom:8px; }
.pm-centers-empty span { display:block; font-size:13px; }

.pm-centers-progress { display:flex; align-items:center; gap:6px; }
.pm-centers-progress-bar { flex:1; height:6px; background:#e5e7eb; border-radius:3px; overflow:hidden; min-width:60px; }
.pm-centers-progress-fill { height:100%; border-radius:3px; transition:width 0.4s ease; }
.pm-centers-progress-fill.good { background:#16a34a; }
.pm-centers-progress-fill.warn { background:#d97706; }
.pm-centers-progress-fill.danger { background:#dc2626; }
.pm-centers-progress-pct { font-size:12px; color:#6b7280; min-width:36px; }

/* 中心详情页 */
.pm-center-detail { display:flex; flex-direction:column; gap:16px; }
.pm-center-detail-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pm-center-detail-title { display:flex; align-items:center; gap:12px; }
.pm-center-detail-title h3 { font-size:18px; font-weight:700; color:#1f2937; margin:0; }
.pm-center-detail-title .pm-center-id { font-size:13px; color:#6b7280; font-weight:500; }
.pm-center-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; border:1px solid #e5e7eb; border-radius:8px; background:#fff; transition:all 0.2s; }
.pm-center-detail-back:hover { color:#0891B2; border-color:#0891B2; background:#f0fdf4; }
.pm-center-detail-actions { display:flex; gap:8px; }

.pm-center-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; margin-bottom:0; }
.pm-center-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.2s; background:none; border-top:none; border-left:none; border-right:none; }
.pm-center-tab:hover { color:#374151; }
.pm-center-tab.active { color:#0891B2; border-bottom-color:#0891B2; font-weight:600; }

.pm-center-tab-content { background:#fff; border-radius:0 0 12px 12px; border:1px solid #e5e7eb; border-top:none; padding:20px; }
.pm-center-tab-pane { display:none; }
.pm-center-tab-pane.active { display:block; }

.pm-center-info-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px 24px; }
.pm-center-info-item { font-size:13px; }
.pm-center-info-item label { font-size:12px; color:#9ca3af; display:block; margin-bottom:2px; }
.pm-center-info-item span { color:#1f2937; font-weight:500; }

.pm-center-enrollment-card { background:#f9fafb; border-radius:10px; padding:20px; margin-top:12px; }
.pm-center-enrollment-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:12px; }
.pm-center-enrollment-bar-wrap { background:#e5e7eb; border-radius:8px; height:16px; overflow:hidden; margin-bottom:8px; }
.pm-center-enrollment-bar-fill { height:100%; border-radius:8px; transition:width 0.6s ease; }
.pm-center-enrollment-stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:12px; margin-top:12px; }
.pm-center-enrollment-stat { text-align:center; }
.pm-center-enrollment-stat .num { font-size:20px; font-weight:700; }
.pm-center-enrollment-stat .lbl { font-size:11px; color:#9ca3af; }

.pm-center-person-table { width:100%; border-collapse:collapse; }
.pm-center-person-table th { padding:10px 12px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.pm-center-person-table td { padding:10px 12px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }
.pm-center-person-table tr:last-child td { border-bottom:none; }

.pm-center-protocol-list { display:flex; flex-direction:column; gap:12px; }
.pm-center-protocol-item { background:#f9fafb; border-radius:10px; padding:16px; border:1px solid #e5e7eb; }
.pm-center-protocol-item h5 { font-size:13px; font-weight:600; color:#1f2937; margin:0 0 8px 0; }
.pm-center-protocol-row { display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:#6b7280; }
.pm-center-protocol-row span { white-space:nowrap; }

.pm-center-deviation-table { width:100%; border-collapse:collapse; }
.pm-center-deviation-table th { padding:10px 12px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.pm-center-deviation-table td { padding:10px 12px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }
.pm-center-deviation-table tr:last-child td { border-bottom:none; }

/* 新增/编辑中心弹窗 */
.pm-center-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:9999; display:flex; align-items:center; justify-content:center; }
.pm-center-modal { background:#fff; border-radius:16px; padding:24px; width:90%; max-width:560px; max-height:80vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.15); }
.pm-center-modal h3 { font-size:16px; font-weight:700; color:#1f2937; margin:0 0 16px 0; }
.pm-center-modal-field { margin-bottom:14px; }
.pm-center-modal-field label { display:block; font-size:12px; color:#6b7280; margin-bottom:4px; font-weight:500; }
.pm-center-modal-field input, .pm-center-modal-field select { width:100%; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; }
.pm-center-modal-field input:focus, .pm-center-modal-field select:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-center-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.pm-center-modal-actions button { padding:8px 20px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; transition:all 0.2s; }
.pm-center-modal-cancel { background:#f3f4f6; color:#374151; }
.pm-center-modal-cancel:hover { background:#e5e7eb; }
.pm-center-modal-save { background:#0891B2; color:#fff; }
.pm-center-modal-save:hover { background:#4aa349; }

/* ==================== V5.29.2: 入组追踪(pm_enrollment)重构样式 ==================== */
.pm-enrollment { display:flex; flex-direction:column; gap:20px; }
.pm-enroll-kpi-row { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
@media(max-width:900px) { .pm-enroll-kpi-row { grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px) { .pm-enroll-kpi-row { grid-template-columns:repeat(2,1fr); } }
.pm-enroll-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 14px; display:flex; flex-direction:column; align-items:center; gap:4px; position:relative; transition:all 0.2s; overflow:hidden; }
.pm-enroll-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-enroll-kpi .ekpi-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:14px; margin-bottom:4px; }
.pm-enroll-kpi .ekpi-value { font-size:22px; font-weight:700; text-align:center; }
.pm-enroll-kpi .ekpi-label { font-size:11px; color:#9ca3af; text-align:center; white-space:nowrap; }

.pm-enroll-section { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.pm-enroll-section-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-enroll-section-title i { color:#0891B2; font-size:12px; }

.pm-enroll-center-table { width:100%; border-collapse:collapse; }
.pm-enroll-center-table th { padding:10px 12px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; white-space:nowrap; }
.pm-enroll-center-table td { padding:10px 12px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }
.pm-enroll-center-table tr:last-child td { border-bottom:none; }
.pm-enroll-center-table tr:hover { background:#f0fdf4; }

.pm-enroll-bar-wrap { display:flex; align-items:center; gap:8px; }
.pm-enroll-bar { flex:1; height:8px; background:#e5e7eb; border-radius:4px; overflow:hidden; min-width:80px; }
.pm-enroll-bar-fill { height:100%; border-radius:4px; transition:width 0.4s ease; }
.pm-enroll-bar-fill.good { background:#16a34a; }
.pm-enroll-bar-fill.warn { background:#d97706; }
.pm-enroll-bar-fill.danger { background:#dc2626; }
.pm-enroll-bar-pct { font-size:12px; color:#6b7280; min-width:36px; }

.pm-enroll-chart-wrap { display:flex; align-items:flex-end; gap:0; height:180px; padding-top:20px; position:relative; }
.pm-enroll-chart-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; position:relative; }
.pm-enroll-chart-bar { width:60%; max-width:48px; min-height:4px; border-radius:4px 4px 0 0; background:linear-gradient(180deg,#0891B2,#86efac); transition:height 0.5s ease; position:relative; }
.pm-enroll-chart-bar:hover { opacity:0.85; }
.pm-enroll-chart-bar .bar-tooltip { display:none; position:absolute; top:-28px; left:50%; transform:translateX(-50%); background:#1f2937; color:#fff; font-size:11px; padding:3px 8px; border-radius:4px; white-space:nowrap; z-index:2; }
.pm-enroll-chart-bar:hover .bar-tooltip { display:block; }
.pm-enroll-chart-label { font-size:11px; color:#9ca3af; white-space:nowrap; }
.pm-enroll-chart-yaxis { position:absolute; left:0; top:0; bottom:0; width:36px; display:flex; flex-direction:column; justify-content:space-between; }
.pm-enroll-chart-ylabel { font-size:10px; color:#d1d5db; text-align:right; padding-right:4px; }

.pm-enroll-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-enroll-search { position:relative; flex:1; min-width:200px; max-width:360px; }
.pm-enroll-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-enroll-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; }
.pm-enroll-search input:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-enroll-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; min-width:100px; }
.pm-enroll-filter:focus { border-color:#0891B2; }
.pm-enroll-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-enroll-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-enroll-btn-export:hover { border-color:#0891B2; color:#0891B2; background:#f0fdf4; }
.pm-enroll-btn-ai { background:linear-gradient(135deg,#7c3aed,#6366f1); color:#fff; }
.pm-enroll-btn-ai:hover { opacity:0.9; transform:translateY(-1px); }

.pm-enroll-subjects-table { width:100%; border-collapse:collapse; }
.pm-enroll-subjects-table th { padding:10px 12px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; white-space:nowrap; }
.pm-enroll-subjects-table td { padding:10px 12px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }
.pm-enroll-subjects-table tr:last-child td { border-bottom:none; }
.pm-enroll-subjects-table tr:hover { background:#f0fdf4; }

.pm-status-tag.screening { background:#dbeafe; color:#2563eb; }
.pm-status-tag.enrolled { background:#dcfce7; color:#16a34a; }
.pm-status-tag.dropout { background:#fee2e2; color:#dc2626; }
.pm-status-tag.completed { background:#ede9fe; color:#7c3aed; }

.pm-enroll-empty { text-align:center; padding:32px; color:#9ca3af; }

/* ==================== V5.29.3: 文档管理(pm_docs)重构样式 ==================== */
.pm-docs { display:flex; flex-direction:column; gap:20px; }
.pm-docs-kpi-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
@media(max-width:700px) { .pm-docs-kpi-row { grid-template-columns:1fr; } }
.pm-docs-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-docs-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-docs-kpi .dkpi-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.pm-docs-kpi .dkpi-info { display:flex; flex-direction:column; }
.pm-docs-kpi .dkpi-value { font-size:22px; font-weight:700; }
.pm-docs-kpi .dkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.pm-docs-layout { display:flex; gap:20px; min-height:0; }
.pm-docs-sidebar { width:260px; flex-shrink:0; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px; overflow-y:auto; max-height:calc(100vh - 360px); }
.pm-docs-sidebar-title { font-size:13px; font-weight:600; color:#1f2937; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.pm-docs-sidebar-title i { color:#0891B2; font-size:12px; }

.pm-docs-tree-item { margin-bottom:2px; }
.pm-docs-tree-header { display:flex; align-items:center; gap:6px; padding:7px 10px; border-radius:8px; cursor:pointer; font-size:13px; font-weight:500; color:#374151; transition:all 0.15s; user-select:none; }
.pm-docs-tree-header:hover { background:#f0fdf4; color:#16a34a; }
.pm-docs-tree-header.active { background:#f0fdf4; color:#16a34a; font-weight:600; }
.pm-docs-tree-header i.toggle { font-size:10px; color:#9ca3af; transition:transform 0.2s; width:14px; text-align:center; }
.pm-docs-tree-header i.toggle.open { transform:rotate(90deg); }
.pm-docs-tree-header i.folder-icon { font-size:13px; }
.pm-docs-tree-header .doc-count { margin-left:auto; font-size:11px; color:#9ca3af; background:#f3f4f6; padding:1px 6px; border-radius:10px; }

.pm-docs-tree-children { display:none; padding-left:20px; }
.pm-docs-tree-children.open { display:block; }
.pm-docs-tree-child { display:flex; align-items:center; gap:6px; padding:5px 10px; border-radius:6px; cursor:pointer; font-size:12px; color:#6b7280; transition:all 0.15s; }
.pm-docs-tree-child:hover { background:#f0fdf4; color:#16a34a; }
.pm-docs-tree-child.active { background:#f0fdf4; color:#16a34a; font-weight:600; }
.pm-docs-tree-child i { font-size:11px; }

.pm-docs-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:16px; }
.pm-docs-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-docs-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-docs-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-docs-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-docs-search input:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-docs-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; }
.pm-docs-filter:focus { border-color:#0891B2; }
.pm-docs-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-docs-btn-add { background:#0891B2; color:#fff; }
.pm-docs-btn-add:hover { background:#4aa349; transform:translateY(-1px); }
.pm-docs-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-docs-btn-export:hover { border-color:#0891B2; color:#0891B2; background:#f0fdf4; }

.pm-docs-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }

.pm-status-tag.draft { background:#fef3c7; color:#d97706; }
.pm-status-tag.reviewing { background:#dbeafe; color:#2563eb; }
.pm-status-tag.approved { background:#dcfce7; color:#16a34a; }
.pm-status-tag.archived { background:#f3f4f6; color:#6b7280; }

.pm-docs-actions { display:flex; gap:4px; }
.pm-docs-actions button { padding:4px 10px; border-radius:6px; font-size:11px; border:1px solid #e5e7eb; background:#fff; color:#6b7280; cursor:pointer; transition:all 0.15s; }
.pm-docs-actions button:hover { border-color:#0891B2; color:#0891B2; background:#f0fdf4; }
.pm-docs-actions button.danger:hover { border-color:#dc2626; color:#dc2626; background:#fef2f2; }
.pm-docs-actions button.primary { background:#0891B2; color:#fff; border-color:#0891B2; }
.pm-docs-actions button.primary:hover { background:#4aa349; }

.pm-docs-empty { text-align:center; padding:48px 20px; color:#9ca3af; }
.pm-docs-empty i { font-size:40px; margin-bottom:12px; display:block; color:#d1d5db; }

/* V5.30.7: 文档详情页样式 */
.pm-docs-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; }
.pm-docs-detail-back:hover { background:#e5e7eb; }
.pm-docs-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-docs-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-docs-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; }
.pm-docs-detail-header h3 i { color:#0891B2; }
.pm-docs-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.pm-docs-detail-meta span { display:flex; align-items:center; gap:4px; }
.pm-docs-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.pm-docs-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-docs-tab:hover { color:#0891B2; }
.pm-docs-tab.active { color:#0891B2; border-bottom-color:#0891B2; }
.pm-docs-tab-content { padding:20px; }
.pm-docs-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:700px) { .pm-docs-info-grid { grid-template-columns:1fr; } }
.pm-docs-info-item { display:flex; flex-direction:column; gap:4px; }
.pm-docs-info-label { font-size:12px; color:#9ca3af; }
.pm-docs-info-value { font-size:14px; color:#1f2937; font-weight:500; }

/* 审核记录时间线 */
.pm-docs-audit-timeline { position:relative; padding-left:20px; border-left:2px solid #e5e7eb; }
.pm-docs-audit-item { position:relative; padding:8px 0 16px 16px; }
.pm-docs-audit-dot { position:absolute; left:-27px; top:12px; width:12px; height:12px; border-radius:50%; border:2px solid #fff; }
.pm-docs-audit-title { font-size:13px; font-weight:600; color:#1f2937; }
.pm-docs-audit-meta { font-size:11px; color:#9ca3af; margin-top:2px; }
.pm-docs-audit-remark { font-size:12px; color:#6b7280; margin-top:4px; padding:6px 10px; background:#f9fafb; border-radius:6px; }

/* 版本历史时间线 */
.pm-docs-version-timeline { position:relative; padding-left:20px; border-left:2px solid #e5e7eb; }
.pm-docs-version-item { position:relative; padding:8px 0 16px 16px; }
.pm-docs-version-item.current { padding-bottom:0; }
.pm-docs-version-badge { position:absolute; left:-34px; top:6px; min-width:44px; padding:2px 8px; border-radius:10px; font-size:10px; font-weight:700; text-align:center; background:#f3f4f6; color:#6b7280; border:2px solid #fff; }
.pm-docs-version-badge.current { background:#dcfce7; color:#16a34a; }
.pm-docs-version-content { padding-left:8px; }
.pm-docs-version-title { font-size:14px; font-weight:600; color:#1f2937; }
.pm-docs-version-meta { font-size:11px; color:#9ca3af; margin-top:2px; }
.pm-docs-version-remark { font-size:12px; color:#6b7280; margin-top:4px; padding:6px 10px; background:#f9fafb; border-radius:6px; }

/* 移动端375px适配 */
@media(max-width:500px) {
    .pm-docs-detail-meta { gap:8px; font-size:12px; }
    .pm-docs-tab { padding:10px 14px; font-size:12px; }
    .pm-docs-tab-content { padding:14px; }
    .pm-docs-info-grid { grid-template-columns:1fr; }
    .pm-docs-detail-header h3 { font-size:15px; }
    .pm-docs-detail-header { padding:14px; }
}

/* ==================== V5.29.5: 预算执行(pm_budget)重构样式 ==================== */
.pm-budget { display:flex; flex-direction:column; gap:20px; }
.pm-budget-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-budget-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-budget-kpi-row { grid-template-columns:1fr; } }
.pm-budget-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-budget-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-budget-kpi .bkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-budget-kpi .bkpi-info { display:flex; flex-direction:column; }
.pm-budget-kpi .bkpi-value { font-size:22px; font-weight:700; }
.pm-budget-kpi .bkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.pm-budget-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-budget-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-budget-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-budget-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-budget-search input:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-budget-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; }
.pm-budget-filter:focus { border-color:#0891B2; }
.pm-budget-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-budget-btn-add { background:#0891B2; color:#fff; }
.pm-budget-btn-add:hover { background:#4aa349; transform:translateY(-1px); }
.pm-budget-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-budget-btn-export:hover { border-color:#0891B2; color:#0891B2; background:#f0fdf4; }

.pm-budget-section-title { font-size:15px; font-weight:600; color:#1f2937; margin:0 0 4px; display:flex; align-items:center; gap:8px; }
.pm-budget-section-title i { color:#059669; font-size:14px; }

.pm-budget-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-budget-deviation { display:flex; align-items:center; gap:6px; font-weight:600; font-size:13px; }
.pm-budget-deviation.positive { color:#dc2626; }
.pm-budget-deviation.negative { color:#16a34a; }
.pm-budget-deviation.zero { color:#6b7280; }

.pm-budget-chart { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.pm-budget-chart-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-budget-chart-title i { color:#059669; }
.pm-budget-chart-item { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.pm-budget-chart-label { width:90px; font-size:12px; color:#374151; text-align:right; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pm-budget-chart-track { flex:1; height:22px; background:#f3f4f6; border-radius:4px; position:relative; overflow:hidden; min-width:0; }
.pm-budget-chart-bar { height:100%; border-radius:4px; transition:width 0.5s ease; display:flex; align-items:center; padding-right:6px; justify-content:flex-end; min-width:0; }
.pm-budget-chart-bar.over { background:linear-gradient(90deg,#fca5a5,#dc2626); }
.pm-budget-chart-bar.normal { background:linear-gradient(90deg,#86efac,#16a34a); }
.pm-budget-chart-bar.warn { background:linear-gradient(90deg,#fde68a,#d97706); }
.pm-budget-chart-pct { font-size:10px; color:#fff; font-weight:600; white-space:nowrap; }
.pm-budget-chart-val { width:80px; font-size:11px; color:#6b7280; flex-shrink:0; }

.pm-budget-payments { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-budget-payments-header { padding:16px; border-bottom:1px solid #e5e7eb; display:flex; align-items:center; justify-content:space-between; }
.pm-budget-payments-header h4 { margin:0; font-size:14px; font-weight:600; color:#1f2937; display:flex; align-items:center; gap:8px; }
.pm-budget-payments-header h4 i { color:#059669; }

.pm-status-tag.paid { background:#dcfce7; color:#16a34a; }
.pm-status-tag.unpaid { background:#fef3c7; color:#d97706; }
.pm-status-tag.approving { background:#dbeafe; color:#2563eb; }

.pm-budget-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-budget-modal { background:#fff; border-radius:12px; padding:28px 32px; width:520px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-budget-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-budget-modal h3 i { color:#059669; margin-right:8px; }
.pm-budget-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-budget-modal input, .pm-budget-modal select { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; }
.pm-budget-modal input:focus, .pm-budget-modal select:focus { border-color:#0891B2; box-shadow:0 0 0 2px rgba(8,145,178,0.1); }
.pm-budget-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.pm-budget-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; }
.pm-budget-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-budget-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-budget-modal-actions .btn-save { background:#0891B2; color:#fff; }
.pm-budget-modal-actions .btn-save:hover { background:#4aa349; }

/* ==================== V5.29.6: 风险管理(pm_risk)重构样式 ==================== */
.pm-risk { display:flex; flex-direction:column; gap:20px; }
.pm-risk-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-risk-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-risk-kpi-row { grid-template-columns:1fr; } }
.pm-risk-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-risk-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-risk-kpi .rkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-risk-kpi .rkpi-info { display:flex; flex-direction:column; }
.pm-risk-kpi .rkpi-value { font-size:22px; font-weight:700; }
.pm-risk-kpi .rkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.pm-risk-section { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-risk-section-header { padding:16px 20px; border-bottom:1px solid #e5e7eb; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.pm-risk-section-header h4 { margin:0; font-size:14px; font-weight:600; color:#1f2937; display:flex; align-items:center; gap:8px; }
.pm-risk-section-header h4 i { color:#dc2626; }

.pm-risk-matrix-wrap { padding:20px; }
.pm-risk-matrix { display:grid; grid-template-columns:44px repeat(5,1fr); grid-template-rows:30px repeat(5,52px); gap:3px; margin-bottom:4px; }
.rm-col-hdr { font-size:11px; color:#6b7280; display:flex; align-items:center; justify-content:center; font-weight:500; }
.rm-row-hdr { font-size:12px; color:#6b7280; display:flex; align-items:center; justify-content:center; font-weight:600; }
.rm-cell { border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; transition:all 0.15s; position:relative; }
.rm-cell:hover { transform:scale(1.06); box-shadow:0 2px 10px rgba(0,0,0,0.18); z-index:1; }
.rm-cell .rm-count { font-size:16px; font-weight:700; line-height:1.2; }
.rm-cell .rm-score { font-size:9px; opacity:0.7; }
.rm-cell.rm-empty { background:#f3f4f6; color:#9ca3af; }
.rm-cell.rm-empty .rm-count { font-size:12px; font-weight:400; }
.rm-cell.rm-active { outline:3px solid #2563eb; outline-offset:-2px; }
.rm-axis-x { font-size:11px; color:#9ca3af; text-align:center; margin-top:4px; }
.rm-axis-y { font-size:11px; color:#9ca3af; writing-mode:vertical-lr; transform:rotate(180deg); position:absolute; left:-28px; top:50%; }

.pm-risk-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-risk-search { position:relative; flex:1; min-width:160px; max-width:280px; }
.pm-risk-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-risk-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-risk-search input:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-risk-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; }
.pm-risk-filter:focus { border-color:#0891B2; }
.pm-risk-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-risk-btn-add { background:#dc2626; color:#fff; }
.pm-risk-btn-add:hover { background:#b91c1c; transform:translateY(-1px); }
.pm-risk-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-risk-btn-export:hover { border-color:#dc2626; color:#dc2626; background:#fef2f2; }

.pm-risk-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-risk-modal { background:#fff; border-radius:12px; padding:28px 32px; width:560px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-risk-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-risk-modal h3 i { color:#dc2626; margin-right:8px; }
.pm-risk-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-risk-modal input, .pm-risk-modal select, .pm-risk-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; }
.pm-risk-modal input:focus, .pm-risk-modal select:focus, .pm-risk-modal textarea:focus { border-color:#0891B2; box-shadow:0 0 0 2px rgba(8,145,178,0.1); }
.pm-risk-modal textarea { min-height:80px; resize:vertical; }
.pm-risk-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pm-risk-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.pm-risk-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; }
.pm-risk-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-risk-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-risk-modal-actions .btn-save { background:#dc2626; color:#fff; }
.pm-risk-modal-actions .btn-save:hover { background:#b91c1c; }

/* ==================== V5.30.1: 合同管理(pm_contracts)重构样式 ==================== */
.pm-contracts { display:flex; flex-direction:column; gap:20px; }
.pm-contracts-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-contracts-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-contracts-kpi-row { grid-template-columns:1fr; } }
.pm-contracts-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-contracts-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-contracts-kpi .ckpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-contracts-kpi .ckpi-info { display:flex; flex-direction:column; }
.pm-contracts-kpi .ckpi-value { font-size:22px; font-weight:700; }
.pm-contracts-kpi .ckpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.pm-contracts-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-contracts-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-contracts-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-contracts-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-contracts-search input:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-contracts-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; }
.pm-contracts-filter:focus { border-color:#0891B2; }
.pm-contracts-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-contracts-btn-add { background:#2563eb; color:#fff; }
.pm-contracts-btn-add:hover { background:#1d4ed8; transform:translateY(-1px); }
.pm-contracts-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-contracts-btn-export:hover { border-color:#2563eb; color:#2563eb; background:#dbeafe; }

.pm-contracts-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }

.pm-status-tag.executing { background:#dbeafe; color:#2563eb; }
.pm-status-tag.completed { background:#dcfce7; color:#16a34a; }
.pm-status-tag.terminated { background:#fee2e2; color:#dc2626; }

.pm-contracts-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-contracts-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; }
.pm-contracts-detail-back:hover { background:#e5e7eb; }
.pm-contracts-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-contracts-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; }
.pm-contracts-detail-header h3 i { color:#2563eb; }
.pm-contracts-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.pm-contracts-detail-meta span { display:flex; align-items:center; gap:4px; }

.pm-contracts-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.pm-contracts-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; }
.pm-contracts-tab:hover { color:#2563eb; }
.pm-contracts-tab.active { color:#2563eb; border-bottom-color:#2563eb; }
.pm-contracts-tab-content { padding:20px; }

.pm-contracts-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:700px) { .pm-contracts-info-grid { grid-template-columns:1fr; } }
.pm-contracts-info-item { display:flex; flex-direction:column; gap:4px; }
.pm-contracts-info-label { font-size:12px; color:#9ca3af; }
.pm-contracts-info-value { font-size:14px; color:#1f2937; font-weight:500; }

.pm-contracts-progress-bar { height:10px; background:#f3f4f6; border-radius:5px; overflow:hidden; margin-top:4px; }
.pm-contracts-progress-fill { height:100%; border-radius:5px; transition:width 0.5s ease; }
.pm-contracts-progress-fill.executing { background:linear-gradient(90deg,#93c5fd,#2563eb); }
.pm-contracts-progress-fill.completed { background:linear-gradient(90deg,#86efac,#16a34a); }
.pm-contracts-progress-fill.terminated { background:linear-gradient(90deg,#fca5a5,#dc2626); }

.pm-contracts-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-contracts-modal { background:#fff; border-radius:12px; padding:28px 32px; width:560px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-contracts-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-contracts-modal h3 i { color:#2563eb; margin-right:8px; }
.pm-contracts-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-contracts-modal input, .pm-contracts-modal select { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; }
.pm-contracts-modal input:focus, .pm-contracts-modal select:focus { border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,0.1); }
.pm-contracts-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pm-contracts-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.pm-contracts-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; }
.pm-contracts-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-contracts-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-contracts-modal-actions .btn-save { background:#2563eb; color:#fff; }
.pm-contracts-modal-actions .btn-save:hover { background:#1d4ed8; }

.pm-risk-modal-actions,
.pm-contracts-modal-actions,
.pm-budget-modal-actions,
.pm-hospitals-modal-actions,
.pm-team-modal-actions,
.pm-timesheet-modal-actions,
.pm-travel-modal-actions,
.pm-meetings-modal-actions,
.pm-quality-modal-actions,
.pm-seal-modal-actions,
.pm-training-modal-actions,
.pm-gantt-modal-actions,
.ops-hr-modal-actions,
.ops-training-modal-actions,
.ops-docs-modal-actions,
.ops-finance-modal-actions,
.ops-quality-modal-actions,
.ops-compliance-modal-actions,
.ops-approval-modal-actions,
.ops-announcement-modal-actions,
.cr-ssu-modal-actions,
.cr-protocol-modal-actions,
.cr-ethics-modal-actions,
.cr-enrollment-modal-actions,
.cr-recruit-modal-actions,
.cr-milestone-modal-actions {
    position: sticky;
    bottom: -28px;
    z-index: 2;
    background: #fff;
    padding-top: 12px;
    padding-bottom: 4px;
}

/* ==================== V5.30.2: 医院合作方(pm_hospitals)重构样式 ==================== */
.pm-hospitals { display:flex; flex-direction:column; gap:20px; }
.pm-hospitals-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-hospitals-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-hospitals-kpi-row { grid-template-columns:1fr; } }
.pm-hospitals-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-hospitals-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-hospitals-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-hospitals-kpi .hkpi-info { display:flex; flex-direction:column; }
.pm-hospitals-kpi .hkpi-value { font-size:22px; font-weight:700; }
.pm-hospitals-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.pm-hospitals-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-hospitals-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-hospitals-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-hospitals-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-hospitals-search input:focus { border-color:#0891b2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-hospitals-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; }
.pm-hospitals-filter:focus { border-color:#0891b2; }
.pm-hospitals-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; }
.pm-hospitals-btn-add { background:#2563eb; color:#fff; }
.pm-hospitals-btn-add:hover { background:#1d4ed8; transform:translateY(-1px); }
.pm-hospitals-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-hospitals-btn-export:hover { border-color:#0891b2; color:#0891b2; background:#ecfeff; }

.pm-hospitals-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; }

.pm-status-tag.signed { background:#dcfce7; color:#16a34a; }
.pm-status-tag.negotiating { background:#fef3c7; color:#d97706; }
.pm-status-tag.pending { background:#f3f4f6; color:#6b7280; }
.pm-status-tag.expired { background:#fee2e2; color:#dc2626; }
.pm-status-tag.renewing { background:#dbeafe; color:#2563eb; }

.pm-hospitals-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-hospitals-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; }
.pm-hospitals-detail-back:hover { background:#e5e7eb; }
.pm-hospitals-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-hospitals-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; }
.pm-hospitals-detail-header h3 i { color:#0891b2; }
.pm-hospitals-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.pm-hospitals-detail-meta span { display:flex; align-items:center; gap:4px; }

.pm-hospitals-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.pm-hospitals-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; }
.pm-hospitals-tab:hover { color:#0891b2; }
.pm-hospitals-tab.active { color:#0891b2; border-bottom-color:#0891b2; }
.pm-hospitals-tab-content { padding:20px; }

.pm-hospitals-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:700px) { .pm-hospitals-info-grid { grid-template-columns:1fr; } }
.pm-hospitals-info-item { display:flex; flex-direction:column; gap:4px; }
.pm-hospitals-info-label { font-size:12px; color:#9ca3af; }
.pm-hospitals-info-value { font-size:14px; color:#1f2937; font-weight:500; }

.pm-hospitals-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-hospitals-modal { background:#fff; border-radius:12px; padding:28px 32px; width:560px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-hospitals-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-hospitals-modal h3 i { color:#0891b2; margin-right:8px; }
.pm-hospitals-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-hospitals-modal input, .pm-hospitals-modal select { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; }
.pm-hospitals-modal input:focus, .pm-hospitals-modal select:focus { border-color:#0891b2; box-shadow:0 0 0 2px rgba(8,145,178,0.1); }
.pm-hospitals-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:500px) { .pm-hospitals-modal-row { grid-template-columns: 1fr !important; } }
.pm-hospitals-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.pm-hospitals-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; }
.pm-hospitals-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-hospitals-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-hospitals-modal-actions .btn-save { background:#0891b2; color:#fff; }
.pm-hospitals-modal-actions .btn-save:hover { background:#0e7490; }

/* V5.30.9: 移动端操作按钮触控区域增强(44px标准) */
@media(max-width:768px) {
    .pm-hospitals-action-btn { min-height:44px; min-width:44px; padding:8px 12px !important; }
    .pm-docs-layout { flex-direction: column; }
    .pm-docs-sidebar { width: 100% !important; max-height: 200px; overflow-y: auto; border-right: none; border-bottom: 1px solid #e5e7eb; }
    .pm-docs-actions button { min-height: 44px; min-width: 44px; padding: 8px 14px !important; }
    .pm-docs-detail-actions button { min-height: 44px; min-width: 44px; padding: 8px 14px !important; }
    .pm-hospitals-detail-actions button { min-height: 44px; min-width: 44px; padding: 8px 14px !important; }
}
/* V5.30.9: 文档管理移动端500px进一步优化 */
@media(max-width:500px) {
    .pm-docs-sidebar { max-height: 150px; }
    .pm-docs-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== V5.31.0: 团队管理(pm_team)样式 ==================== */
.pm-team { display:flex; flex-direction:column; gap:20px; }
.pm-team-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-team-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-team-kpi-row { grid-template-columns:1fr 1fr; } }
.pm-team-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-team-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-team-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-team-kpi .hkpi-info { display:flex; flex-direction:column; }
.pm-team-kpi .hkpi-value { font-size:22px; font-weight:700; }
.pm-team-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }
.pm-team-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-team-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-team-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-team-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-team-search input:focus { border-color:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,0.1); }
.pm-team-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.pm-team-filter:focus { border-color:#7c3aed; }
.pm-team-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.pm-team-btn-add { background:#7c3aed; color:#fff; }
.pm-team-btn-add:hover { background:#6d28d9; transform:translateY(-1px); }
.pm-team-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-team-btn-export:hover { border-color:#7c3aed; color:#7c3aed; background:#f5f3ff; }
.pm-team-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pm-team-table-wrap table.pm-data-table thead th { position:sticky; top:0; z-index:1; }
.pm-team-id-link { color:#7c3aed; cursor:pointer; font-weight:500; }
.pm-team-id-link:hover { text-decoration:underline; }
.pm-team-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.pm-team-action-btn.view { color:#7c3aed; }
.pm-team-action-btn.view:hover { background:#f5f3ff; }
.pm-team-action-btn.edit { color:#2563eb; }
.pm-team-action-btn.edit:hover { background:#dbeafe; }
.pm-team-action-btn.delete { color:#dc2626; }
.pm-team-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }
.pm-team-guide-bar { background:#fef3c7; border:1px solid #fde68a; border-radius:8px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pm-team-guide-bar span { font-size:13px; color:#92400e; }
.pm-team-guide-bar button { background:none; border:none; color:#92400e; cursor:pointer; font-size:16px; padding:4px; min-height:44px; min-width:44px; }

/* 详情页 */
.pm-team-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-team-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.pm-team-detail-back:hover { background:#e5e7eb; }
.pm-team-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-team-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-team-detail-meta { display:flex; gap:20px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.pm-team-detail-meta span { display:flex; align-items:center; gap:4px; }
.pm-team-detail-meta i { font-size:12px; }
.pm-team-status-dropdown { position:relative; display:inline-block; }
.pm-team-status-dropdown-btn { background:#f3f4f6; border:1px solid #d1d5db; border-radius:6px; padding:4px 10px; font-size:12px; cursor:pointer; display:flex; align-items:center; gap:4px; color:#374151; min-height:36px; }
.pm-team-status-dropdown-btn:hover { background:#e5e7eb; }
.pm-team-status-dropdown-menu { position:absolute; right:0; top:100%; background:#fff; border:1px solid #e5e7eb; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.1); z-index:10; min-width:140px; display:none; }
.pm-team-status-dropdown-menu.show { display:block; }
.pm-team-status-dropdown-item { display:block; width:100%; padding:8px 14px; border:none; background:none; text-align:left; font-size:13px; cursor:pointer; color:#374151; transition:all 0.15s; min-height:44px; }
.pm-team-status-dropdown-item:hover { background:#f5f3ff; color:#7c3aed; }
.pm-team-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.pm-team-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.pm-team-tab:hover { color:#7c3aed; }
.pm-team-tab.active { color:#7c3aed; border-bottom-color:#7c3aed; }
.pm-team-tab-content { padding:20px; }
.pm-team-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:500px) { .pm-team-info-grid { grid-template-columns:1fr; } }
.pm-team-info-item { display:flex; flex-direction:column; gap:4px; }
.pm-team-info-label { font-size:12px; color:#9ca3af; font-weight:500; }
.pm-team-info-value { font-size:14px; color:#1f2937; }

/* 变更时间线 */
.pm-team-timeline { padding:0; list-style:none; margin:0; }
.pm-team-timeline-item { display:flex; gap:16px; padding-bottom:20px; position:relative; }
.pm-team-timeline-item:not(:last-child)::after { content:''; position:absolute; left:15px; top:34px; bottom:0; width:2px; background:#e5e7eb; }
.pm-team-timeline-dot { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.pm-team-timeline-dot.pending { background:#fef3c7; color:#d97706; }
.pm-team-timeline-dot.approved { background:#dcfce7; color:#16a34a; }
.pm-team-timeline-dot.rejected { background:#fee2e2; color:#dc2626; }
.pm-team-timeline-body { flex:1; }
.pm-team-timeline-title { font-size:14px; font-weight:500; color:#1f2937; }
.pm-team-timeline-meta { font-size:12px; color:#9ca3af; margin-top:2px; }
.pm-team-timeline-note { font-size:13px; color:#6b7280; margin-top:6px; padding:8px 12px; background:#f9fafb; border-radius:6px; }

/* 项目参与表格 */
.pm-team-projects-table { width:100%; border-collapse:collapse; }
.pm-team-projects-table th { padding:10px 14px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.pm-team-projects-table td { padding:10px 14px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }

/* 弹窗 */
.pm-team-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-team-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-team-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-team-modal h3 i { color:#7c3aed; margin-right:8px; }
.pm-team-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-team-modal input, .pm-team-modal select, .pm-team-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.pm-team-modal input:focus, .pm-team-modal select:focus, .pm-team-modal textarea:focus { border-color:#7c3aed; box-shadow:0 0 0 2px rgba(124,58,237,0.1); }
.pm-team-modal textarea { resize:vertical; min-height:80px; }
.pm-team-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:500px) { .pm-team-modal-row { grid-template-columns:1fr; } }
.pm-team-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.pm-team-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-team-modal-cancel:hover { background:#f9fafb; }
.pm-team-modal-save { padding:8px 20px; border:none; background:#7c3aed; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-team-modal-save:hover { background:#6d28d9; }
.pm-team-modal-delete { padding:8px 20px; border:none; background:#dc2626; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-team-modal-delete:hover { background:#b91c1c; }

/* ==================== V5.31.1: 工时管理(pm_timesheet)样式 ==================== */
.pm-timesheet { display:flex; flex-direction:column; gap:20px; }
.pm-timesheet-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-timesheet-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-timesheet-kpi-row { grid-template-columns:1fr 1fr; } }
.pm-timesheet-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-timesheet-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-timesheet-kpi .tskpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-timesheet-kpi .tskpi-info { display:flex; flex-direction:column; }
.pm-timesheet-kpi .tskpi-value { font-size:22px; font-weight:700; }
.pm-timesheet-kpi .tskpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }
.pm-timesheet-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-timesheet-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-timesheet-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-timesheet-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-timesheet-search input:focus { border-color:#0891b2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-timesheet-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.pm-timesheet-filter:focus { border-color:#0891b2; }
.pm-timesheet-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.pm-timesheet-btn-add { background:#0891b2; color:#fff; }
.pm-timesheet-btn-add:hover { background:#0e7490; transform:translateY(-1px); }
.pm-timesheet-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-timesheet-btn-export:hover { border-color:#0891b2; color:#0891b2; background:#ecfeff; }
.pm-timesheet-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pm-timesheet-table-wrap table.pm-data-table thead th { position:sticky; top:0; z-index:1; }
.pm-timesheet-deviation { display:inline-flex; align-items:center; gap:4px; font-weight:600; font-size:13px; }
.pm-timesheet-deviation.positive { color:#dc2626; }
.pm-timesheet-deviation.negative { color:#16a34a; }
.pm-timesheet-deviation.zero { color:#6b7280; }
.pm-timesheet-member-name { color:#0891b2; cursor:pointer; font-weight:500; }
.pm-timesheet-member-name:hover { text-decoration:underline; }
.pm-timesheet-id-link { color:#0891b2; cursor:pointer; font-weight:500; }
.pm-timesheet-id-link:hover { text-decoration:underline; }
.pm-timesheet-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.pm-timesheet-action-btn.view { color:#0891b2; }
.pm-timesheet-action-btn.view:hover { background:#ecfeff; }
.pm-timesheet-action-btn.edit { color:#2563eb; }
.pm-timesheet-action-btn.edit:hover { background:#dbeafe; }
.pm-timesheet-action-btn.approve { color:#16a34a; }
.pm-timesheet-action-btn.approve:hover { background:#dcfce7; }
.pm-timesheet-action-btn.delete { color:#dc2626; }
.pm-timesheet-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }
.pm-timesheet-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-timesheet-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.pm-timesheet-detail-back:hover { background:#e5e7eb; }
.pm-timesheet-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-timesheet-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-timesheet-detail-meta { display:flex; gap:20px; flex-wrap:wrap; font-size:13px; color:#6b7280; }
.pm-timesheet-detail-meta span { display:flex; align-items:center; gap:4px; }
.pm-timesheet-detail-meta i { font-size:12px; }
.pm-timesheet-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.pm-timesheet-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.pm-timesheet-tab:hover { color:#0891b2; }
.pm-timesheet-tab.active { color:#0891b2; border-bottom-color:#0891b2; }
.pm-timesheet-tab-content { padding:20px; }
.pm-timesheet-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:500px) { .pm-timesheet-info-grid { grid-template-columns:1fr; } }
.pm-timesheet-info-item { display:flex; flex-direction:column; gap:4px; }
.pm-timesheet-info-label { font-size:12px; color:#9ca3af; font-weight:500; }
.pm-timesheet-info-value { font-size:14px; color:#1f2937; }
.pm-timesheet-timeline { padding:0; list-style:none; margin:0; }
.pm-timesheet-timeline-item { display:flex; gap:16px; padding-bottom:20px; position:relative; }
.pm-timesheet-timeline-item:not(:last-child)::after { content:''; position:absolute; left:15px; top:34px; bottom:0; width:2px; background:#e5e7eb; }
.pm-timesheet-timeline-dot { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.pm-timesheet-timeline-dot.submit { background:#dbeafe; color:#2563eb; }
.pm-timesheet-timeline-dot.approve { background:#dcfce7; color:#16a34a; }
.pm-timesheet-timeline-dot.reject { background:#fee2e2; color:#dc2626; }
.pm-timesheet-timeline-body { flex:1; }
.pm-timesheet-timeline-title { font-size:14px; font-weight:500; color:#1f2937; }
.pm-timesheet-timeline-meta { font-size:12px; color:#9ca3af; margin-top:2px; }
.pm-timesheet-timeline-note { font-size:13px; color:#6b7280; margin-top:6px; padding:8px 12px; background:#f9fafb; border-radius:6px; }
.pm-timesheet-monthly-table { width:100%; border-collapse:collapse; margin-bottom:20px; }
.pm-timesheet-monthly-table th { padding:10px 14px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; white-space:nowrap; }
.pm-timesheet-monthly-table td { padding:10px 14px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }
.pm-timesheet-monthly-table tr.total-row td { font-weight:700; background:#f9fafb; border-top:2px solid #e5e7eb; }
.pm-timesheet-monthly-chart { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.pm-timesheet-monthly-chart-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-timesheet-monthly-chart-title i { color:#0891b2; }
.pm-timesheet-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-timesheet-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-timesheet-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-timesheet-modal h3 i { color:#0891b2; margin-right:8px; }
.pm-timesheet-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-timesheet-modal input, .pm-timesheet-modal select, .pm-timesheet-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.pm-timesheet-modal input:focus, .pm-timesheet-modal select:focus, .pm-timesheet-modal textarea:focus { border-color:#0891b2; box-shadow:0 0 0 2px rgba(8,145,178,0.1); }
.pm-timesheet-modal textarea { resize:vertical; min-height:80px; }
.pm-timesheet-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:500px) { .pm-timesheet-modal-row { grid-template-columns:1fr; } }
.pm-timesheet-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.pm-timesheet-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.pm-timesheet-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-timesheet-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-timesheet-modal-actions .btn-save { background:#0891b2; color:#fff; }
.pm-timesheet-modal-actions .btn-save:hover { background:#0e7490; }
.pm-timesheet-modal-actions .btn-approve { background:#16a34a; color:#fff; }
.pm-timesheet-modal-actions .btn-approve:hover { background:#15803d; }
.pm-timesheet-modal-actions .btn-reject { background:#dc2626; color:#fff; }
.pm-timesheet-modal-actions .btn-reject:hover { background:#b91c1c; }
.pm-timesheet-modal-actions .btn-delete { background:#dc2626; color:#fff; }
.pm-timesheet-modal-actions .btn-delete:hover { background:#b91c1c; }
.pm-timesheet-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.pm-timesheet-empty i { font-size:40px; display:block; margin-bottom:12px; }
.pm-timesheet-empty p { font-size:14px; margin:0 0 6px; }
.pm-timesheet-empty .empty-guide { font-size:12px; color:#d1d5db; }
.pm-timesheet-empty button { margin-top:16px; padding:8px 20px; background:#0891b2; color:#fff; border:none; border-radius:8px; font-size:13px; cursor:pointer; transition:all 0.2s; min-height:44px; }
.pm-timesheet-empty button:hover { background:#0e7490; }
.pm-timesheet-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10001; display:flex; align-items:center; justify-content:center; }
.pm-timesheet-confirm-box { background:#fff; border-radius:12px; padding:28px 32px; width:400px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); text-align:center; }
.pm-timesheet-confirm-box h4 { margin:0 0 12px; font-size:16px; color:#1f2937; }
.pm-timesheet-confirm-box p { font-size:14px; color:#6b7280; margin:0 0 20px; }
.pm-timesheet-confirm-actions { display:flex; justify-content:center; gap:12px; }
.pm-timesheet-confirm-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.pm-timesheet-confirm-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-timesheet-confirm-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-timesheet-confirm-actions .btn-delete { background:#dc2626; color:#fff; }
.pm-timesheet-confirm-actions .btn-delete:hover { background:#b91c1c; }
@media(max-width:500px) {
    .pm-timesheet-toolbar { flex-direction:column; align-items:stretch; }
    .pm-timesheet-search { max-width:100%; }
    .pm-timesheet-filter { width:100%; }
    .pm-timesheet-modal { width:95vw; padding:20px; }
    .pm-timesheet-monthly-table-wrap { overflow-x:auto; }
}

/* ==================== V5.31.2: 外出管理(pm_travel)样式 ==================== */
.pm-travel { display:flex; flex-direction:column; gap:20px; }
.pm-travel-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-travel-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-travel-kpi-row { grid-template-columns:1fr 1fr; } }
.pm-travel-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-travel-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-travel-kpi .tkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-travel-kpi .tkpi-info { display:flex; flex-direction:column; }
.pm-travel-kpi .tkpi-value { font-size:22px; font-weight:700; }
.pm-travel-kpi .tkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.pm-travel-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-travel-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-travel-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-travel-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-travel-search input:focus { border-color:#ea580c; box-shadow:0 0 0 3px rgba(234,88,12,0.1); }
.pm-travel-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; }
.pm-travel-filter:focus { border-color:#ea580c; }
.pm-travel-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.pm-travel-btn-add { background:#ea580c; color:#fff; }
.pm-travel-btn-add:hover { background:#c2410c; transform:translateY(-1px); }
.pm-travel-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-travel-btn-export:hover { border-color:#ea580c; color:#ea580c; background:#fff7ed; }

.pm-travel-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* 行操作按钮 */
.pm-travel-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; border-radius:4px; transition:all 0.15s; display:inline-flex; align-items:center; gap:3px; min-height:28px; }
.pm-travel-action-btn:hover { background:#f3f4f6; }
.pm-travel-action-btn.btn-view { color:#ea580c; }
.pm-travel-action-btn.btn-view:hover { color:#c2410c; background:#fff7ed; }
.pm-travel-action-btn.btn-edit { color:#2563eb; }
.pm-travel-action-btn.btn-edit:hover { color:#1d4ed8; background:#dbeafe; }
.pm-travel-action-btn.btn-approve { color:#16a34a; }
.pm-travel-action-btn.btn-approve:hover { color:#15803d; background:#dcfce7; }
.pm-travel-action-btn.btn-cancel { color:#d97706; }
.pm-travel-action-btn.btn-cancel:hover { color:#b45309; background:#fef3c7; }
.pm-travel-action-btn.btn-depart { color:#2563eb; }
.pm-travel-action-btn.btn-depart:hover { color:#1d4ed8; background:#dbeafe; }
.pm-travel-action-btn.btn-return { color:#16a34a; }
.pm-travel-action-btn.btn-return:hover { color:#15803d; background:#dcfce7; }
.pm-travel-action-btn.btn-delete { color:#dc2626; }
.pm-travel-action-btn.btn-delete:hover { color:#b91c1c; background:#fee2e2; }

/* 更多下拉菜单 */
.pm-travel-more-wrap { position:relative; display:inline-block; }
.pm-travel-more-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; color:#6b7280; border-radius:4px; transition:all 0.15s; display:inline-flex; align-items:center; gap:3px; min-height:28px; }
.pm-travel-more-btn:hover { background:#f3f4f6; color:#374151; }
.pm-travel-more-dropdown { display:none; position:absolute; right:0; top:100%; background:#fff; border:1px solid #e5e7eb; border-radius:8px; box-shadow:0 4px 16px rgba(0,0,0,0.1); z-index:100; min-width:120px; padding:4px 0; }
.pm-travel-more-dropdown.open { display:block; }
.pm-travel-more-dropdown button { display:flex; align-items:center; gap:6px; width:100%; padding:8px 14px; border:none; background:none; font-size:12px; color:#374151; cursor:pointer; transition:all 0.15s; text-align:left; }
.pm-travel-more-dropdown button:hover { background:#f9fafb; }
.pm-travel-more-dropdown button.danger { color:#dc2626; }
.pm-travel-more-dropdown button.danger:hover { background:#fee2e2; }

/* 详情页 */
.pm-travel-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-travel-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.pm-travel-detail-back:hover { background:#e5e7eb; }
.pm-travel-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-travel-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-travel-detail-header h3 i { color:#ea580c; }
.pm-travel-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.pm-travel-detail-meta span { display:flex; align-items:center; gap:4px; }
.pm-travel-detail-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.pm-travel-detail-actions button { padding:6px 14px; border-radius:6px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:4px; min-height:36px; }
.pm-travel-detail-actions .btn-approve-action { background:#dcfce7; color:#16a34a; }
.pm-travel-detail-actions .btn-approve-action:hover { background:#bbf7d0; }
.pm-travel-detail-actions .btn-reject-action { background:#fee2e2; color:#dc2626; }
.pm-travel-detail-actions .btn-reject-action:hover { background:#fecaca; }
.pm-travel-detail-actions .btn-cancel-action { background:#fef3c7; color:#d97706; }
.pm-travel-detail-actions .btn-cancel-action:hover { background:#fde68a; }
.pm-travel-detail-actions .btn-depart-action { background:#dbeafe; color:#2563eb; }
.pm-travel-detail-actions .btn-depart-action:hover { background:#bfdbfe; }
.pm-travel-detail-actions .btn-return-action { background:#dcfce7; color:#16a34a; }
.pm-travel-detail-actions .btn-return-action:hover { background:#bbf7d0; }

.pm-travel-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.pm-travel-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.pm-travel-tab:hover { color:#ea580c; }
.pm-travel-tab.active { color:#ea580c; border-bottom-color:#ea580c; }
.pm-travel-tab-content { padding:20px; }

.pm-travel-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:700px) { .pm-travel-info-grid { grid-template-columns:1fr; } }
.pm-travel-info-item { display:flex; flex-direction:column; gap:4px; }
.pm-travel-info-label { font-size:12px; color:#9ca3af; }
.pm-travel-info-value { font-size:14px; color:#1f2937; font-weight:500; }
.pm-travel-info-value a { color:#ea580c; text-decoration:none; }
.pm-travel-info-value a:hover { text-decoration:underline; }

/* 同行人员tag */
.pm-travel-companion-tags { display:flex; flex-wrap:wrap; gap:6px; }
.pm-travel-companion-tag { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; background:#fff7ed; color:#ea580c; border-radius:20px; font-size:12px; font-weight:500; }

/* 行程安排表 */
.pm-travel-itinerary-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.pm-travel-itinerary-header h4 { margin:0; font-size:14px; color:#1f2937; }

/* 费用明细 */
.pm-travel-cost-overview { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:20px; padding:16px; background:#f9fafb; border-radius:10px; }
@media(max-width:700px) { .pm-travel-cost-overview { grid-template-columns:repeat(3,1fr); } }
@media(max-width:500px) { .pm-travel-cost-overview { grid-template-columns:repeat(2,1fr); } }
.pm-travel-cost-overview-item { text-align:center; }
.pm-travel-cost-overview-item .cost-label { font-size:11px; color:#9ca3af; margin-bottom:4px; }
.pm-travel-cost-overview-item .cost-value { font-size:16px; font-weight:700; color:#1f2937; }

/* 审批时间线 */
.pm-travel-approval-timeline { position:relative; padding-left:24px; }
.pm-travel-approval-timeline::before { content:''; position:absolute; left:8px; top:4px; bottom:4px; width:2px; background:#e5e7eb; }
.pm-travel-approval-item { position:relative; margin-bottom:20px; padding-left:20px; }
.pm-travel-approval-item::before { content:''; position:absolute; left:-20px; top:6px; width:10px; height:10px; border-radius:50%; background:#ea580c; border:2px solid #fff; box-shadow:0 0 0 2px #ea580c; }
.pm-travel-approval-item .approval-date { font-size:12px; color:#9ca3af; }
.pm-travel-approval-item .approval-info { font-size:13px; color:#374151; margin-top:2px; }
.pm-travel-approval-item .approval-note { font-size:12px; color:#6b7280; margin-top:4px; background:#f9fafb; padding:6px 10px; border-radius:6px; }
.pm-travel-approval-waiting { text-align:center; padding:32px; color:#d97706; font-size:14px; }
.pm-travel-approval-waiting i { font-size:28px; display:block; margin-bottom:8px; }

/* 弹窗 */
.pm-travel-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-travel-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
@media(max-width:500px) { .pm-travel-modal { width:95vw; padding:20px 16px; } }
.pm-travel-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-travel-modal h3 i { color:#ea580c; margin-right:8px; }
.pm-travel-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-travel-modal label .required { color:#dc2626; margin-left:2px; }
.pm-travel-modal input, .pm-travel-modal select, .pm-travel-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; box-sizing:border-box; }
.pm-travel-modal input:focus, .pm-travel-modal select:focus, .pm-travel-modal textarea:focus { border-color:#ea580c; box-shadow:0 0 0 2px rgba(234,88,12,0.1); }
.pm-travel-modal input[readonly], .pm-travel-modal select[readonly] { background:#f9fafb; color:#6b7280; }
.pm-travel-modal textarea { resize:vertical; min-height:60px; }
.pm-travel-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:500px) { .pm-travel-modal-row { grid-template-columns:1fr !important; } }
.pm-travel-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.pm-travel-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.pm-travel-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-travel-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-travel-modal-actions .btn-save { background:#ea580c; color:#fff; }
.pm-travel-modal-actions .btn-save:hover { background:#c2410c; }
.pm-travel-modal-actions .btn-approve-green { background:#16a34a; color:#fff; }
.pm-travel-modal-actions .btn-approve-green:hover { background:#15803d; }
.pm-travel-modal-actions .btn-reject-red { background:#dc2626; color:#fff; }
.pm-travel-modal-actions .btn-reject-red:hover { background:#b91c1c; }
.pm-travel-modal-actions .btn-confirm-red { background:#dc2626; color:#fff; }
.pm-travel-modal-actions .btn-confirm-red:hover { background:#b91c1c; }
.pm-travel-modal-actions .btn-confirm-green { background:#16a34a; color:#fff; }
.pm-travel-modal-actions .btn-confirm-green:hover { background:#15803d; }

/* 同行人员multi-select */
.pm-travel-companion-select { position:relative; margin-bottom:14px; }
.pm-travel-companion-input-wrap { display:flex; flex-wrap:wrap; gap:6px; padding:6px 10px; border:1px solid #d1d5db; border-radius:6px; min-height:38px; cursor:text; transition:all 0.2s; align-items:center; }
.pm-travel-companion-input-wrap:focus-within { border-color:#ea580c; box-shadow:0 0 0 2px rgba(234,88,12,0.1); }
.pm-travel-companion-input-wrap .companion-tag { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; background:#fff7ed; color:#ea580c; border-radius:16px; font-size:12px; font-weight:500; }
.pm-travel-companion-input-wrap .companion-tag .tag-remove { cursor:pointer; font-size:14px; line-height:1; margin-left:2px; }
.pm-travel-companion-input-wrap .companion-tag .tag-remove:hover { color:#c2410c; }
.pm-travel-companion-input-wrap input { flex:1; min-width:80px; border:none; outline:none; padding:2px 0; font-size:13px; margin:0; }
.pm-travel-companion-dropdown { display:none; position:absolute; top:100%; left:0; right:0; background:#fff; border:1px solid #e5e7eb; border-radius:6px; box-shadow:0 4px 12px rgba(0,0,0,0.1); max-height:200px; overflow-y:auto; z-index:101; }
.pm-travel-companion-dropdown.open { display:block; }
.pm-travel-companion-dropdown-item { padding:8px 12px; font-size:13px; color:#374151; cursor:pointer; transition:all 0.15s; }
.pm-travel-companion-dropdown-item:hover { background:#fff7ed; color:#ea580c; }
.pm-travel-companion-dropdown-item.selected { background:#fff7ed; color:#ea580c; font-weight:500; }

/* 空状态 */
.pm-travel-empty { text-align:center; padding:48px 20px; }
.pm-travel-empty i { font-size:40px; color:#d1d5db; display:block; margin-bottom:12px; }
.pm-travel-empty .empty-title { font-size:15px; color:#6b7280; margin-bottom:6px; }
.pm-travel-empty .empty-desc { font-size:13px; color:#9ca3af; margin-bottom:16px; }
.pm-travel-empty button { padding:10px 24px; background:#ea580c; color:#fff; border:none; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; transition:all 0.2s; min-height:44px; }
.pm-travel-empty button:hover { background:#c2410c; transform:translateY(-1px); }

/* 新增状态标签样式 */
.pm-status-tag.traveling { background:#dbeafe; color:#2563eb; border:1px solid #93c5fd; }
.pm-status-tag.cancelled { background:#f3f4f6; color:#9ca3af; text-decoration:line-through; }

/* 移动端触控区域增强 */
@media(max-width:768px) {
    .pm-travel-action-btn { min-height:44px; min-width:44px; padding:8px 12px !important; }
    .pm-travel-more-btn { min-height:44px; min-width:44px; padding:8px 12px !important; }
}
/* 移动端弹窗适配 */
@media(max-width:500px) {
    .pm-travel-modal { width:95vw; padding:20px 16px; }
    .pm-travel-detail-meta { flex-direction:column; gap:8px; }
}

/* ==================== V5.31.3: 会议管理(pm_meetings)样式 ==================== */
/* ==================== V5.31.x: 会议管理(pm_meetings)样式 ==================== */

/* 已取消状态标签（与外出管理模块共用） */
/* 会议状态标签 */
.pm-status-tag.scheduled { background:#fef3c7; color:#d97706; }
.pm-status-tag.ongoing { background:#dcfce7; color:#16a34a; }
.pm-status-tag.completed { background:#f3f4f6; color:#6b7280; }

/* 容器 */
.pm-meetings { display:flex; flex-direction:column; gap:20px; }

/* KPI卡片行 */
.pm-meetings-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-meetings-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-meetings-kpi-row { grid-template-columns:1fr 1fr; } }

.pm-meetings-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-meetings-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-meetings-kpi .mkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-meetings-kpi .mkpi-info { display:flex; flex-direction:column; }
.pm-meetings-kpi .mkpi-value { font-size:22px; font-weight:700; }
.pm-meetings-kpi .mkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 工具栏 */
.pm-meetings-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-meetings-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-meetings-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-meetings-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-meetings-search input:focus { border-color:#059669; box-shadow:0 0 0 3px rgba(5,150,105,0.1); }
.pm-meetings-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:44px; }
.pm-meetings-filter:focus { border-color:#059669; }
.pm-meetings-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.pm-meetings-btn-add { background:#059669; color:#fff; }
.pm-meetings-btn-add:hover { background:#047857; transform:translateY(-1px); }
.pm-meetings-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-meetings-btn-export:hover { border-color:#059669; color:#059669; background:#ecfdf5; }

/* 表格 */
.pm-meetings-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* 空状态 */
.pm-meetings-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.pm-meetings-empty i { font-size:48px; margin-bottom:16px; display:block; }
.pm-meetings-empty p { font-size:14px; margin-bottom:8px; }
.pm-meetings-empty .pm-meetings-btn-add { display:inline-flex; margin-top:12px; }

/* 详情页 */
.pm-meetings-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-meetings-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.pm-meetings-detail-back:hover { background:#e5e7eb; }
.pm-meetings-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-meetings-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-meetings-detail-header h3 i { color:#059669; }
.pm-meetings-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.pm-meetings-detail-meta span { display:flex; align-items:center; gap:4px; }

/* 详情页状态操作按钮 */
.pm-meetings-status-actions { display:inline-flex; gap:8px; margin-left:12px; }
.pm-meetings-status-btn { padding:4px 12px; border-radius:6px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:32px; }
.pm-meetings-status-btn.start { background:#dcfce7; color:#16a34a; }
.pm-meetings-status-btn.start:hover { background:#bbf7d0; }
.pm-meetings-status-btn.end { background:#dbeafe; color:#2563eb; }
.pm-meetings-status-btn.end:hover { background:#bfdbfe; }
.pm-meetings-status-btn.cancel { background:#fee2e2; color:#dc2626; }
.pm-meetings-status-btn.cancel:hover { background:#fecaca; }

/* Tab导航 */
.pm-meetings-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.pm-meetings-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.pm-meetings-tab:hover { color:#059669; }
.pm-meetings-tab.active { color:#059669; border-bottom-color:#059669; }
.pm-meetings-tab-content { padding:20px; }

/* 信息Grid */
.pm-meetings-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:700px) { .pm-meetings-info-grid { grid-template-columns:1fr; } }
.pm-meetings-info-item { display:flex; flex-direction:column; gap:4px; }
.pm-meetings-info-label { font-size:12px; color:#9ca3af; }
.pm-meetings-info-value { font-size:14px; color:#1f2937; font-weight:500; }
.pm-meetings-info-value a { color:#059669; text-decoration:none; cursor:pointer; }
.pm-meetings-info-value a:hover { text-decoration:underline; }

/* 弹窗 */
.pm-meetings-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-meetings-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-meetings-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-meetings-modal h3 i { color:#059669; margin-right:8px; }
.pm-meetings-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-meetings-modal label .required { color:#ef4444; margin-left:2px; }
.pm-meetings-modal input, .pm-meetings-modal select, .pm-meetings-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; }
.pm-meetings-modal input:focus, .pm-meetings-modal select:focus, .pm-meetings-modal textarea:focus { border-color:#059669; box-shadow:0 0 0 2px rgba(5,150,105,0.1); }
.pm-meetings-modal textarea { min-height:70px; resize:vertical; }
.pm-meetings-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pm-meetings-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.pm-meetings-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.pm-meetings-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-meetings-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-meetings-modal-actions .btn-save { background:#059669; color:#fff; }
.pm-meetings-modal-actions .btn-save:hover { background:#047857; }
.pm-meetings-modal-actions .btn-danger { background:#dc2626; color:#fff; }
.pm-meetings-modal-actions .btn-danger:hover { background:#b91c1c; }
.pm-meetings-modal-actions .btn-confirm-green { background:#059669; color:#fff; }
.pm-meetings-modal-actions .btn-confirm-green:hover { background:#047857; }

/* 弹窗提示 */
.pm-meetings-modal-tip { background:#fef3c7; border:1px solid #fde68a; border-radius:8px; padding:10px 14px; font-size:13px; color:#92400e; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-meetings-modal-tip.danger { background:#fee2e2; border-color:#fecaca; color:#991b1b; }

/* 参会人员选择器 */
.pm-meetings-attendee-selector { position:relative; margin-bottom:14px; }
.pm-meetings-attendee-tags { display:flex; flex-wrap:wrap; gap:6px; padding:8px; border:1px solid #d1d5db; border-radius:6px; min-height:44px; cursor:text; }
.pm-meetings-attendee-tags:focus-within { border-color:#059669; box-shadow:0 0 0 2px rgba(5,150,105,0.1); }
.pm-meetings-attendee-tag { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; background:#ecfdf5; color:#059669; border-radius:4px; font-size:12px; }
.pm-meetings-attendee-tag .remove-tag { cursor:pointer; font-size:14px; color:#9ca3af; margin-left:2px; }
.pm-meetings-attendee-tag .remove-tag:hover { color:#dc2626; }
.pm-meetings-attendee-tag.organizer { background:#dbeafe; color:#2563eb; }
.pm-meetings-attendee-input { border:none; outline:none; font-size:13px; flex:1; min-width:80px; padding:4px; }
.pm-meetings-attendee-dropdown { position:absolute; top:100%; left:0; right:0; background:#fff; border:1px solid #e5e7eb; border-radius:6px; box-shadow:0 4px 16px rgba(0,0,0,0.1); max-height:200px; overflow-y:auto; z-index:100; display:none; }
.pm-meetings-attendee-dropdown.show { display:block; }
.pm-meetings-attendee-option { padding:8px 12px; font-size:13px; cursor:pointer; color:#374151; }
.pm-meetings-attendee-option:hover { background:#ecfdf5; color:#059669; }
.pm-meetings-attendee-option.selected { background:#f3f4f6; color:#9ca3af; }

/* 参会人员表格 */
.pm-meetings-attendees-stat { font-size:12px; color:#6b7280; margin-top:12px; padding-top:12px; border-top:1px solid #f3f4f6; }

/* 出席状态切换 */
.pm-meetings-attend-status { display:inline-block; padding:3px 10px; border-radius:6px; font-size:12px; cursor:pointer; border:1px solid #d1d5db; background:#fff; color:#374151; transition:all 0.15s; min-height:28px; }
.pm-meetings-attend-status:hover { border-color:#059669; }
.pm-meetings-attend-status.confirmed { background:#dcfce7; color:#16a34a; border-color:#86efac; }
.pm-meetings-attend-status.pending { background:#fef3c7; color:#d97706; border-color:#fde68a; }
.pm-meetings-attend-status.absent { background:#fee2e2; color:#dc2626; border-color:#fecaca; }
.pm-meetings-attend-status.tentative { background:#dbeafe; color:#2563eb; border-color:#93c5fd; }

/* 冲突图标 */
.pm-meetings-conflict-icon { color:#d97706; cursor:help; margin-left:4px; font-size:12px; }

/* 会议纪要编辑区 */
.pm-meetings-minutes-readonly { background:#f9fafb; padding:14px; border-radius:8px; border:1px solid #e5e7eb; white-space:pre-wrap; font-size:13px; color:#374151; min-height:60px; }
.pm-meetings-minutes-edit textarea { width:100%; min-height:100px; padding:10px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; resize:vertical; outline:none; }
.pm-meetings-minutes-edit textarea:focus { border-color:#059669; box-shadow:0 0 0 2px rgba(5,150,105,0.1); }
.pm-meetings-minutes-group { margin-bottom:16px; }
.pm-meetings-minutes-group label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; font-weight:500; }

/* 行动项Tab操作区 */
.pm-meetings-actions-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }

/* 行动项状态 */
.pm-meetings-action-status { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-meetings-action-status.todo { background:#fef3c7; color:#d97706; }
.pm-meetings-action-status.inprogress { background:#dbeafe; color:#2563eb; }
.pm-meetings-action-status.done { background:#dcfce7; color:#16a34a; }
.pm-meetings-action-status.overdue { background:#fee2e2; color:#dc2626; }

/* 移动端适配 */
@media(max-width:500px) {
    .pm-meetings-modal-row { grid-template-columns:1fr !important; }
    .pm-meetings-modal { width:95vw; padding:20px; }
    .pm-meetings-info-grid { grid-template-columns:1fr; }
    .pm-meetings-detail-meta { flex-direction:column; gap:6px; }
    .pm-meetings-tabs { overflow-x:auto; }
    .pm-meetings-tab { white-space:nowrap; padding:12px 16px; }
}

/* ==================== V5.32.0: 质量管理(pm_quality)样式 ==================== */
.pm-quality { display:flex; flex-direction:column; gap:16px; }

/* KPI卡片行 */
.pm-quality-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.pm-quality-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-quality-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-quality-kpi .qkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-quality-kpi .qkpi-info { display:flex; flex-direction:column; }
.pm-quality-kpi .qkpi-value { font-size:22px; font-weight:700; line-height:1.2; }
.pm-quality-kpi .qkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* Tab切换区 */
.pm-quality-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; margin-bottom:0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pm-quality-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; transition:all 0.2s; flex-shrink:0; min-height:44px; display:flex; align-items:center; }
.pm-quality-tab:hover { color:#ca8a04; }
.pm-quality-tab.active { color:#ca8a04; border-bottom-color:#ca8a04; font-weight:600; }

/* 工具栏 */
.pm-quality-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 0; }
.pm-quality-search { position:relative; flex:1; min-width:200px; max-width:360px; }
.pm-quality-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-quality-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; }
.pm-quality-search input:focus { border-color:#ca8a04; box-shadow:0 0 0 3px rgba(202,138,4,0.1); }
.pm-quality-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; min-width:100px; }
.pm-quality-filter:focus { border-color:#ca8a04; }
.pm-quality-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.pm-quality-btn-add { background:#ca8a04; color:#fff; }
.pm-quality-btn-add:hover { background:#a16207; transform:translateY(-1px); }
.pm-quality-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-quality-btn-export:hover { border-color:#ca8a04; color:#ca8a04; background:#fefce8; }

/* 表格区 */
.pm-quality-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-quality-table-wrap .pm-data-table { margin:0; border:none; border-radius:0; }

/* 状态标签 - 质量管理专用 */
.pm-quality-status { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-quality-status.planned { background:#dbeafe; color:#2563eb; }
.pm-quality-status.scheduled { background:#e0e7ff; color:#4f46e5; }
.pm-quality-status.in-progress { background:#fef3c7; color:#d97706; }
.pm-quality-status.done { background:#dcfce7; color:#16a34a; }
.pm-quality-status.open { background:#fee2e2; color:#dc2626; }
.pm-quality-status.closed { background:#f3f4f6; color:#6b7280; }

/* 等级标签 */
.pm-quality-level { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-quality-level.critical { background:#fef2f2; color:#dc2626; }
.pm-quality-level.major { background:#fffbeb; color:#d97706; }
.pm-quality-level.minor { background:#f0fdf4; color:#16a34a; }

/* 检查结果标签 */
.pm-quality-result { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-quality-result.pass { background:#dcfce7; color:#16a34a; }
.pm-quality-result.concern { background:#fef3c7; color:#d97706; }
.pm-quality-result.fail { background:#fee2e2; color:#dc2626; }

/* 超期标记 */
.pm-quality-overdue { color:#dc2626; font-weight:600; }

/* 重大偏差行背景 */
.pm-quality-row-major { background:#fffbeb !important; }

/* 编号可点击 */
.pm-quality-id-link { color:#2563eb; cursor:pointer; font-weight:500; text-decoration:none; }
.pm-quality-id-link:hover { text-decoration:underline; }

/* 操作按钮 */
.pm-quality-action { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:6px; font-size:12px; cursor:pointer; border:none; background:transparent; transition:all 0.15s; min-height:32px; }
.pm-quality-action-view { color:#2563eb; }
.pm-quality-action-view:hover { background:#dbeafe; }
.pm-quality-action-edit { color:#d97706; }
.pm-quality-action-edit:hover { background:#fef3c7; }
.pm-quality-action-delete { color:#dc2626; }
.pm-quality-action-delete:hover { background:#fee2e2; }

/* ---- 详情页 ---- */
.pm-quality-detail { display:flex; flex-direction:column; gap:16px; }
.pm-quality-detail-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pm-quality-detail-title { display:flex; align-items:center; gap:12px; }
.pm-quality-detail-title h3 { font-size:18px; font-weight:700; color:#1f2937; margin:0; }
.pm-quality-detail-title .pm-quality-detail-id { font-size:13px; color:#6b7280; font-weight:500; }
.pm-quality-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; border:1px solid #e5e7eb; border-radius:8px; background:#fff; transition:all 0.2s; min-height:44px; }
.pm-quality-detail-back:hover { color:#ca8a04; border-color:#ca8a04; background:#fefce8; }

/* 详情Tab */
.pm-quality-detail-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; }
.pm-quality-detail-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.pm-quality-detail-tab:hover { color:#ca8a04; }
.pm-quality-detail-tab.active { color:#ca8a04; border-bottom-color:#ca8a04; font-weight:600; }

/* 详情字段 */
.pm-quality-detail-fields { display:grid; grid-template-columns:repeat(2,1fr); gap:16px 24px; padding:20px 0; }
.pm-quality-detail-field { display:flex; flex-direction:column; gap:4px; }
.pm-quality-detail-field label { font-size:12px; color:#6b7280; font-weight:500; }
.pm-quality-detail-field span { font-size:14px; color:#1f2937; word-break:break-all; }
.pm-quality-detail-field.full { grid-column:1/-1; }
.pm-quality-detail-field textarea { width:100%; min-height:80px; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; resize:vertical; background:#f9fafb; }

/* 详情关联链接 */
.pm-quality-link { color:#2563eb; cursor:pointer; text-decoration:none; }
.pm-quality-link:hover { text-decoration:underline; }

/* 发现项列表 */
.pm-quality-findings-list { padding:16px 0; }

/* 时间线 */
.pm-quality-timeline { padding:16px 0; display:flex; flex-direction:column; gap:0; }
.pm-quality-timeline-item { display:flex; gap:12px; padding-bottom:20px; position:relative; }
.pm-quality-timeline-item:not(:last-child)::before { content:''; position:absolute; left:15px; top:32px; bottom:0; width:2px; background:#e5e7eb; }
.pm-quality-timeline-dot { width:32px; height:32px; border-radius:50%; background:#dbeafe; color:#2563eb; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; z-index:1; }
.pm-quality-timeline-dot.completed { background:#dcfce7; color:#16a34a; }
.pm-quality-timeline-content { flex:1; }
.pm-quality-timeline-date { font-size:12px; color:#6b7280; }
.pm-quality-timeline-action { font-size:13px; font-weight:600; color:#1f2937; margin:2px 0; }
.pm-quality-timeline-note { font-size:12px; color:#6b7280; }

/* ---- 弹窗 ---- */
.pm-quality-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:9999; display:flex; align-items:center; justify-content:center; }
.pm-quality-modal { background:#fff; border-radius:16px; padding:24px; width:90%; max-height:80vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.15); }
.pm-quality-modal h3 { font-size:16px; font-weight:700; color:#1f2937; margin:0 0 16px 0; }
.pm-quality-modal-form { display:grid; grid-template-columns:repeat(2,1fr); gap:14px 20px; }
.pm-quality-modal-field { display:flex; flex-direction:column; gap:4px; }
.pm-quality-modal-field.full { grid-column:1/-1; }
.pm-quality-modal-field label { font-size:12px; color:#6b7280; font-weight:500; }
.pm-quality-modal-field label .required { color:#dc2626; margin-left:2px; }
.pm-quality-modal-field input,
.pm-quality-modal-field select,
.pm-quality-modal-field textarea { width:100%; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; min-height:44px; }
.pm-quality-modal-field textarea { min-height:72px; resize:vertical; }
.pm-quality-modal-field input:focus,
.pm-quality-modal-field select:focus,
.pm-quality-modal-field textarea:focus { border-color:#ca8a04; box-shadow:0 0 0 3px rgba(202,138,4,0.1); }
.pm-quality-modal-field input[readonly] { background:#f9fafb; color:#6b7280; }
.pm-quality-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; grid-column:1/-1; }
.pm-quality-modal-actions button { padding:8px 20px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; transition:all 0.2s; min-height:44px; }
.pm-quality-modal-cancel { background:#f3f4f6; color:#374151; }
.pm-quality-modal-cancel:hover { background:#e5e7eb; }
.pm-quality-modal-save { background:#ca8a04; color:#fff; }
.pm-quality-modal-save:hover { background:#a16207; }

/* 确认弹窗 */
.pm-quality-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-quality-confirm { background:#fff; border-radius:16px; padding:24px; width:90%; max-width:420px; box-shadow:0 20px 60px rgba(0,0,0,0.15); text-align:center; }
.pm-quality-confirm h4 { font-size:15px; font-weight:600; color:#1f2937; margin:0 0 10px 0; }
.pm-quality-confirm p { font-size:13px; color:#6b7280; margin:0 0 20px 0; line-height:1.6; }
.pm-quality-confirm-actions { display:flex; justify-content:center; gap:10px; }
.pm-quality-confirm-actions button { padding:8px 24px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; min-height:44px; }

/* 检查明细表格 */
.pm-quality-check-items { padding:16px 0; }

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
    .pm-quality-kpi-row { grid-template-columns:repeat(2,1fr); }
    .pm-quality-kpi { padding:12px; }
    .pm-quality-kpi .qkpi-icon { width:36px; height:36px; font-size:15px; }
    .pm-quality-kpi .qkpi-value { font-size:18px; }
    .pm-quality-tabs { -webkit-overflow-scrolling:touch; }
    .pm-quality-toolbar { flex-direction:column; align-items:stretch; }
    .pm-quality-search { max-width:100%; min-width:0; }
    .pm-quality-filter { width:100%; }
    .pm-quality-btn { width:100%; justify-content:center; }
    .pm-quality-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .pm-quality-table-wrap .pm-data-table { display:block; }
    .pm-quality-table-wrap .pm-data-table thead th:first-child,
    .pm-quality-table-wrap .pm-data-table tbody td:first-child { position:sticky; left:0; z-index:1; background:inherit; }
    .pm-quality-table-wrap .pm-data-table thead th:first-child { background:#f9fafb; }
    .pm-quality-table-wrap .pm-data-table tbody td:first-child { background:#fff; }
    .pm-quality-table-wrap .pm-data-table tbody tr:hover td:first-child { background:#fefce8; }
    .pm-quality-modal { max-width:calc(100% - 16px); margin:0 8px; }
    .pm-quality-modal-form { grid-template-columns:1fr; }
    .pm-quality-detail-fields { grid-template-columns:1fr; }
}

/* ==================== V5.32.1: 盖章申请(pm_seal)样式 ==================== */
/* ==================== V5.32.0: 盖章申请(pm_seal)样式 ==================== */
.pm-seal { display:flex; flex-direction:column; gap:20px; }
.pm-seal-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-seal-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-seal-kpi-row { grid-template-columns:1fr 1fr; } }
.pm-seal-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-seal-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-seal-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-seal-kpi .hkpi-info { display:flex; flex-direction:column; }
.pm-seal-kpi .hkpi-value { font-size:22px; font-weight:700; }
.pm-seal-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.pm-seal-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-seal-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-seal-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-seal-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-seal-search input:focus { border-color:#78716c; box-shadow:0 0 0 3px rgba(120,113,108,0.1); }
.pm-seal-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.pm-seal-filter:focus { border-color:#78716c; }
.pm-seal-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.pm-seal-btn-add { background:#78716c; color:#fff; }
.pm-seal-btn-add:hover { background:#57534e; transform:translateY(-1px); }
.pm-seal-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-seal-btn-export:hover { border-color:#78716c; color:#78716c; background:#f5f5f4; }

.pm-seal-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pm-seal-table-wrap table.pm-data-table thead th { position:sticky; top:0; z-index:1; }
.pm-seal-id-link { color:#78716c; cursor:pointer; font-weight:500; }
.pm-seal-id-link:hover { text-decoration:underline; }

/* 印章类型标签 */
.pm-seal-type-tag { display:inline-block; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-seal-type-tag.official { background:#fef2f2; color:#dc2626; }
.pm-seal-type-tag.contract { background:#dbeafe; color:#2563eb; }
.pm-seal-type-tag.legal { background:#faf5ff; color:#7c3aed; }
.pm-seal-type-tag.finance { background:#fefce8; color:#ca8a04; }

/* 操作按钮 */
.pm-seal-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.pm-seal-action-btn.view { color:#78716c; }
.pm-seal-action-btn.view:hover { background:#f5f5f4; }
.pm-seal-action-btn.submit { color:#d97706; }
.pm-seal-action-btn.submit:hover { background:#fffbeb; }
.pm-seal-action-btn.edit { color:#2563eb; }
.pm-seal-action-btn.edit:hover { background:#dbeafe; }
.pm-seal-action-btn.approve { color:#16a34a; }
.pm-seal-action-btn.approve:hover { background:#f0fdf4; }
.pm-seal-action-btn.withdraw { color:#dc2626; }
.pm-seal-action-btn.withdraw:hover { background:#fef2f2; }
.pm-seal-action-btn.delete { color:#dc2626; }
.pm-seal-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }

/* 详情页 */
.pm-seal-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-seal-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.pm-seal-detail-back:hover { background:#e5e7eb; }
.pm-seal-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-seal-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-seal-detail-meta { display:flex; gap:20px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.pm-seal-detail-meta span { display:flex; align-items:center; gap:4px; }
.pm-seal-detail-meta i { font-size:12px; }

.pm-seal-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.pm-seal-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.pm-seal-tab:hover { color:#78716c; }
.pm-seal-tab.active { color:#78716c; border-bottom-color:#78716c; }
.pm-seal-tab-content { padding:20px; }
.pm-seal-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:500px) { .pm-seal-info-grid { grid-template-columns:1fr; } }
.pm-seal-info-item { display:flex; flex-direction:column; gap:4px; }
.pm-seal-info-label { font-size:12px; color:#9ca3af; font-weight:500; }
.pm-seal-info-value { font-size:14px; color:#1f2937; }
.pm-seal-info-value a { color:#78716c; cursor:pointer; }
.pm-seal-info-value a:hover { text-decoration:underline; }

/* 审批时间线 */
.pm-seal-timeline { padding:0; list-style:none; margin:0; }
.pm-seal-timeline-item { display:flex; gap:16px; padding-bottom:20px; position:relative; }
.pm-seal-timeline-item:not(:last-child)::after { content:''; position:absolute; left:15px; top:34px; bottom:0; width:2px; background:#e5e7eb; }
.pm-seal-timeline-dot { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.pm-seal-timeline-dot.pending { background:#fef3c7; color:#d97706; }
.pm-seal-timeline-dot.approved { background:#dcfce7; color:#16a34a; }
.pm-seal-timeline-dot.rejected { background:#fee2e2; color:#dc2626; }
.pm-seal-timeline-body { flex:1; }
.pm-seal-timeline-title { font-size:14px; font-weight:500; color:#1f2937; }
.pm-seal-timeline-meta { font-size:12px; color:#9ca3af; margin-top:2px; }
.pm-seal-timeline-note { font-size:13px; color:#6b7280; margin-top:6px; padding:8px 12px; background:#f9fafb; border-radius:6px; }

/* 审批操作区 */
.pm-seal-approval-actions { margin-top:20px; padding-top:20px; border-top:1px solid #e5e7eb; }
.pm-seal-approval-textarea { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; min-height:80px; resize:vertical; outline:none; transition:all 0.2s; margin-bottom:12px; }
.pm-seal-approval-textarea:focus { border-color:#78716c; box-shadow:0 0 0 2px rgba(120,113,108,0.1); }
.pm-seal-approval-btns { display:flex; gap:10px; flex-wrap:wrap; }
.pm-seal-approval-btns .pm-seal-btn { min-height:44px; }
.pm-seal-btn-approve { background:#16a34a; color:#fff; }
.pm-seal-btn-approve:hover { background:#15803d; }
.pm-seal-btn-reject { background:#dc2626; color:#fff; }
.pm-seal-btn-reject:hover { background:#b91c1c; }
.pm-seal-btn-withdraw { background:#f3f4f6; border:1px solid #d1d5db; color:#374151; }
.pm-seal-btn-withdraw:hover { background:#e5e7eb; }
.pm-seal-btn-submit-primary { background:#78716c; color:#fff; }
.pm-seal-btn-submit-primary:hover { background:#57534e; }

/* 盖章记录表格 */
.pm-seal-record-table { width:100%; border-collapse:collapse; }
.pm-seal-record-table th { padding:10px 14px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.pm-seal-record-table td { padding:10px 14px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }

/* 确认盖章按钮 */
.pm-seal-confirm-stamp-btn { margin-top:16px; padding:10px 24px; background:#78716c; color:#fff; border:none; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; min-height:44px; transition:all 0.2s; }
.pm-seal-confirm-stamp-btn:hover { background:#57534e; }

/* 弹窗 */
.pm-seal-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-seal-modal { background:#fff; border-radius:12px; padding:28px 32px; width:650px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-seal-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-seal-modal h3 i { color:#78716c; margin-right:8px; }
.pm-seal-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-seal-modal input, .pm-seal-modal select, .pm-seal-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.pm-seal-modal input:focus, .pm-seal-modal select:focus, .pm-seal-modal textarea:focus { border-color:#78716c; box-shadow:0 0 0 2px rgba(120,113,108,0.1); }
.pm-seal-modal textarea { resize:vertical; min-height:80px; }
.pm-seal-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:500px) { .pm-seal-modal-row { grid-template-columns:1fr; } }
.pm-seal-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.pm-seal-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-seal-modal-cancel:hover { background:#f9fafb; }
.pm-seal-modal-save-draft { padding:8px 20px; border:1px solid #d1d5db; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-seal-modal-save-draft:hover { background:#e5e7eb; }
.pm-seal-modal-save { padding:8px 20px; border:none; background:#78716c; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-seal-modal-save:hover { background:#57534e; }
.pm-seal-modal-delete { padding:8px 20px; border:none; background:#dc2626; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-seal-modal-delete:hover { background:#b91c1c; }

/* 确认盖章弹窗宽度 */
.pm-seal-stamp-modal { width:400px; }

/* 状态标签扩展 */
.pm-status-tag.submitted { background:#fef3c7; color:#d97706; }
.pm-status-tag.rejected { background:#fee2e2; color:#dc2626; }
.pm-status-tag.sealed { background:#dcfce7; color:#16a34a; }
.pm-status-tag.withdrawn { background:#f3f4f6; color:#6b7280; }

/* 附件列表 */
.pm-seal-attachment-list { display:flex; flex-direction:column; gap:6px; }
.pm-seal-attachment-item { display:flex; align-items:center; gap:8px; padding:6px 10px; background:#f9fafb; border-radius:6px; font-size:13px; color:#374151; }
.pm-seal-attachment-item i { color:#78716c; }

/* 详情页底部提交按钮 */
.pm-seal-detail-submit-bar { margin-top:20px; padding-top:16px; border-top:1px solid #e5e7eb; display:flex; justify-content:flex-end; }

/* 移动端375px适配 */
@media(max-width:500px) {
    .pm-seal-toolbar { flex-direction:column; align-items:stretch; }
    .pm-seal-search { max-width:100%; }
    .pm-seal-modal { width:100%; max-width:100vw; border-radius:0; padding:20px 16px; }
    .pm-seal-stamp-modal { width:100%; }
    .pm-seal-info-grid { grid-template-columns:1fr; }
    .pm-seal-detail-meta { flex-direction:column; gap:8px; }
    .pm-seal-approval-btns { flex-direction:column; }
    .pm-seal-approval-btns .pm-seal-btn { width:100%; justify-content:center; }
}

/* ==================== V5.32.2: 培训管理(pm_training)样式 ==================== */

/* 容器 */
.pm-training { display:flex; flex-direction:column; gap:16px; }

/* KPI卡片行 */
.pm-training-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.pm-training-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-training-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-training-kpi .tkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-training-kpi .tkpi-info { display:flex; flex-direction:column; }
.pm-training-kpi .tkpi-value { font-size:22px; font-weight:700; line-height:1.2; }
.pm-training-kpi .tkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* Tab切换区 */
.pm-training-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; margin-bottom:0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pm-training-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; transition:all 0.2s; flex-shrink:0; min-height:44px; display:flex; align-items:center; }
.pm-training-tab:hover { color:#9333ea; }
.pm-training-tab.active { color:#9333ea; border-bottom-color:#9333ea; font-weight:600; }

/* 工具栏 */
.pm-training-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 0; }
.pm-training-search { position:relative; flex:1; min-width:200px; max-width:360px; }
.pm-training-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-training-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; }
.pm-training-search input:focus { border-color:#9333ea; box-shadow:0 0 0 3px rgba(147,51,234,0.1); }
.pm-training-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; min-width:100px; min-height:44px; }
.pm-training-filter:focus { border-color:#9333ea; }
.pm-training-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.pm-training-btn-add { background:#9333ea; color:#fff; }
.pm-training-btn-add:hover { background:#7e22ce; transform:translateY(-1px); }
.pm-training-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-training-btn-export:hover { border-color:#9333ea; color:#9333ea; background:#faf5ff; }

/* 表格区 */
.pm-training-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; cursor:grab; user-select:auto; }
.pm-training-table-wrap.is-dragging { cursor:grabbing; user-select:none; }
.pm-training-table-wrap .pm-data-table { margin:0; border:none; border-radius:0; min-width:1120px; table-layout:fixed; }
.pm-training-table-wrap .pm-data-table th:last-child,
.pm-training-table-wrap .pm-data-table td:last-child { position:sticky; right:0; z-index:2; background:#fff; box-shadow:-8px 0 14px rgba(15,23,42,.06); }
.pm-training-table-wrap .pm-data-table th:last-child { background:#f8fafc; z-index:3; }

/* 培训类型标签 */
.pm-training-type-tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-training-type-tag.gcp { background:#f0fdf4; color:#16a34a; }
.pm-training-type-tag.protocol { background:#dbeafe; color:#2563eb; }
.pm-training-type-tag.sop { background:#faf5ff; color:#7c3aed; }
.pm-training-type-tag.safety { background:#fef2f2; color:#dc2626; }
.pm-training-type-tag.other { background:#f3f4f6; color:#6b7280; }

/* 必修/选修标签 */
.pm-training-required-tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-training-required-tag.required { background:#fef2f2; color:#dc2626; }
.pm-training-required-tag.elective { background:#f3f4f6; color:#6b7280; }

/* 状态标签 */
.pm-training-status { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-training-status.planned { background:#dbeafe; color:#2563eb; }
.pm-training-status.in-progress { background:#fef3c7; color:#d97706; }
.pm-training-status.completed { background:#dcfce7; color:#16a34a; }
.pm-training-status.expired { background:#fee2e2; color:#dc2626; }

/* 考核状态标签 */
.pm-training-exam-status { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-training-exam-status.passed { background:#dcfce7; color:#16a34a; }
.pm-training-exam-status.failed { background:#fee2e2; color:#dc2626; }
.pm-training-exam-status.unchecked { background:#fef3c7; color:#d97706; }
.pm-training-exam-status.exempt { background:#f3f4f6; color:#6b7280; }

/* 签到状态标签 */
.pm-training-checkin-tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-training-checkin-tag.checked { background:#dcfce7; color:#16a34a; }
.pm-training-checkin-tag.unchecked { background:#f3f4f6; color:#9ca3af; }

/* 证书状态标签 */
.pm-training-cert-tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-training-cert-tag.issued { background:#dcfce7; color:#16a34a; }
.pm-training-cert-tag.not-issued { background:#fef3c7; color:#d97706; }
.pm-training-cert-tag.no-need { background:#f3f4f6; color:#6b7280; }

/* 完成率进度条 */
.pm-training-progress { display:flex; align-items:center; gap:6px; }
.pm-training-progress-bar { flex:1; height:6px; background:#e5e7eb; border-radius:3px; overflow:hidden; min-width:40px; }
.pm-training-progress-fill { height:100%; border-radius:3px; transition:width 0.3s; }
.pm-training-progress-text { font-size:12px; color:#6b7280; white-space:nowrap; min-width:32px; }

/* 过期行背景 */
.pm-training-row-expired { background:#fffbeb !important; }

/* 未通过考核行背景 */
.pm-training-row-failed { background:#fef2f2 !important; }

/* 编号可点击 */
.pm-training-id-link { color:#2563eb; cursor:pointer; font-weight:500; text-decoration:none; }
.pm-training-id-link:hover { text-decoration:underline; }

/* 培训名称可点击（记录列表） */
.pm-training-name-link { color:#2563eb; cursor:pointer; font-weight:500; text-decoration:none; }
.pm-training-name-link:hover { text-decoration:underline; }

/* 操作按钮 */
.pm-training-action { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:6px; font-size:12px; cursor:pointer; border:none; background:transparent; transition:all 0.15s; min-height:32px; }
.pm-training-action-view { color:#2563eb; }
.pm-training-action-view:hover { background:#dbeafe; }
.pm-training-action-edit { color:#d97706; }
.pm-training-action-edit:hover { background:#fef3c7; }
.pm-training-action-delete { color:#dc2626; }
.pm-training-action-delete:hover { background:#fee2e2; }

/* 文字链接操作 */
.pm-training-link-action { color:#2563eb; cursor:pointer; font-size:12px; text-decoration:none; }
.pm-training-link-action:hover { text-decoration:underline; }
.pm-training-link-action.danger { color:#dc2626; }

/* ---- 详情页 ---- */
.pm-training-detail { display:flex; flex-direction:column; gap:16px; }
.pm-training-detail-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pm-training-detail-title { display:flex; align-items:center; gap:12px; }
.pm-training-detail-title h3 { font-size:18px; font-weight:700; color:#1f2937; margin:0; }
.pm-training-detail-title .pm-training-detail-id { font-size:13px; color:#6b7280; font-weight:500; }
.pm-training-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; border:1px solid #e5e7eb; border-radius:8px; background:#fff; transition:all 0.2s; min-height:44px; }
.pm-training-detail-back:hover { color:#9333ea; border-color:#9333ea; background:#faf5ff; }

/* 详情Tab */
.pm-training-detail-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; }
.pm-training-detail-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.pm-training-detail-tab:hover { color:#9333ea; }
.pm-training-detail-tab.active { color:#9333ea; border-bottom-color:#9333ea; font-weight:600; }

/* 详情字段 */
.pm-training-detail-fields { display:grid; grid-template-columns:repeat(2,1fr); gap:16px 24px; padding:20px 0; }
.pm-training-detail-field { display:flex; flex-direction:column; gap:4px; }
.pm-training-detail-field label { font-size:12px; color:#6b7280; font-weight:500; }
.pm-training-detail-field span { font-size:14px; color:#1f2937; word-break:break-all; }
.pm-training-detail-field.full { grid-column:1/-1; }
.pm-training-detail-field textarea { width:100%; min-height:80px; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; resize:vertical; background:#f9fafb; }

/* 详情状态操作按钮 */
.pm-training-status-actions { display:flex; gap:10px; padding-top:16px; }
.pm-training-status-btn { padding:10px 24px; border-radius:8px; font-size:13px; font-weight:600; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.pm-training-status-btn.start { background:#2563eb; color:#fff; }
.pm-training-status-btn.start:hover { background:#1d4ed8; }
.pm-training-status-btn.complete { background:#16a34a; color:#fff; }
.pm-training-status-btn.complete:hover { background:#15803d; }
.pm-training-status-btn.reschedule { background:#ea580c; color:#fff; }
.pm-training-status-btn.reschedule:hover { background:#c2410c; }

/* 参训人员表格 */
.pm-training-trainees-table { padding:0; }
.pm-training-add-trainee-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:500; border:1px dashed #9333ea; color:#9333ea; background:#faf5ff; cursor:pointer; transition:all 0.2s; min-height:44px; margin-top:12px; }
.pm-training-add-trainee-btn:hover { background:#f3e8ff; }

/* ---- 弹窗 ---- */
.pm-training-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:9999; display:flex; align-items:center; justify-content:center; }
.pm-training-modal { background:#fff; border-radius:16px; padding:24px; width:90%; max-height:85vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.15); }
.pm-training-modal h3 { font-size:16px; font-weight:700; color:#1f2937; margin:0 0 16px 0; }
.pm-training-modal-form { display:grid; grid-template-columns:repeat(2,1fr); gap:14px 20px; }
.pm-training-modal-field { display:flex; flex-direction:column; gap:4px; }
.pm-training-modal-field.full { grid-column:1/-1; }
.pm-training-modal-field label { font-size:12px; color:#6b7280; font-weight:500; }
.pm-training-modal-field label .required { color:#dc2626; margin-left:2px; }
.pm-training-modal-field input,
.pm-training-modal-field select,
.pm-training-modal-field textarea { width:100%; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; min-height:44px; box-sizing:border-box; }
.pm-training-modal-field textarea { min-height:72px; resize:vertical; }
.pm-training-modal-field input:focus,
.pm-training-modal-field select:focus,
.pm-training-modal-field textarea:focus { border-color:#9333ea; box-shadow:0 0 0 3px rgba(147,51,234,0.1); }
.pm-training-modal-field input[readonly] { background:#f9fafb; color:#6b7280; }
.pm-training-modal-field .pm-training-radio-group { display:flex; gap:16px; min-height:44px; align-items:center; }
.pm-training-modal-field .pm-training-radio-group label { display:flex; align-items:center; gap:4px; font-size:13px; color:#374151; cursor:pointer; }
.pm-training-modal-field .pm-training-radio-group input[type="radio"] { width:auto; min-height:auto; margin:0; }
.pm-training-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; grid-column:1/-1; }
.pm-training-modal-actions button { padding:8px 20px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; transition:all 0.2s; min-height:44px; }
.pm-training-modal-cancel { background:#f3f4f6; color:#374151; }
.pm-training-modal-cancel:hover { background:#e5e7eb; }
.pm-training-modal-save { background:#9333ea; color:#fff; }
.pm-training-modal-save:hover { background:#7e22ce; }
.pm-training-modal-reschedule { background:#ea580c; color:#fff; }
.pm-training-modal-reschedule:hover { background:#c2410c; }

/* 参训人chip标签 */
.pm-training-chips { display:flex; flex-wrap:wrap; gap:6px; min-height:44px; padding:6px 8px; border:1px solid #e5e7eb; border-radius:8px; align-items:center; }
.pm-training-chip { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; background:#faf5ff; color:#7c3aed; border-radius:16px; font-size:12px; font-weight:500; }
.pm-training-chip .pm-training-chip-remove { cursor:pointer; font-size:14px; color:#9ca3af; line-height:1; }
.pm-training-chip .pm-training-chip-remove:hover { color:#dc2626; }
.pm-training-chip-add { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border:1px dashed #9333ea; color:#9333ea; border-radius:16px; font-size:12px; cursor:pointer; background:transparent; }
.pm-training-chip-add:hover { background:#f3e8ff; }

/* 确认弹窗 */
.pm-training-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-training-confirm { background:#fff; border-radius:16px; padding:24px; width:90%; max-width:420px; box-shadow:0 20px 60px rgba(0,0,0,0.15); text-align:center; }
.pm-training-confirm h4 { font-size:15px; font-weight:600; color:#1f2937; margin:0 0 10px 0; }
.pm-training-confirm p { font-size:13px; color:#6b7280; margin:0 0 20px 0; line-height:1.6; }
.pm-training-confirm-actions { display:flex; justify-content:center; gap:10px; }
.pm-training-confirm-actions button { padding:8px 24px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; min-height:44px; }
.pm-training-confirm-cancel { background:#f3f4f6; color:#374151; }
.pm-training-confirm-cancel:hover { background:#e5e7eb; }
.pm-training-confirm-ok { background:#9333ea; color:#fff; }
.pm-training-confirm-ok:hover { background:#7e22ce; }
.pm-training-confirm-danger { background:#dc2626; color:#fff; }
.pm-training-confirm-danger:hover { background:#b91c1c; }

/* 添加参训人弹窗 */
.pm-training-add-trainee-modal { max-width:400px; }
.pm-training-add-trainee-search { position:relative; margin-bottom:12px; }
.pm-training-add-trainee-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-training-add-trainee-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; min-height:44px; box-sizing:border-box; }
.pm-training-add-trainee-search input:focus { border-color:#9333ea; }
.pm-training-add-trainee-actions { display:flex; gap:8px; margin-bottom:12px; }
.pm-training-add-trainee-actions button { padding:4px 12px; border-radius:6px; font-size:12px; cursor:pointer; border:1px solid #e5e7eb; background:#fff; color:#374151; min-height:32px; }
.pm-training-add-trainee-actions button:hover { background:#f3f4f6; }
.pm-training-add-trainee-list { max-height:240px; overflow-y:auto; border:1px solid #e5e7eb; border-radius:8px; }
.pm-training-add-trainee-item { display:flex; align-items:center; gap:10px; padding:8px 12px; border-bottom:1px solid #f3f4f6; font-size:13px; min-height:44px; }
.pm-training-add-trainee-item:last-child { border-bottom:none; }
.pm-training-add-trainee-item:hover { background:#faf5ff; }
.pm-training-add-trainee-item input[type="checkbox"] { width:16px; height:16px; cursor:pointer; }
.pm-training-add-trainee-item .item-info { flex:1; }
.pm-training-add-trainee-item .item-name { font-weight:500; color:#1f2937; }
.pm-training-add-trainee-item .item-dept { font-size:11px; color:#9ca3af; }

/* 培训记录详情弹窗 */
.pm-training-record-modal { max-width:500px; }
.pm-training-record-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; }
.pm-training-record-field { display:flex; flex-direction:column; gap:3px; }
.pm-training-record-field.full { grid-column:1/-1; }
.pm-training-record-field label { font-size:12px; color:#6b7280; font-weight:500; }
.pm-training-record-field span { font-size:14px; color:#1f2937; word-break:break-all; }

/* 录入考核结果弹窗 */
.pm-training-exam-modal { max-width:500px; }

/* 重新安排日期弹窗 */
.pm-training-reschedule-modal { max-width:400px; }

/* 关联文档Tab */
.pm-training-docs-readonly { color:#9ca3af; font-size:13px; padding:20px 0; text-align:center; }
.pm-training-docs-list { padding:16px 0; }
.pm-training-doc-item { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #f3f4f6; font-size:13px; }
.pm-training-doc-item i { color:#9333ea; }
.pm-training-doc-item span { color:#1f2937; }

/* 空状态 */
.pm-training-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.pm-training-empty i { font-size:48px; margin-bottom:16px; display:block; }

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
    .pm-training-kpi-row { grid-template-columns:repeat(2,1fr); }
    .pm-training-kpi { padding:12px; }
    .pm-training-kpi .tkpi-icon { width:36px; height:36px; font-size:15px; }
    .pm-training-kpi .tkpi-value { font-size:18px; }
    .pm-training-tabs { -webkit-overflow-scrolling:touch; }
    .pm-training-toolbar { flex-direction:column; align-items:stretch; }
    .pm-training-search { max-width:100%; min-width:0; }
    .pm-training-filter { width:100%; }
    .pm-training-btn { width:100%; justify-content:center; }
    .pm-training-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .pm-training-table-wrap .pm-data-table { min-width:1120px; }
    .pm-training-modal { max-width:calc(100% - 16px); margin:0 8px; }
    .pm-training-modal-form { grid-template-columns:1fr; }
    .pm-training-detail-fields { grid-template-columns:1fr; }
    .pm-training-record-fields { grid-template-columns:1fr; }
    .pm-training-progress-bar { display:none; }
}

/* ==================== V5.32.3: 进度甘特(pm_gantt)样式 ==================== */

/* 整体容器 */
.pm-gantt { display:flex; flex-direction:column; gap:20px; }

/* KPI卡片行 */
.pm-gantt-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:768px) { .pm-gantt-kpi-row { grid-template-columns:1fr 1fr; } }

.pm-gantt-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-gantt-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-gantt-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-gantt-kpi .hkpi-info { display:flex; flex-direction:column; }
.pm-gantt-kpi .hkpi-value { font-size:22px; font-weight:700; }
.pm-gantt-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 工具栏 */
.pm-gantt-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-gantt-search { position:relative; flex:1; min-width:160px; max-width:280px; }
.pm-gantt-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-gantt-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-gantt-search input:focus { border-color:#2aacba; box-shadow:0 0 0 3px rgba(42,172,186,0.1); }

/* 视图切换按钮组 */
.pm-gantt-view-group { display:flex; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; }
.pm-gantt-view-btn { padding:7px 14px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; background:#f3f4f6; color:#6b7280; min-height:36px; }
.pm-gantt-view-btn:not(:last-child) { border-right:1px solid #e5e7eb; }
.pm-gantt-view-btn.active { background:#2aacba; color:#fff; }
.pm-gantt-view-btn:hover:not(.active) { background:#e5e7eb; }

@media(max-width:768px) {
    .pm-gantt-view-btn { padding:7px 10px; font-size:0; }
    .pm-gantt-view-btn::before { font-size:12px; font-family:'Font Awesome 5 Free'; font-weight:900; }
    .pm-gantt-view-btn:nth-child(1)::before { content:'\f073'; }
    .pm-gantt-view-btn:nth-child(2)::before { content:'\f133'; }
    .pm-gantt-view-btn:nth-child(3)::before { content:'\f1ec'; }
}

/* 筛选下拉 */
.pm-gantt-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.pm-gantt-filter:focus { border-color:#2aacba; }

/* 操作按钮 */
.pm-gantt-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.pm-gantt-btn-add-task { background:#2563eb; color:#fff; }
.pm-gantt-btn-add-task:hover { background:#1d4ed8; transform:translateY(-1px); }
.pm-gantt-btn-add-milestone { background:#16a34a; color:#fff; }
.pm-gantt-btn-add-milestone:hover { background:#15803d; transform:translateY(-1px); }
.pm-gantt-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-gantt-btn-export:hover { border-color:#2aacba; color:#2aacba; background:#f0fdfa; }

/* Tab切换 */
.pm-gantt-tabs { display:flex; border-bottom:2px solid #e5e7eb; background:#fff; border-radius:12px 12px 0 0; border:1px solid #e5e7eb; border-bottom:none; padding:0 8px; }
.pm-gantt-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; margin-bottom:-2px; }
.pm-gantt-tab:hover { color:#2aacba; }
.pm-gantt-tab.active { color:#2aacba; border-bottom-color:#2aacba; }

/* 甘特图容器 */
.pm-gantt-chart { display:flex; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; background:#fff; border-top:none; border-radius:0 0 8px 8px; }

/* 左侧面板 */
.pm-gantt-left { width:280px; min-width:280px; border-right:2px solid #e5e7eb; background:#fafbfc; overflow-y:auto; }
.pm-gantt-left-header { display:flex; align-items:center; height:50px; padding:0 12px; border-bottom:2px solid #e5e7eb; background:#f9fafb; font-weight:600; font-size:13px; color:#374151; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pm-gantt-left-header span { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pm-gantt-left-row { display:flex; align-items:center; height:40px; padding:0 8px; border-bottom:1px solid #f3f4f6; cursor:pointer; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:background 0.15s; }
.pm-gantt-left-row:hover { background:#f0fdf4; }
.pm-gantt-left-row.milestone { background:#fffbeb; font-weight:600; }
.pm-gantt-left-row.overdue { background:#fef2f2; }
.pm-gantt-left-row.active { background:#ccfbf1; border-left:3px solid #2aacba; }

.pm-gantt-left-name { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.pm-gantt-left-owner { width:50px; text-align:center; color:#6b7280; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex-shrink:0; }
.pm-gantt-left-status { width:52px; text-align:center; flex-shrink:0; }
.pm-gantt-left-view { width:28px; text-align:center; flex-shrink:0; }
.pm-gantt-left-view i { color:#2aacba; font-size:11px; cursor:pointer; }
.pm-gantt-left-view i:hover { color:#1a8a96; }

@media(max-width:768px) {
    .pm-gantt-left { width:160px; min-width:160px; }
    .pm-gantt-left-owner, .pm-gantt-left-status { display:none; }
    .pm-gantt-left-name { flex:1; }
}

/* 右侧甘特区域 */
.pm-gantt-right { flex:1; overflow-x:auto; overflow-y:auto; position:relative; }
.pm-gantt-timeline-header { display:flex; height:50px; border-bottom:2px solid #e5e7eb; background:#f9fafb; position:sticky; top:0; z-index:2; }
.pm-gantt-time-cell { min-width:var(--gantt-cell-width,120px); height:50px; display:flex; align-items:center; justify-content:center; border-right:1px solid #f3f4f6; font-size:12px; color:#6b7280; font-weight:500; flex-shrink:0; }

/* 甘特行 */
.pm-gantt-row { height:40px; position:relative; border-bottom:1px solid #f3f4f6; white-space:nowrap; overflow:hidden; }
.pm-gantt-row.active { background:rgba(42,172,186,0.06); }

/* 进度条 */
.pm-gantt-bar { position:absolute; top:8px; height:24px; border-radius:4px; cursor:pointer; transition:opacity 0.2s; display:flex; align-items:center; padding:0 6px; font-size:11px; color:#fff; font-weight:500; overflow:hidden; white-space:nowrap; z-index:3; }
.pm-gantt-bar:hover { opacity:0.85; }
.pm-gantt-bar.done { background:#0891B2; }
.pm-gantt-bar.in-progress { background:#3b82f6; }
.pm-gantt-bar.pending { background:#d1d5db; }
.pm-gantt-bar.overdue { background:#dc2626; }

/* 进度条内填充 */
.pm-gantt-bar-fill { position:absolute; left:0; top:0; height:100%; border-radius:4px; background:rgba(255,255,255,0.3); pointer-events:none; }

/* 今日线 */
.pm-gantt-today-line { position:absolute; top:0; bottom:0; width:2px; background:#dc2626; z-index:5; pointer-events:none; }
.pm-gantt-today-label { position:absolute; top:-18px; left:50%; transform:translateX(-50%); font-size:10px; color:#dc2626; font-weight:600; white-space:nowrap; }

/* 里程碑标记 */
.pm-gantt-milestone { position:absolute; top:10px; width:20px; height:20px; transform:rotate(45deg); cursor:pointer; z-index:3; }
.pm-gantt-milestone.achieved { background:#0891B2; }
.pm-gantt-milestone.planned { background:#f59e0b; }
.pm-gantt-milestone.overdue-ms { background:#dc2626; }
.pm-gantt-milestone:hover { opacity:0.85; }

/* 移动端甘特提示 */
.pm-gantt-mobile-tip { background:#fef3c7; border:1px solid #fde68a; border-radius:8px; padding:10px 16px; font-size:12px; color:#92400e; display:flex; align-items:center; gap:8px; }
.pm-gantt-mobile-tip i { color:#d97706; }

/* 里程碑列表 / 任务列表 表格 */
.pm-gantt-table-wrap { background:#fff; border-radius:0 0 8px 8px; border:1px solid #e5e7eb; border-top:none; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pm-gantt-table-wrap table.pm-data-table thead th { position:sticky; top:0; z-index:1; }

.pm-gantt-name-link { color:#2aacba; cursor:pointer; font-weight:500; }
.pm-gantt-name-link:hover { text-decoration:underline; }

.pm-gantt-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.pm-gantt-action-btn.edit { color:#2563eb; }
.pm-gantt-action-btn.edit:hover { background:#dbeafe; }
.pm-gantt-action-btn.delete { color:#dc2626; }
.pm-gantt-action-btn.delete:hover { background:#fee2e2; }
.pm-gantt-action-btn.achieve { color:#16a34a; }
.pm-gantt-action-btn.achieve:hover { background:#dcfce7; }

/* 进度条(表格内) */
.pm-gantt-progress-bar { display:flex; align-items:center; gap:6px; }
.pm-gantt-progress-track { flex:1; height:8px; background:#e5e7eb; border-radius:4px; overflow:hidden; min-width:40px; }
.pm-gantt-progress-fill { height:100%; border-radius:4px; transition:width 0.3s; }
.pm-gantt-progress-text { font-size:12px; color:#6b7280; white-space:nowrap; min-width:32px; text-align:right; }

/* 偏差颜色 */
.pm-gantt-deviation.positive { color:#dc2626; font-weight:600; }
.pm-gantt-deviation.negative { color:#16a34a; font-weight:600; }
.pm-gantt-deviation.zero { color:#9ca3af; }

/* 弹窗 */
.pm-gantt-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-gantt-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.pm-gantt-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-gantt-modal h3 i { color:#2aacba; margin-right:8px; }
.pm-gantt-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-gantt-modal input, .pm-gantt-modal select, .pm-gantt-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.pm-gantt-modal input:focus, .pm-gantt-modal select:focus, .pm-gantt-modal textarea:focus { border-color:#2aacba; box-shadow:0 0 0 2px rgba(42,172,186,0.1); }
.pm-gantt-modal textarea { resize:vertical; min-height:80px; }
.pm-gantt-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:500px) { .pm-gantt-modal-row { grid-template-columns:1fr; } .pm-gantt-modal { width:100%; max-width:100vw; border-radius:0; min-height:100vh; } }

.pm-gantt-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.pm-gantt-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-gantt-modal-cancel:hover { background:#f9fafb; }
.pm-gantt-modal-save { padding:8px 20px; border:none; background:#2aacba; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-gantt-modal-save:hover { background:#239aa6; }
.pm-gantt-modal-delete { padding:8px 20px; border:1px solid #dc2626; background:#fff; color:#dc2626; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-gantt-modal-delete:hover { background:#fef2f2; }

/* 详情弹窗 */
.pm-gantt-detail-header { display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.pm-gantt-detail-header h3 { margin:0; }
.pm-gantt-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:20px; }
@media(max-width:500px) { .pm-gantt-detail-grid { grid-template-columns:1fr; } }
.pm-gantt-detail-item { display:flex; flex-direction:column; gap:3px; }
.pm-gantt-detail-label { font-size:12px; color:#9ca3af; font-weight:500; }
.pm-gantt-detail-value { font-size:14px; color:#1f2937; }

/* 确认弹窗 */
.pm-gantt-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10001; display:flex; align-items:center; justify-content:center; }
.pm-gantt-confirm-box { background:#fff; border-radius:12px; padding:28px 32px; width:420px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); text-align:center; }
.pm-gantt-confirm-box p { font-size:15px; color:#1f2937; margin:0 0 24px; line-height:1.6; }
.pm-gantt-confirm-box .pm-gantt-confirm-actions { display:flex; justify-content:center; gap:12px; }

/* Tooltip */
.pm-gantt-tooltip { position:fixed; background:#1f2937; color:#fff; padding:8px 12px; border-radius:6px; font-size:12px; z-index:9999; pointer-events:none; white-space:nowrap; max-width:300px; box-shadow:0 4px 12px rgba(0,0,0,0.2); }
.pm-gantt-tooltip .pm-gantt-tooltip-title { font-weight:600; margin-bottom:4px; }
.pm-gantt-tooltip .pm-gantt-tooltip-line { color:#d1d5db; }

/* 甘特图内容区统一定位容器 */
.pm-gantt-rows-container { position:relative; }

/* ==================== V5.32.4: AI项目报告(pm_ai_report)样式 ==================== */

/* 报告状态标签（与全局对齐） */
.pm-status-tag.pm-status-draft { background:#fef3c7; color:#d97706; }
.pm-status-tag.pm-status-reviewed { background:#dbeafe; color:#2563eb; }
.pm-status-tag.pm-status-exported { background:#dcfce7; color:#16a34a; }

/* 容器 */
.pm-ai-report { display:flex; flex-direction:column; gap:20px; }

/* KPI卡片行 */
.pm-ai-report-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-ai-report-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-ai-report-kpi-row { grid-template-columns:1fr 1fr; } }

.pm-ai-report-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-ai-report-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-ai-report-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-ai-report-kpi .hkpi-info { display:flex; flex-direction:column; }
.pm-ai-report-kpi .hkpi-value { font-size:22px; font-weight:700; }
.pm-ai-report-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 一键生成区域 */
.pm-ai-report-gen { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.pm-ai-report-gen-title { font-size:15px; font-weight:600; color:#1f2937; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-ai-report-gen-title i { color:#0891B2; font-size:18px; }
.pm-ai-report-gen-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.pm-ai-report-gen-row label { font-size:13px; color:#6b7280; white-space:nowrap; min-width:70px; }
.pm-ai-report-gen-row select,
.pm-ai-report-gen-row input[type="date"] { padding:8px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; outline:none; min-height:44px; background:#fff; color:#374151; }
.pm-ai-report-gen-row select:focus,
.pm-ai-report-gen-row input[type="date"]:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-ai-report-gen-modules { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.pm-ai-report-gen-module-item { display:flex; align-items:center; gap:4px; font-size:13px; color:#374151; cursor:pointer; min-height:44px; padding:4px 0; }
.pm-ai-report-gen-module-item input[type="checkbox"] { width:16px; height:16px; accent-color:#0891B2; cursor:pointer; }
.pm-ai-report-gen-module-item label { cursor:pointer; }
.pm-ai-report-gen-actions { text-align:center; margin-top:8px; }
.pm-ai-report-gen-btn { padding:10px 32px; border-radius:8px; font-size:14px; font-weight:600; border:none; cursor:pointer; background:linear-gradient(135deg,#0891B2,#2aacba); color:#fff; transition:all 0.2s; min-height:44px; display:inline-flex; align-items:center; gap:6px; }
.pm-ai-report-gen-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(8,145,178,0.3); }
.pm-ai-report-gen-btn:disabled { opacity:0.6; cursor:not-allowed; transform:none; box-shadow:none; }
.pm-ai-report-gen-hint { font-size:12px; color:#9ca3af; text-align:center; margin-top:10px; }
.pm-ai-report-gen-hint i { color:#0891B2; margin-right:4px; }

/* 工具栏 */
.pm-ai-report-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-ai-report-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-ai-report-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-ai-report-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-ai-report-search input:focus { border-color:#0891B2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-ai-report-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:44px; }
.pm-ai-report-filter:focus { border-color:#0891B2; }

/* 报告列表表格 */
.pm-ai-report-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pm-ai-report-table-wrap table.pm-data-table thead th { position:sticky; top:0; z-index:1; }

/* 报告类型标签 */
.pm-ai-report-type-tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.pm-ai-report-type-tag.weekly { background:#dbeafe; color:#2563eb; }
.pm-ai-report-type-tag.monthly { background:#f0fdf4; color:#16a34a; }
.pm-ai-report-type-tag.quarterly { background:#faf5ff; color:#7c3aed; }

/* 模块标签 */
.pm-ai-report-module-tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; background:#f3f4f6; color:#6b7280; margin:1px 2px; white-space:nowrap; }

/* 操作按钮 */
.pm-ai-report-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.pm-ai-report-action-btn.view { color:#0891B2; }
.pm-ai-report-action-btn.view:hover { background:#f0fdf4; }
.pm-ai-report-action-btn.review { color:#2563eb; }
.pm-ai-report-action-btn.review:hover { background:#dbeafe; }
.pm-ai-report-action-btn.export { color:#16a34a; }
.pm-ai-report-action-btn.export:hover { background:#dcfce7; }
.pm-ai-report-action-btn.regenerate { color:#d97706; }
.pm-ai-report-action-btn.regenerate:hover { background:#fef3c7; }
.pm-ai-report-action-btn.delete { color:#dc2626; }
.pm-ai-report-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }

/* 报告标题链接 */
.pm-ai-report-title-link { color:#2563eb; cursor:pointer; font-weight:500; }
.pm-ai-report-title-link:hover { text-decoration:underline; }

/* 空状态 */
.pm-ai-report-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.pm-ai-report-empty i { font-size:48px; margin-bottom:16px; display:block; }
.pm-ai-report-empty p { font-size:14px; margin-bottom:8px; }

/* 报告详情页 */
.pm-ai-report-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-ai-report-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.pm-ai-report-detail-back:hover { background:#e5e7eb; }
.pm-ai-report-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.pm-ai-report-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pm-ai-report-detail-header h3 i { color:#0891B2; }
.pm-ai-report-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.pm-ai-report-detail-meta span { display:flex; align-items:center; gap:4px; }

/* 报告正文 */
.pm-ai-report-content { padding:20px; font-size:14px; line-height:1.8; color:#374151; }
.pm-ai-report-content h3 { font-size:16px; font-weight:600; color:#1f2937; margin:20px 0 10px; padding-bottom:6px; border-bottom:1px solid #e5e7eb; }
.pm-ai-report-content h3:first-child { margin-top:0; }
.pm-ai-report-content p { margin:8px 0; }
.pm-ai-report-content table { width:100%; border-collapse:collapse; margin:12px 0; font-size:13px; }
.pm-ai-report-content table th { background:#f9fafb; padding:8px 12px; text-align:left; font-weight:600; color:#374151; border:1px solid #e5e7eb; }
.pm-ai-report-content table td { padding:8px 12px; border:1px solid #e5e7eb; color:#4b5563; }
.pm-ai-report-content ul { padding-left:20px; margin:8px 0; }
.pm-ai-report-content ul li { margin:4px 0; }
.pm-ai-report-content strong { color:#1f2937; }

/* CSS柱状图 */
.pm-ai-chart { height:120px; display:flex; align-items:flex-end; gap:8px; padding:0 20px; margin:12px 0; }
.pm-ai-bar-item { display:flex; flex-direction:column; align-items:center; flex:1; height:100%; justify-content:flex-end; }
.pm-ai-bar { width:100%; max-width:48px; background:linear-gradient(180deg,#3b82f6,#93c5fd); border-radius:4px 4px 0 0; transition:height 0.3s; }
.pm-ai-bar-label { font-size:12px; color:#6b7280; margin-top:4px; text-align:center; line-height:1.4; }

/* CSS横向条形图 */
.pm-ai-report-budget-bar { margin:12px 0; }
.pm-ai-report-budget-item { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.pm-ai-report-budget-label { font-size:12px; color:#6b7280; width:60px; flex-shrink:0; text-align:right; }
.pm-ai-report-budget-bar-fill { height:16px; border-radius:4px; transition:width 0.3s; }
.pm-ai-report-budget-pct { font-size:12px; color:#374151; white-space:nowrap; }

/* 操作区（详情页底部固定） */
.pm-ai-report-detail-actions { display:flex; gap:10px; padding:16px 20px; border-top:1px solid #e5e7eb; background:#f9fafb; flex-wrap:wrap; }
.pm-ai-report-detail-actions button { padding:8px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; display:flex; align-items:center; gap:6px; }
.pm-ai-report-detail-actions .btn-review { background:#dbeafe; color:#2563eb; }
.pm-ai-report-detail-actions .btn-review:hover { background:#bfdbfe; }
.pm-ai-report-detail-actions .btn-export { background:#dcfce7; color:#16a34a; }
.pm-ai-report-detail-actions .btn-export:hover { background:#bbf7d0; }
.pm-ai-report-detail-actions .btn-regenerate { background:#fef3c7; color:#d97706; }
.pm-ai-report-detail-actions .btn-regenerate:hover { background:#fde68a; }
.pm-ai-report-detail-actions .btn-delete { background:#fee2e2; color:#dc2626; }
.pm-ai-report-detail-actions .btn-delete:hover { background:#fecaca; }

/* Loading动画 */
.pm-ai-loading { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(255,255,255,0.92); z-index:2000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; }
.pm-ai-loading-spinner { width:48px; height:48px; border:4px solid #e5e7eb; border-top-color:#0891B2; border-radius:50%; animation:pmAiSpin 0.8s linear infinite; }
@keyframes pmAiSpin { to { transform:rotate(360deg); } }
.pm-ai-loading-text { font-size:15px; color:#374151; font-weight:500; }
.pm-ai-loading-bar { width:240px; height:4px; background:#e5e7eb; border-radius:2px; overflow:hidden; }
.pm-ai-loading-fill { height:100%; background:linear-gradient(90deg,#0891B2,#2aacba); border-radius:2px; animation:pmAiLoadFill 2s linear forwards; }
@keyframes pmAiLoadFill { from { width:0; } to { width:100%; } }

/* 弹窗 */
.pm-ai-report-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-ai-report-modal { background:#fff; border-radius:12px; padding:28px 32px; width:460px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); }
.pm-ai-report-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-ai-report-modal h3 i { color:#0891B2; margin-right:8px; }
.pm-ai-report-modal-tip { background:#fef3c7; border:1px solid #fde68a; border-radius:8px; padding:10px 14px; font-size:13px; color:#92400e; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.pm-ai-report-modal-tip.danger { background:#fee2e2; border-color:#fecaca; color:#991b1b; }
.pm-ai-report-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }
.pm-ai-report-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.pm-ai-report-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.pm-ai-report-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.pm-ai-report-modal-actions .btn-confirm { background:#0891B2; color:#fff; }
.pm-ai-report-modal-actions .btn-confirm:hover { background:#449d43; }
.pm-ai-report-modal-actions .btn-danger { background:#dc2626; color:#fff; }
.pm-ai-report-modal-actions .btn-danger:hover { background:#b91c1c; }
.pm-ai-report-modal-export-option { display:flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid #e5e7eb; border-radius:8px; cursor:pointer; margin-bottom:8px; transition:all 0.15s; }
.pm-ai-report-modal-export-option:hover { border-color:#0891B2; background:#f0fdf4; }
.pm-ai-report-modal-export-option input[type="radio"] { accent-color:#0891B2; }
.pm-ai-report-modal-export-option.selected { border-color:#0891B2; background:#f0fdf4; }

/* 移动端适配 375px */
@media(max-width:500px) {
    .pm-ai-report-gen-row { flex-direction:column; align-items:stretch; }
    .pm-ai-report-gen-row label { min-width:unset; }
    .pm-ai-report-gen-row select,
    .pm-ai-report-gen-row input[type="date"] { width:100%; }
    .pm-ai-report-gen-modules { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
    .pm-ai-report-toolbar { flex-direction:column; align-items:stretch; }
    .pm-ai-report-search { max-width:100%; }
    .pm-ai-report-filter { width:100%; }

    /* 报告列表移动端卡片模式 */
    .pm-ai-report-table-wrap table.pm-data-table,
    .pm-ai-report-table-wrap table.pm-data-table thead,
    .pm-ai-report-table-wrap table.pm-data-table tbody,
    .pm-ai-report-table-wrap table.pm-data-table th,
    .pm-ai-report-table-wrap table.pm-data-table td,
    .pm-ai-report-table-wrap table.pm-data-table tr { display:block; }
    .pm-ai-report-table-wrap table.pm-data-table thead { display:none; }
    .pm-ai-report-table-wrap table.pm-data-table tr { margin-bottom:12px; border:1px solid #e5e7eb; border-radius:8px; padding:12px; background:#fff; }
    .pm-ai-report-table-wrap table.pm-data-table td { border:none; padding:4px 0; text-align:left !important; }
    .pm-ai-report-table-wrap table.pm-data-table td::before { content:attr(data-label); font-weight:600; color:#6b7280; font-size:12px; display:block; margin-bottom:2px; }
    .pm-ai-report-table-wrap table.pm-data-table td:last-child { padding-top:8px; border-top:1px solid #f3f4f6; }

    .pm-ai-report-detail-meta { flex-direction:column; gap:6px; }
    .pm-ai-report-detail-actions { flex-direction:column; }
    .pm-ai-report-detail-actions button { width:100%; justify-content:center; }
    .pm-ai-report-modal { width:95vw; padding:20px; }
    .pm-ai-report-content table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
}

/* ==================== V5.32.5: 供应商管理(pm_vendors)样式 ==================== */
.pm-vendors { display:flex; flex-direction:column; gap:20px; }
.pm-vendors-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .pm-vendors-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px) { .pm-vendors-kpi-row { grid-template-columns:1fr 1fr; } }
.pm-vendors-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.pm-vendors-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.pm-vendors-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pm-vendors-kpi .hkpi-info { display:flex; flex-direction:column; }
.pm-vendors-kpi .hkpi-value { font-size:22px; font-weight:700; }
.pm-vendors-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.pm-vendors-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.pm-vendors-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.pm-vendors-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.pm-vendors-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.pm-vendors-search input:focus { border-color:#0891b2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.pm-vendors-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.pm-vendors-filter:focus { border-color:#0891b2; }
.pm-vendors-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.pm-vendors-btn-add { background:#0891b2; color:#fff; }
.pm-vendors-btn-add:hover { background:#0e7490; transform:translateY(-1px); }
.pm-vendors-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.pm-vendors-btn-export:hover { border-color:#0891b2; color:#0891b2; background:#ecfeff; }

.pm-vendors-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.pm-vendors-table-wrap table.pm-data-table thead th { position:sticky; top:0; z-index:1; }
.ops-sponsor-top-scroll { overflow-x:auto; overflow-y:hidden; height:14px; margin:0 0 8px; border:1px solid #dbe5ef; border-radius:8px; background:#f8fafc; -webkit-overflow-scrolling:touch; touch-action:pan-x; }
.ops-sponsor-top-scroll-inner { width:980px; height:1px; }
.ops-sponsor-table-wrap { overflow-x:auto; overflow-y:visible; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.ops-sponsor-table-wrap.is-pan-ready { cursor:grab; }
.ops-sponsor-table-wrap.is-panning { cursor:grabbing; user-select:none; }
.ops-sponsor-table-wrap.is-panning * { user-select:none; }
.ops-sponsor-table-wrap table.pm-data-table { min-width:980px; }
.ops-sponsor-table-wrap table.pm-data-table thead th { position:static; top:auto; z-index:auto; }
.ops-sponsor-detail-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding-right:2px; }
.ops-sponsor-detail-title { min-width:0; }
.ops-sponsor-detail-title h3 { margin:0; }
.ops-sponsor-detail-title p { margin:4px 0 0; color:#64748b; line-height:1.55; }
.ops-sponsor-detail-head-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.ops-sponsor-modal-close { width:44px; height:44px; border:1px solid #dbe5ef; border-radius:12px; background:#fff; color:#475569; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:16px; }
.ops-sponsor-modal-close:hover { background:#f8fafc; color:#0f172a; border-color:#bfdbfe; }
@media(max-width:640px) { .ops-sponsor-detail-head { gap:10px; } .ops-sponsor-detail-head-actions { gap:8px; } .ops-sponsor-detail-head-actions .pm-site-scope-link { padding:0 12px; } }
.pm-vendors-id-link { color:#0891b2; cursor:pointer; font-weight:500; }
.pm-vendors-id-link:hover { text-decoration:underline; }
.pm-vendors-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.pm-vendors-action-btn.view { color:#0891b2; }
.pm-vendors-action-btn.view:hover { background:#ecfeff; }
.pm-vendors-action-btn.edit { color:#2563eb; }
.pm-vendors-action-btn.edit:hover { background:#dbeafe; }
.pm-vendors-action-btn.delete { color:#dc2626; }
.pm-vendors-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }
.ops-sponsor-click-row { cursor:pointer; outline:none; transition:background-color 0.15s, box-shadow 0.15s; }
.ops-sponsor-click-row:hover td { background:#eff6ff; }
.ops-sponsor-click-row:focus-visible td { background:#eff6ff; box-shadow:inset 0 0 0 2px #2563eb; }
.ops-sponsor-click-row .ops-sponsor-row-check,
.ops-sponsor-click-row .pm-vendors-action-btn { cursor:pointer; }
.ops-sponsor-detail-actions { justify-content:space-between; align-items:center; }
.ops-sponsor-delete-hint { color:#94a3b8; font-size:12px; }

.pm-vendors-guide-bar { background:#fef3c7; border:1px solid #fde68a; border-radius:8px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pm-vendors-guide-bar span { font-size:13px; color:#92400e; }
.pm-vendors-guide-bar button { background:none; border:none; cursor:pointer; color:#92400e; font-size:14px; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; border-radius:4px; }
.pm-vendors-guide-bar button:hover { background:rgba(146,64,14,0.1); }

.pm-vendors-detail { display:flex; flex-direction:column; gap:20px; }
.pm-vendors-detail-top { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px 24px; }
.pm-vendors-detail-back { display:flex; align-items:center; gap:6px; color:#0891b2; cursor:pointer; font-size:13px; font-weight:500; background:none; border:none; padding:4px 8px; min-height:44px; border-radius:4px; transition:all 0.15s; }
.pm-vendors-detail-back:hover { background:#ecfeff; }
.pm-vendors-detail-title-row { display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; }
.pm-vendors-detail-title { font-size:20px; font-weight:700; color:#1f2937; }
.pm-vendors-detail-meta { display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; font-size:13px; color:#6b7280; }
.pm-vendors-detail-meta span { display:flex; align-items:center; gap:4px; }
.pm-vendors-detail-actions { display:flex; gap:8px; margin-left:auto; align-items:center; }
.pm-vendors-detail-actions .pm-vendors-btn { font-size:12px; padding:6px 14px; }
.pm-vendors-status-dropdown { position:relative; display:inline-block; }
.pm-vendors-status-dropdown-menu { position:absolute; right:0; top:100%; background:#fff; border:1px solid #e5e7eb; border-radius:8px; box-shadow:0 4px 16px rgba(0,0,0,0.12); z-index:3000; min-width:140px; display:none; }
.pm-vendors-status-dropdown-menu.show { display:block; }
.pm-vendors-status-dropdown-item { display:block; width:100%; padding:10px 16px; font-size:13px; color:#374151; background:none; border:none; cursor:pointer; text-align:left; min-height:44px; }
.pm-vendors-status-dropdown-item:hover { background:#f9fafb; }

.pm-vendors-tabs { display:flex; gap:0; background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.pm-vendors-tab { flex:1; padding:12px 16px; text-align:center; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; background:none; min-height:44px; }
.pm-vendors-tab:hover { color:#0891b2; background:#f0fdfa; }
.pm-vendors-tab.active { color:#0891b2; border-bottom-color:#0891b2; background:#ecfeff; }

.pm-vendors-tab-content { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px 24px; }
.pm-vendors-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:500px) { .pm-vendors-info-grid { grid-template-columns:1fr; } }
.pm-vendors-info-item { display:flex; flex-direction:column; gap:2px; }
.pm-vendors-info-label { font-size:12px; color:#9ca3af; }
.pm-vendors-info-value { font-size:14px; color:#374151; }
.pm-vendors-info-value.link { color:#0891b2; cursor:pointer; }
.pm-vendors-info-value.link:hover { text-decoration:underline; }
.pm-vendors-info-value.expiring { color:#d97706; font-weight:600; }
.pm-vendors-info-value.expired { color:#dc2626; font-weight:600; }
.pm-vendors-info-full { grid-column:1/-1; }

.pm-vendors-qual-list { display:flex; flex-direction:column; gap:12px; }
.pm-vendors-qual-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:14px 16px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; align-items:center; }
@media(max-width:500px) { .pm-vendors-qual-card { grid-template-columns:1fr; } }
.pm-vendors-qual-field { display:flex; flex-direction:column; gap:2px; }
.pm-vendors-qual-field-label { font-size:11px; color:#9ca3af; }
.pm-vendors-qual-field-value { font-size:13px; color:#374151; }
.pm-vendors-qual-field-value.expiring { color:#d97706; font-weight:600; }
.pm-vendors-qual-field-value.expired { color:#dc2626; font-weight:600; }
.pm-vendors-qual-actions { display:flex; gap:6px; justify-content:flex-end; grid-column:-2/-1; }
@media(max-width:500px) { .pm-vendors-qual-actions { grid-column:auto; } }

.pm-vendors-ms-list { display:flex; flex-direction:column; gap:12px; }
.pm-vendors-ms-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:14px 16px; display:grid; grid-template-columns:repeat(4,1fr); gap:10px; align-items:center; position:relative; }
@media(max-width:500px) { .pm-vendors-ms-card { grid-template-columns:1fr; } }
.pm-vendors-ms-field { display:flex; flex-direction:column; gap:2px; }
.pm-vendors-ms-field-label { font-size:11px; color:#9ca3af; }
.pm-vendors-ms-field-value { font-size:13px; color:#374151; }
.pm-vendors-ms-field-value.overdue { color:#dc2626; font-weight:600; }
.pm-vendors-ms-actions { display:flex; gap:6px; justify-content:flex-end; grid-column:-2/-1; }
@media(max-width:500px) { .pm-vendors-ms-actions { grid-column:auto; } }

.pm-vendors-perf-list { display:flex; flex-direction:column; gap:12px; }
.pm-vendors-perf-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:14px 16px; }
.pm-vendors-perf-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.pm-vendors-perf-period { font-size:14px; font-weight:600; color:#1f2937; }
.pm-vendors-perf-scores { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:10px; }
@media(max-width:500px) { .pm-vendors-perf-scores { grid-template-columns:1fr 1fr; } }
.pm-vendors-perf-dim { display:flex; flex-direction:column; gap:4px; }
.pm-vendors-perf-dim-label { font-size:11px; color:#9ca3af; }
.pm-vendors-perf-dim-bar { height:6px; border-radius:3px; background:#e5e7eb; overflow:hidden; }
.pm-vendors-perf-dim-bar-fill { height:100%; border-radius:3px; transition:width 0.3s; }
.pm-vendors-perf-dim-val { font-size:13px; font-weight:600; color:#374151; }
.pm-vendors-perf-total { font-size:18px; font-weight:700; color:#0891b2; }
.pm-vendors-perf-meta { font-size:12px; color:#9ca3af; }

.pm-vendors-tab-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.pm-vendors-tab-header h4 { font-size:15px; font-weight:600; color:#1f2937; }

.pm-vendors-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.pm-vendors-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
@media(max-width:500px) { .pm-vendors-modal { width:95vw; padding:20px 16px; } }
.pm-vendors-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.pm-vendors-modal h3 i { color:#0891b2; margin-right:8px; }
.pm-vendors-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.pm-vendors-modal input, .pm-vendors-modal select, .pm-vendors-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.pm-vendors-modal input:focus, .pm-vendors-modal select:focus, .pm-vendors-modal textarea:focus { border-color:#0891b2; box-shadow:0 0 0 2px rgba(8,145,178,0.1); }
.pm-vendors-modal textarea { resize:vertical; min-height:80px; }
.pm-vendors-modal input[readonly], .pm-vendors-modal select[disabled] { background:#f9fafb; color:#6b7280; cursor:not-allowed; }
.pm-vendors-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:500px) { .pm-vendors-modal-row { grid-template-columns:1fr; } }
.pm-vendors-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.pm-vendors-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-vendors-modal-cancel:hover { background:#f9fafb; }
.pm-vendors-modal-save { padding:8px 20px; border:none; background:#0891b2; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-vendors-modal-save:hover { background:#0e7490; }
.pm-vendors-modal-save:disabled { background:#9ca3af; cursor:not-allowed; }
.pm-vendors-modal-delete { padding:8px 20px; border:none; background:#dc2626; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.pm-vendors-modal-delete:hover { background:#b91c1c; }

.pm-vendors-pool-modal { width:720px; max-width:95vw; }
@media(max-width:500px) { .pm-vendors-pool-modal { width:95vw; } }
.pm-vendors-modal-tabs { display:flex; gap:0; border-bottom:1px solid #e5e7eb; margin-bottom:16px; }
.pm-vendors-modal-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; background:none; border-left:none; border-right:none; border-top:none; min-height:44px; transition:all 0.2s; }
.pm-vendors-modal-tab.active { color:#0891b2; border-bottom-color:#0891b2; }
.pm-vendors-modal-tab:hover { color:#0891b2; }
.pm-vendors-pool-search-bar { display:flex; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.pm-vendors-pool-search-bar .pm-vendors-search { max-width:none; flex:1; }
.pm-vendors-pool-list { max-height:300px; overflow-y:auto; border:1px solid #e5e7eb; border-radius:8px; }
.pm-vendors-pool-item { display:grid; grid-template-columns:120px 160px 90px 80px 60px; gap:8px; padding:10px 14px; align-items:center; cursor:pointer; border-bottom:1px solid #f3f4f6; transition:all 0.15s; font-size:13px; }
.pm-vendors-pool-item:last-child { border-bottom:none; }
.pm-vendors-pool-item:hover { background:#f0fdfa; }
.pm-vendors-pool-item.selected { background:#ecfeff; border:2px solid #0891b2; }
.pm-vendors-pool-item.linked { opacity:0.5; cursor:not-allowed; }
.pm-vendors-pool-header { display:grid; grid-template-columns:120px 160px 90px 80px 60px; gap:8px; padding:10px 14px; background:#f9fafb; font-size:12px; font-weight:600; color:#6b7280; border-bottom:1px solid #e5e7eb; }

.pm-vendors-star { color:#fbbf24; font-size:12px; }
.pm-vendors-star-empty { color:#d1d5db; font-size:12px; }
.pm-vendors-rating-tag { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.pm-vendors-rating-tag.a { background:#dcfce7; color:#16a34a; }
.pm-vendors-rating-tag.b { background:#dbeafe; color:#2563eb; }
.pm-vendors-rating-tag.c { background:#fef3c7; color:#d97706; }
.pm-vendors-rating-tag.d { background:#fee2e2; color:#dc2626; }

.pm-vendors-empty { text-align:center; padding:40px; color:#9ca3af; }
.pm-vendors-empty i { font-size:40px; margin-bottom:12px; display:block; }
.pm-vendors-empty-title { font-size:15px; font-weight:500; }
.pm-vendors-empty-desc { font-size:13px; margin-top:4px; }

.pm-vendors-payment-warn { color:#dc2626; font-size:12px; margin-top:-8px; margin-bottom:10px; }

.pm-vendors-ops-deleted-tag { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; background:#fee2e2; color:#dc2626; margin-left:6px; }

.pm-vendors-date-warn { color:#dc2626; font-size:12px; margin-top:-8px; margin-bottom:10px; }

.pm-vendors-file-list { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.pm-vendors-file-item { display:flex; align-items:center; gap:8px; font-size:13px; color:#374151; background:#f9fafb; padding:6px 10px; border-radius:6px; }
.pm-vendors-file-item .pm-vendors-file-remove { cursor:pointer; color:#dc2626; font-size:12px; margin-left:auto; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; }

/* ==================== V5.33.0: 人员资源(ops_hr)样式 ==================== */

/* 综合管理架构 - 子模块详情容器 */
.ops-sub-detail-view { display:none; padding:var(--app-topbar-height) 0 0; min-height:100vh; box-sizing:border-box; background:#f4f9fb; }
.ops-sub-header { display:flex; align-items:center; gap:14px; margin:0 20px 14px; padding:16px 20px; border:1px solid #dbeafe; border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.04); }
.ops-sub-header-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.ops-sub-header-main { min-width:0; flex:1; display:flex; flex-direction:column; gap:4px; }
.ops-sub-header h3 { font-size:18px; font-weight:700; color:#1f2937; margin:0; }
.ops-sub-header small { font-size:13px; color:#6b7280; line-height:1.5; }
.ops-sub-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; border:1px solid #e5e7eb; border-radius:8px; background:#fff; transition:all 0.2s; min-height:44px; margin-left:auto; }
.ops-sub-back:hover { color:#7c3aed; border-color:#7c3aed; background:#faf5ff; }
.ops-sub-breadcrumb { font-size:12px; color:#9ca3af; padding:8px 20px; background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.ops-sub-breadcrumb a { color:#7c3aed; cursor:pointer; text-decoration:none; }
.ops-sub-breadcrumb a:hover { text-decoration:underline; }
.ops-sub-breadcrumb .bc-sep { margin:0 6px; color:#d1d5db; }
.ops-sub-breadcrumb .bc-current { color:#1f2937; font-weight:500; }

/* 综合管理侧边栏分组 */
.sidebar-sub-divider { font-size:10px; color:#9CA3AF; font-weight:600; padding:8px 20px 4px 52px; text-transform:uppercase; letter-spacing:0.5px; user-select:none; }

/* 容器 */
.ops-hr { display:flex; flex-direction:column; gap:16px; }

/* KPI卡片行 */
.ops-hr-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.ops-hr-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-hr-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-hr-kpi .ops-hr-kpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-hr-kpi .ops-hr-kpi-info { display:flex; flex-direction:column; }
.ops-hr-kpi .ops-hr-kpi-value { font-size:22px; font-weight:700; line-height:1.2; }
.ops-hr-kpi .ops-hr-kpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 工具栏 */
.ops-hr-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 0; }
.ops-hr-search { position:relative; flex:1; min-width:200px; max-width:360px; }
.ops-hr-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-hr-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; }
.ops-hr-search input:focus { border-color:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,0.1); }
.ops-hr-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; min-width:100px; min-height:44px; }
.ops-hr-filter:focus { border-color:#7c3aed; }
.ops-hr-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.ops-hr-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-hr-btn-export:hover { border-color:#7c3aed; color:#7c3aed; background:#faf5ff; }

/* 表格区 */
.ops-hr-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-hr-table-wrap .pm-data-table { margin:0; border:none; border-radius:0; }

/* 工号可点击 */
.ops-hr-id-link { color:#7c3aed; cursor:pointer; font-weight:500; text-decoration:none; }
.ops-hr-id-link:hover { text-decoration:underline; }

/* 负载进度条 */
.ops-hr-workload-bar { display:flex; align-items:center; gap:6px; }
.ops-hr-workload-bar-track { width:60px; height:6px; background:#e5e7eb; border-radius:3px; overflow:hidden; }
.ops-hr-workload-bar-fill { height:100%; border-radius:3px; transition:width 0.3s; }
.ops-hr-workload-text { font-size:12px; white-space:nowrap; }
.ops-hr-workload-text.light { color:#16a34a; }
.ops-hr-workload-text.normal { color:#2563eb; }
.ops-hr-workload-text.heavy { color:#d97706; }
.ops-hr-workload-text.overload { color:#dc2626; }

/* 项目列表标签 */
.ops-hr-project-tags { display:flex; flex-wrap:wrap; gap:4px; }
.ops-hr-project-tag { display:inline-block; padding:2px 8px; border-radius:12px; font-size:11px; background:#f3f4f6; color:#6b7280; white-space:nowrap; }
.ops-hr-project-more { display:inline-block; padding:2px 8px; border-radius:12px; font-size:11px; background:#ede9fe; color:#7c3aed; white-space:nowrap; cursor:pointer; font-weight:600; }

/* 参与项目数可点击 */
.ops-hr-count-link { color:#7c3aed; cursor:pointer; font-weight:600; text-decoration:none; }
.ops-hr-count-link:hover { text-decoration:underline; }

/* 操作按钮 */
.ops-hr-action { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:6px; font-size:12px; cursor:pointer; border:none; background:transparent; transition:all 0.15s; min-height:32px; }
.ops-hr-action-view { color:#2563eb; }
.ops-hr-action-view:hover { background:#dbeafe; }
.ops-hr-action-transfer { color:#7c3aed; }
.ops-hr-action-transfer:hover { background:#ede9fe; }

/* ---- 详情页 ---- */
.ops-hr-detail { display:flex; flex-direction:column; gap:16px; }
.ops-hr-detail-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ops-hr-detail-title { display:flex; align-items:center; gap:12px; }
.ops-hr-detail-title h3 { font-size:18px; font-weight:700; color:#1f2937; margin:0; }
.ops-hr-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; border:1px solid #e5e7eb; border-radius:8px; background:#fff; transition:all 0.2s; min-height:44px; }
.ops-hr-detail-back:hover { color:#7c3aed; border-color:#7c3aed; background:#faf5ff; }

/* 详情Tab */
.ops-hr-detail-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; }
.ops-hr-detail-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.ops-hr-detail-tab:hover { color:#7c3aed; }
.ops-hr-detail-tab.active { color:#7c3aed; border-bottom-color:#7c3aed; font-weight:600; }

/* 详情字段 */
.ops-hr-detail-fields { display:grid; grid-template-columns:repeat(2,1fr); gap:16px 24px; padding:20px 0; }
.ops-hr-detail-field { display:flex; flex-direction:column; gap:4px; }
.ops-hr-detail-field label { font-size:12px; color:#6b7280; font-weight:500; }
.ops-hr-detail-field span { font-size:14px; color:#1f2937; word-break:break-all; }
.ops-hr-detail-field.full { grid-column:1/-1; }
.ops-hr-detail-field a { color:#7c3aed; text-decoration:none; }
.ops-hr-detail-field a:hover { text-decoration:underline; }

/* 项目参与表格 */
.ops-hr-projects-table { padding:0; }
.ops-hr-project-link { color:#7c3aed; cursor:pointer; text-decoration:none; font-weight:500; }
.ops-hr-project-link:hover { text-decoration:underline; }

/* 调配记录时间线 */
.ops-hr-timeline { padding:16px 0; position:relative; }
.ops-hr-timeline-item { display:flex; gap:16px; padding-bottom:20px; position:relative; }
.ops-hr-timeline-item:last-child { padding-bottom:0; }
.ops-hr-timeline-dot { width:12px; height:12px; border-radius:50%; border:2px solid #7c3aed; background:#fff; flex-shrink:0; margin-top:4px; position:relative; z-index:1; }
.ops-hr-timeline-dot.approved { background:#16a34a; border-color:#16a34a; }
.ops-hr-timeline-dot.pending { background:#fef3c7; border-color:#d97706; }
.ops-hr-timeline-dot.rejected { background:#fee2e2; border-color:#dc2626; }
.ops-hr-timeline-item:not(:last-child) .ops-hr-timeline-dot::after { content:''; position:absolute; left:50%; top:14px; width:2px; height:calc(100% + 8px); background:#e5e7eb; transform:translateX(-50%); z-index:0; }
.ops-hr-timeline-content { flex:1; }
.ops-hr-timeline-date { font-size:12px; color:#9ca3af; margin-bottom:4px; }
.ops-hr-timeline-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:4px; }
.ops-hr-timeline-desc { font-size:13px; color:#6b7280; line-height:1.6; }

/* 工作量统计 */
.ops-hr-chart-bar-wrap { display:flex; align-items:flex-end; gap:12px; height:160px; padding:16px 0; border-bottom:1px solid #e5e7eb; margin-bottom:16px; }
.ops-hr-chart-bar-item { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; }
.ops-hr-chart-bar { width:100%; max-width:40px; border-radius:4px 4px 0 0; transition:height 0.3s; position:relative; }
.ops-hr-chart-bar-label { font-size:11px; color:#9ca3af; }
.ops-hr-chart-bar-value { font-size:11px; color:#6b7280; font-weight:600; }

/* ---- 弹窗 ---- */
.ops-hr-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:9999; display:flex; align-items:center; justify-content:center; }
.ops-hr-modal { background:#fff; border-radius:16px; padding:24px; width:90%; max-height:85vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.15); }
.ops-hr-modal h3 { font-size:16px; font-weight:700; color:#1f2937; margin:0 0 16px 0; }
.ops-hr-modal-form { display:grid; grid-template-columns:1fr; gap:14px 20px; }
.ops-hr-modal-field { display:flex; flex-direction:column; gap:4px; }
.ops-hr-modal-field.full { grid-column:1/-1; }
.ops-hr-modal-field label { font-size:12px; color:#6b7280; font-weight:500; }
.ops-hr-modal-field label .required { color:#dc2626; margin-left:2px; }
.ops-hr-modal-field input,
.ops-hr-modal-field select,
.ops-hr-modal-field textarea { width:100%; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; min-height:44px; box-sizing:border-box; }
.ops-hr-modal-field textarea { min-height:72px; resize:vertical; }
.ops-hr-modal-field input:focus,
.ops-hr-modal-field select:focus,
.ops-hr-modal-field textarea:focus { border-color:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,0.1); }
.ops-hr-modal-field input[readonly] { background:#f9fafb; color:#6b7280; }
.ops-hr-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.ops-hr-modal-actions button { padding:8px 20px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; transition:all 0.2s; min-height:44px; }
.ops-hr-modal-cancel { background:#f3f4f6; color:#374151; }
.ops-hr-modal-cancel:hover { background:#e5e7eb; }
.ops-hr-modal-save { background:#7c3aed; color:#fff; }
.ops-hr-modal-save:hover { background:#6d28d9; }

/* 确认弹窗 */
.ops-hr-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-hr-confirm { background:#fff; border-radius:16px; padding:24px; width:90%; max-width:420px; box-shadow:0 20px 60px rgba(0,0,0,0.15); text-align:center; }
.ops-hr-confirm h4 { font-size:15px; font-weight:600; color:#1f2937; margin:0 0 10px 0; }
.ops-hr-confirm p { font-size:13px; color:#6b7280; margin:0 0 20px 0; line-height:1.6; }
.ops-hr-confirm-actions { display:flex; justify-content:center; gap:10px; }
.ops-hr-confirm-actions button { padding:8px 24px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; min-height:44px; }
.ops-hr-confirm-cancel { background:#f3f4f6; color:#374151; }
.ops-hr-confirm-cancel:hover { background:#e5e7eb; }
.ops-hr-confirm-ok { background:#7c3aed; color:#fff; }
.ops-hr-confirm-ok:hover { background:#6d28d9; }

/* 空状态 */
.ops-hr-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.ops-hr-empty i { font-size:48px; margin-bottom:16px; display:block; }

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
    .ops-hr-kpi-row { grid-template-columns:repeat(2,1fr); }
    .ops-hr-kpi { padding:12px; }
    .ops-hr-kpi .ops-hr-kpi-icon { width:36px; height:36px; font-size:15px; }
    .ops-hr-kpi .ops-hr-kpi-value { font-size:18px; }
    .ops-hr-toolbar { flex-direction:column; align-items:stretch; }
    .ops-hr-search { max-width:100%; min-width:0; }
    .ops-hr-filter { width:100%; }
    .ops-hr-btn { width:100%; justify-content:center; }
    .ops-hr-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .ops-hr-table-wrap .pm-data-table { display:block; }
    .ops-hr-modal { max-width:calc(100% - 16px); margin:0 8px; }
    .ops-hr-detail-fields { grid-template-columns:1fr; }
    .ops-hr-workload-bar-track { width:40px; }
}

/* ==================== V5.33.1: 培训管理(ops_training)样式 ==================== */

/* 容器 */
.ops-training { display:flex; flex-direction:column; gap:16px; }

/* KPI卡片行 */
.ops-training-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.ops-training-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-training-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-training-kpi .ops-training-kpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-training-kpi .ops-training-kpi-info { display:flex; flex-direction:column; }
.ops-training-kpi .ops-training-kpi-value { font-size:22px; font-weight:700; line-height:1.2; }
.ops-training-kpi .ops-training-kpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 工具栏 */
.ops-training-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 0; }
.ops-training-search { position:relative; flex:1; min-width:200px; max-width:360px; }
.ops-training-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-training-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; }
.ops-training-search input:focus { border-color:#0891b2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.ops-training-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; min-width:100px; min-height:44px; }
.ops-training-filter:focus { border-color:#0891b2; }
.ops-training-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.ops-training-btn-add { background:#0891b2; color:#fff; }
.ops-training-btn-add:hover { background:#0e7490; transform:translateY(-1px); }
.ops-training-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-training-btn-export:hover { border-color:#0891b2; color:#0891b2; background:#ecfeff; }

/* 表格区 */
.ops-training-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-training-table-wrap .pm-data-table { margin:0; border:none; border-radius:0; }

/* 培训类型标签 */
.ops-training-type-tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.ops-training-type-tag.gcp { background:#f0fdf4; color:#16a34a; }
.ops-training-type-tag.sop { background:#faf5ff; color:#7c3aed; }
.ops-training-type-tag.protocol { background:#dbeafe; color:#2563eb; }
.ops-training-type-tag.safety { background:#fef2f2; color:#dc2626; }
.ops-training-type-tag.skill { background:#ecfeff; color:#0891b2; }
.ops-training-type-tag.other { background:#f3f4f6; color:#6b7280; }

/* 编号可点击 */
.ops-training-id-link { color:#0891b2; cursor:pointer; font-weight:500; text-decoration:none; }
.ops-training-id-link:hover { text-decoration:underline; }

/* 项目名称可点击 */
.ops-training-project-link { color:#0891b2; cursor:pointer; text-decoration:none; }
.ops-training-project-link:hover { text-decoration:underline; }

/* 完成率进度条 */
.ops-training-progress { display:flex; align-items:center; gap:6px; }
.ops-training-progress-bar { flex:1; height:6px; background:#e5e7eb; border-radius:3px; overflow:hidden; min-width:40px; }
.ops-training-progress-fill { height:100%; border-radius:3px; transition:width 0.3s; }
.ops-training-progress-text { font-size:12px; color:#6b7280; white-space:nowrap; min-width:32px; }

/* 参训人数 */
.ops-training-attendee-count { font-size:13px; }
.ops-training-attendee-count .absent { color:#dc2626; font-weight:600; }

/* 操作按钮 */
.ops-training-action { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:6px; font-size:12px; cursor:pointer; border:none; background:transparent; transition:all 0.15s; min-height:32px; }
.ops-training-action-view { color:#2563eb; }
.ops-training-action-view:hover { background:#dbeafe; }
.ops-training-action-edit { color:#d97706; }
.ops-training-action-edit:hover { background:#fef3c7; }
.ops-training-action-delete { color:#dc2626; }
.ops-training-action-delete:hover { background:#fee2e2; }

/* ---- 详情页 ---- */
.ops-training-detail { display:flex; flex-direction:column; gap:16px; }
.ops-training-detail-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ops-training-detail-title { display:flex; align-items:center; gap:12px; }
.ops-training-detail-title h3 { font-size:18px; font-weight:700; color:#1f2937; margin:0; }
.ops-training-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; border:1px solid #e5e7eb; border-radius:8px; background:#fff; transition:all 0.2s; min-height:44px; }
.ops-training-detail-back:hover { color:#0891b2; border-color:#0891b2; background:#ecfeff; }

/* 详情Tab */
.ops-training-detail-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; }
.ops-training-detail-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.ops-training-detail-tab:hover { color:#0891b2; }
.ops-training-detail-tab.active { color:#0891b2; border-bottom-color:#0891b2; font-weight:600; }

/* 详情字段 */
.ops-training-detail-fields { display:grid; grid-template-columns:repeat(2,1fr); gap:16px 24px; padding:20px 0; }
.ops-training-detail-field { display:flex; flex-direction:column; gap:4px; }
.ops-training-detail-field label { font-size:12px; color:#6b7280; font-weight:500; }
.ops-training-detail-field span { font-size:14px; color:#1f2937; word-break:break-all; }
.ops-training-detail-field.full { grid-column:1/-1; }
.ops-training-detail-field a { color:#0891b2; text-decoration:none; }
.ops-training-detail-field a:hover { text-decoration:underline; }

/* 参训人员汇总 */
.ops-training-attendee-summary { display:flex; gap:16px; padding:12px 16px; background:#f9fafb; border-radius:8px; font-size:13px; color:#6b7280; margin-top:12px; }
.ops-training-attendee-summary span { font-weight:600; color:#1f2937; }

/* 培训记录时间线 */
.ops-training-timeline { padding:16px 0; position:relative; }
.ops-training-timeline-item { display:flex; gap:16px; padding-bottom:20px; position:relative; }
.ops-training-timeline-item:last-child { padding-bottom:0; }
.ops-training-timeline-dot { width:12px; height:12px; border-radius:50%; border:2px solid #0891b2; background:#fff; flex-shrink:0; margin-top:4px; position:relative; z-index:1; }
.ops-training-timeline-dot.created { background:#dbeafe; border-color:#2563eb; }
.ops-training-timeline-dot.notified { background:#fef3c7; border-color:#d97706; }
.ops-training-timeline-dot.started { background:#dcfce7; border-color:#16a34a; }
.ops-training-timeline-dot.examined { background:#ede9fe; border-color:#7c3aed; }
.ops-training-timeline-dot.completed { background:#dcfce7; border-color:#16a34a; }
.ops-training-timeline-dot.cancelled { background:#fee2e2; border-color:#dc2626; }
.ops-training-timeline-item:not(:last-child) .ops-training-timeline-dot::after { content:''; position:absolute; left:50%; top:14px; width:2px; height:calc(100% + 8px); background:#e5e7eb; transform:translateX(-50%); z-index:0; }
.ops-training-timeline-content { flex:1; }
.ops-training-timeline-date { font-size:12px; color:#9ca3af; margin-bottom:4px; }
.ops-training-timeline-title { font-size:14px; font-weight:600; color:#1f2937; margin-bottom:2px; }
.ops-training-timeline-desc { font-size:13px; color:#6b7280; }

/* 详情状态操作按钮 */
.ops-training-status-actions { display:flex; gap:10px; padding-top:16px; }
.ops-training-status-btn { padding:10px 24px; border-radius:8px; font-size:13px; font-weight:600; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.ops-training-status-btn.start { background:#0891b2; color:#fff; }
.ops-training-status-btn.start:hover { background:#0e7490; }
.ops-training-status-btn.complete { background:#16a34a; color:#fff; }
.ops-training-status-btn.complete:hover { background:#15803d; }
.ops-training-status-btn.cancel { background:#dc2626; color:#fff; }
.ops-training-status-btn.cancel:hover { background:#b91c1c; }

/* ---- 弹窗 ---- */
.ops-training-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:9999; display:flex; align-items:center; justify-content:center; }
.ops-training-modal { background:#fff; border-radius:16px; padding:24px; width:90%; max-height:85vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.15); }
.ops-training-modal h3 { font-size:16px; font-weight:700; color:#1f2937; margin:0 0 16px 0; }
.ops-training-modal-form { display:grid; grid-template-columns:repeat(2,1fr); gap:14px 20px; }
.ops-training-modal-row { display:contents; }
.ops-training-modal-field { display:flex; flex-direction:column; gap:4px; }
.ops-training-modal-field.full { grid-column:1/-1; }
.ops-training-modal-field label { font-size:12px; color:#6b7280; font-weight:500; }
.ops-training-modal-field label .required { color:#dc2626; margin-left:2px; }
.ops-training-modal-field input,
.ops-training-modal-field select,
.ops-training-modal-field textarea { width:100%; padding:8px 12px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; min-height:44px; box-sizing:border-box; }
.ops-training-modal-field textarea { min-height:72px; resize:vertical; }
.ops-training-modal-field input:focus,
.ops-training-modal-field select:focus,
.ops-training-modal-field textarea:focus { border-color:#0891b2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.ops-training-modal-field input[readonly] { background:#f9fafb; color:#6b7280; }
.ops-training-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; grid-column:1/-1; }
.ops-training-modal-actions button { padding:8px 20px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; transition:all 0.2s; min-height:44px; }
.ops-training-modal-cancel { background:#f3f4f6; color:#374151; }
.ops-training-modal-cancel:hover { background:#e5e7eb; }
.ops-training-modal-save { background:#0891b2; color:#fff; }
.ops-training-modal-save:hover { background:#0e7490; }

/* 参训人chip标签 */
.ops-training-chips { display:flex; flex-wrap:wrap; gap:6px; min-height:44px; padding:6px 8px; border:1px solid #e5e7eb; border-radius:8px; align-items:center; }
.ops-training-chip { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; background:#ecfeff; color:#0891b2; border-radius:16px; font-size:12px; font-weight:500; }
.ops-training-chip .ops-training-chip-remove { cursor:pointer; font-size:14px; color:#9ca3af; line-height:1; }
.ops-training-chip .ops-training-chip-remove:hover { color:#dc2626; }
.ops-training-chip-add { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border:1px dashed #0891b2; color:#0891b2; border-radius:16px; font-size:12px; cursor:pointer; background:transparent; }
.ops-training-chip-add:hover { background:#ecfeff; }

/* 确认弹窗 */
.ops-training-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-training-confirm { background:#fff; border-radius:16px; padding:24px; width:90%; max-width:420px; box-shadow:0 20px 60px rgba(0,0,0,0.15); text-align:center; }
.ops-training-confirm h4 { font-size:15px; font-weight:600; color:#1f2937; margin:0 0 10px 0; }
.ops-training-confirm p { font-size:13px; color:#6b7280; margin:0 0 20px 0; line-height:1.6; }
.ops-training-confirm-actions { display:flex; justify-content:center; gap:10px; }
.ops-training-confirm-actions button { padding:8px 24px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; min-height:44px; }
.ops-training-confirm-cancel { background:#f3f4f6; color:#374151; }
.ops-training-confirm-cancel:hover { background:#e5e7eb; }
.ops-training-confirm-ok { background:#0891b2; color:#fff; }
.ops-training-confirm-ok:hover { background:#0e7490; }
.ops-training-confirm-danger { background:#dc2626; color:#fff; }
.ops-training-confirm-danger:hover { background:#b91c1c; }

/* 取消培训弹窗 */
.ops-training-cancel-modal { max-width:450px; }
.ops-training-cancel-modal .ops-training-modal-form { grid-template-columns:1fr; }

/* 参训人选择弹窗 */
.ops-training-add-attendee-modal { max-width:400px; }
.ops-training-add-attendee-search { position:relative; margin-bottom:12px; }
.ops-training-add-attendee-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-training-add-attendee-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; min-height:44px; box-sizing:border-box; }
.ops-training-add-attendee-search input:focus { border-color:#0891b2; }
.ops-training-add-attendee-list { max-height:240px; overflow-y:auto; border:1px solid #e5e7eb; border-radius:8px; }
.ops-training-add-attendee-item { display:flex; align-items:center; gap:10px; padding:8px 12px; border-bottom:1px solid #f3f4f6; font-size:13px; min-height:44px; }
.ops-training-add-attendee-item:last-child { border-bottom:none; }
.ops-training-add-attendee-item:hover { background:#ecfeff; }
.ops-training-add-attendee-item input[type="checkbox"] { width:16px; height:16px; cursor:pointer; }
.ops-training-add-attendee-item .item-info { flex:1; }
.ops-training-add-attendee-item .item-name { font-weight:500; color:#1f2937; }
.ops-training-add-attendee-item .item-dept { font-size:11px; color:#9ca3af; }

/* 空状态 */
.ops-training-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.ops-training-empty i { font-size:48px; margin-bottom:16px; display:block; }

/* 参训人员卡片模式(移动端) */
.ops-training-attendee-card { background:#f9fafb; border-radius:8px; padding:12px; margin-bottom:8px; border:1px solid #e5e7eb; }

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
    .ops-training-kpi-row { grid-template-columns:repeat(2,1fr); }
    .ops-training-kpi { padding:12px; }
    .ops-training-kpi .ops-training-kpi-icon { width:36px; height:36px; font-size:15px; }
    .ops-training-kpi .ops-training-kpi-value { font-size:18px; }
    .ops-training-toolbar { flex-direction:column; align-items:stretch; }
    .ops-training-search { max-width:100%; min-width:0; }
    .ops-training-filter { width:100%; }
    .ops-training-btn { width:100%; justify-content:center; }
    .ops-training-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .ops-training-table-wrap .pm-data-table { display:block; }
    .ops-training-modal { max-width:calc(100% - 16px); margin:0 8px; }
    .ops-training-modal-form { grid-template-columns:1fr; }
    .ops-training-detail-fields { grid-template-columns:1fr; }
    .ops-training-progress-bar { display:none; }
}

/* ==================== V5.33.2: 文档管理(ops_docs)样式 ==================== */
/* ==================== ops_docs 文档管理 V2.0 样式 ==================== */
.ops-docs { display:flex; flex-direction:column; gap:20px; }

/* 页面标题栏 */
.ops-docs-page-header { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px 20px; }
.ops-docs-page-title { font-size:18px; font-weight:700; color:#1f2937; display:flex; align-items:center; gap:10px; }
.ops-docs-page-title i { color:#059669; }
.ops-docs-subtitle { font-size:14px; font-weight:400; color:#9ca3af; }

/* 返回按钮 */
.ops-docs-back-btn { width:32px; height:32px; border-radius:8px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; color:#6b7280; }
.ops-docs-back-btn:hover { background:#f3f4f6; color:#059669; border-color:#059669; }

/* 项目卡片网格 */
.ops-docs-project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px; }
.ops-docs-project-card { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; cursor:pointer; transition:all 0.25s; position:relative; }
.ops-docs-project-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,0.08); border-color:#059669; }
.ops-docs-project-card-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.ops-docs-phase-tag { padding:3px 10px; border-radius:6px; font-size:12px; font-weight:600; }
.ops-docs-project-card-name { font-size:16px; font-weight:700; color:#1f2937; margin-bottom:10px; }
.ops-docs-project-card-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:13px; color:#6b7280; margin-bottom:8px; }
.ops-docs-project-card-meta i { margin-right:4px; color:#9ca3af; }
.ops-docs-project-card-centers { font-size:13px; color:#6b7280; margin-bottom:14px; padding-top:8px; border-top:1px solid #f3f4f6; }
.ops-docs-project-card-centers i { margin-right:4px; color:#059669; }
.ops-docs-project-card-footer { font-size:13px; font-weight:500; color:#059669; display:flex; align-items:center; gap:6px; }
.ops-docs-project-card-footer i { font-size:11px; transition:transform 0.2s; }
.ops-docs-project-card:hover .ops-docs-project-card-footer i { transform:translateX(4px); }

/* 占位提示 */
.ops-docs-placeholder { text-align:center; padding:60px 20px; color:#9ca3af; }
.ops-docs-placeholder i { font-size:48px; margin-bottom:16px; display:block; color:#d1d5db; }
.ops-docs-placeholder .title { font-size:16px; font-weight:500; color:#6b7280; }
.ops-docs-placeholder .desc { font-size:13px; margin-top:6px; }

/* 通用弹窗(保留) */
.ops-docs-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-docs-modal { background:#fff; border-radius:12px; padding:28px 32px; width:650px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.ops-docs-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.ops-docs-modal h3 i { color:#059669; margin-right:8px; }
.ops-docs-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.ops-docs-modal input, .ops-docs-modal select, .ops-docs-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.ops-docs-modal input:focus, .ops-docs-modal select:focus, .ops-docs-modal textarea:focus { border-color:#059669; box-shadow:0 0 0 2px rgba(5,150,105,0.1); }
.ops-docs-modal textarea { resize:vertical; min-height:80px; }
.ops-docs-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:500px) { .ops-docs-modal-row { grid-template-columns:1fr; } }
.ops-docs-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.ops-docs-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-docs-modal-cancel:hover { background:#f9fafb; }
.ops-docs-modal-save { padding:8px 20px; border:none; background:#059669; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-docs-modal-save:hover { background:#047857; }
.ops-docs-modal-delete { padding:8px 20px; border:none; background:#dc2626; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-docs-modal-delete:hover { background:#b91c1c; }

/* 仪表盘 */
.ops-docs-dashboard { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.ops-docs-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
@media(max-width:900px) { .ops-docs-kpi-row { grid-template-columns:repeat(2,1fr); } }
.ops-docs-kpi { background:#fff; border-radius:10px; border:1px solid #e5e7eb; padding:14px 12px; display:flex; align-items:center; gap:12px; transition:all 0.2s; }
.ops-docs-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-docs-kpi .hkpi-icon { width:38px; height:38px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.ops-docs-kpi .hkpi-info { display:flex; flex-direction:column; }
.ops-docs-kpi .hkpi-value { font-size:20px; font-weight:700; }
.ops-docs-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.ops-docs-chart-alerts { display:flex; gap:20px; align-items:flex-start; }
.ops-docs-donut-wrap { position:relative; width:200px; height:200px; flex-shrink:0; }
.ops-docs-donut-wrap canvas { width:200px; height:200px; }
.cr-docs-donut-center { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; }
.cr-docs-donut-pct { font-size:28px; font-weight:700; color:#059669; }
.cr-docs-donut-label { font-size:11px; color:#9ca3af; }
.ops-docs-alerts { flex:1; display:flex; flex-direction:column; gap:8px; }
.ops-docs-alert-item { display:flex; align-items:center; gap:8px; padding:8px 12px; background:#f9fafb; border-radius:8px; font-size:13px; color:#374151; }
.ops-docs-alert-item i { font-size:14px; flex-shrink:0; }
.ops-docs-alert-item span { line-height:1.4; }

/* 分类Tab */
.ops-docs-category-tabs { display:flex; gap:0; background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-docs-category-tab { padding:12px 24px; font-size:14px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:3px solid transparent; transition:all 0.2s; text-align:center; flex:1; }
.ops-docs-category-tab:hover { background:#f9fafb; color:#059669; }
.ops-docs-category-tab.active { color:#059669; border-bottom-color:#059669; background:#f0fdf4; font-weight:600; }

/* 筛选栏 */
.ops-docs-tmf-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.ops-docs-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.ops-docs-filter:focus { border-color:#059669; }
.ops-docs-search { position:relative; flex:1; min-width:160px; max-width:280px; }
.ops-docs-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-docs-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.ops-docs-search input:focus { border-color:#059669; box-shadow:0 0 0 3px rgba(5,150,105,0.1); }
.ops-docs-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.ops-docs-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-docs-btn-export:hover { background:#f9fafb; border-color:#059669; color:#059669; }

/* 三级折叠表格 */
.ops-docs-tmf-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; }
.cr-docs-tmf-table { width:100%; border-collapse:collapse; font-size:13px; min-width:1400px; }
.cr-docs-tmf-table thead { position:sticky; top:0; z-index:2; }
.cr-docs-tmf-table th { padding:10px 10px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:2px solid #e5e7eb; white-space:nowrap; }
.cr-docs-tmf-table td { padding:8px 10px; border-bottom:1px solid #f3f4f6; color:#374151; vertical-align:middle; }
.cr-docs-tmf-table tr:hover td { filter:brightness(0.98); }

/* 表头列宽 */
.cr-tmf-th-expand { width:36px; }
.cr-tmf-th-id { width:50px; }
.cr-tmf-th-section { min-width:180px; }
.cr-tmf-th-format { width:70px; }
.cr-tmf-th-note { width:100px; }
.cr-tmf-th-applicable { width:90px; }
.cr-tmf-th-uploaded { width:80px; }
.cr-tmf-th-reason { width:110px; }
.cr-tmf-th-date { width:110px; }
.cr-tmf-th-cta { width:90px; }
.cr-tmf-th-qa { width:90px; }
.cr-tmf-th-qc { width:80px; }
.cr-tmf-th-recovered { width:80px; }
.cr-tmf-th-recovery-reason { width:110px; }
.cr-tmf-th-recovery-date { width:110px; }

/* 单元格 */
.cr-tmf-td-expand { text-align:center; width:36px; }
.cr-tmf-td-id { text-align:center; font-size:12px; color:#6b7280; }
.cr-tmf-td-section { white-space:nowrap; }
.cr-tmf-td-format { text-align:center; font-size:12px; color:#9ca3af; }

/* 折叠计数 */
.cr-tmf-count { font-size:12px; color:#059669; font-weight:500; margin-left:8px; }

/* 可编辑输入 */
.cr-tmf-edit-input { width:100%; padding:4px 6px; border:1px solid transparent; border-radius:4px; font-size:12px; background:transparent; transition:all 0.15s; }
.cr-tmf-edit-input:hover { border-color:#e5e7eb; background:#fff; }
.cr-tmf-edit-input:focus { border-color:#059669; background:#fff; outline:none; box-shadow:0 0 0 2px rgba(5,150,105,0.1); }
.cr-tmf-edit-date { font-size:11px; padding:4px 4px; }

/* 下拉选择 */
.cr-tmf-edit-select { padding:4px 6px; border:1px solid transparent; border-radius:4px; font-size:12px; background:transparent; cursor:pointer; transition:all 0.15s; width:100%; }
.cr-tmf-edit-select:hover { border-color:#e5e7eb; background:#fff; }
.cr-tmf-edit-select:focus { border-color:#059669; background:#fff; outline:none; }

/* 上传状态徽章 */
.cr-tmf-uploaded-badge { font-size:12px; color:#059669; font-weight:500; white-space:nowrap; }
.cr-tmf-uploaded-badge i { margin-right:3px; }
.cr-tmf-not-uploaded-badge { font-size:12px; color:#2563eb; font-weight:500; white-space:nowrap; }
.cr-tmf-not-uploaded-badge:hover { color:#1d4ed8; text-decoration:underline; }
.cr-tmf-not-uploaded-badge i { margin-right:3px; }

/* 质控状态徽章 */
.cr-tmf-qc-badge { font-size:11px; padding:2px 8px; border-radius:4px; font-weight:500; white-space:nowrap; }
.cr-qc-open { background:#FFF7ED; color:#ea580c; }
.cr-qc-resolved { background:#FEF3C7; color:#d97706; }
.cr-qc-closed { background:#ECFDF5; color:#059669; }

/* 版本历史表格 */
.cr-docs-version-table { width:100%; border-collapse:collapse; margin-bottom:12px; }
.cr-docs-version-table th { padding:10px 12px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.cr-docs-version-table td { padding:8px 12px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }
.cr-docs-current-ver { font-size:12px; color:#059669; font-weight:500; background:#ecfdf5; padding:2px 8px; border-radius:4px; }
.cr-docs-view-ver-btn { font-size:12px; color:#2563eb; background:none; border:none; cursor:pointer; padding:2px 8px; }
.cr-docs-view-ver-btn:hover { text-decoration:underline; }

/* AI命名+文件核实 */
.cr-docs-verify-list { display:flex; flex-direction:column; gap:12px; }
.cr-docs-verify-item { display:flex; align-items:flex-start; gap:12px; padding:10px 12px; background:#f9fafb; border-radius:8px; }
.cr-docs-verify-item i { margin-top:2px; flex-shrink:0; }
.cr-docs-verify-body { flex:1; }
.cr-docs-verify-label { font-size:13px; font-weight:600; color:#1f2937; }
.cr-docs-verify-detail { font-size:12px; color:#6b7280; margin-top:2px; }

/* 移动端适配 */
@media(max-width:500px) {
    .ops-docs-project-grid { grid-template-columns:1fr; }
    .ops-docs-modal { width:100%; max-width:100vw; border-radius:0; padding:20px 16px; }
    .ops-docs-tmf-toolbar { flex-direction:column; align-items:stretch; }
    .ops-docs-search { max-width:100%; }
    .ops-docs-chart-alerts { flex-direction:column; align-items:center; }
}

/* ==================== V5.33.3: 财务管理(ops_finance)样式 ==================== */
/* ==================== ops_finance 样式 ==================== */
.ops-finance { display:flex; flex-direction:column; gap:20px; min-width:0; max-width:100%; overflow-x:hidden; }
.ops-finance-entry-hero { background:#fff; border:1px solid #dbe8e2; border-radius:14px; padding:18px 20px; margin-bottom:14px; display:flex; justify-content:space-between; gap:18px; align-items:flex-start; box-shadow:0 10px 24px rgba(15,96,80,.05); }
.ops-finance-entry-copy { min-width:0; }
.ops-finance-entry-copy > div { font-size:13px; color:#047857; font-weight:800; margin-bottom:6px; }
.ops-finance-entry-copy h3 { margin:0 0 6px; color:#10233f; font-size:22px; line-height:1.28; }
.ops-finance-entry-copy p { margin:0; color:#64748b; font-size:14px; line-height:1.7; max-width:860px; }
.ops-finance-entry-lanes { display:grid; grid-template-columns:repeat(3,minmax(108px,1fr)); gap:8px; flex:0 0 min(420px,42%); }
.ops-finance-entry-lanes span { min-width:0; border:1px solid #dbe8e2; background:#f8fafc; border-radius:10px; padding:9px 10px; display:grid; grid-template-columns:26px 1fr; gap:2px 8px; align-items:center; }
.ops-finance-entry-lanes i { grid-row:1 / span 2; width:26px; height:26px; border-radius:8px; background:#ecfdf5; color:#047857; display:flex; align-items:center; justify-content:center; font-size:12px; }
.ops-finance-entry-lanes strong { color:#23364d; font-size:12px; line-height:1.25; }
.ops-finance-entry-lanes em { color:#64748b; font-size:11px; font-style:normal; line-height:1.25; }
.ops-finance-income-panel { border:1px solid #dbe8e2; background:#fff; border-radius:12px; padding:12px; display:flex; flex-direction:column; gap:10px; }
.ops-finance-income-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.ops-finance-income-tab { min-height:66px; border:1px solid #dbe8e2; border-radius:10px; background:#f8fafc; padding:10px 11px; text-align:left; cursor:pointer; transition:all .18s; }
.ops-finance-income-tab strong { display:block; color:#23364d; font-size:13px; line-height:1.25; }
.ops-finance-income-tab span { display:block; margin-top:5px; color:#64748b; font-size:11px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ops-finance-income-tab:hover { border-color:#99f6e4; background:#f0fdfa; }
.ops-finance-income-tab.active { border-color:#0f766e; background:#f0fdfa; box-shadow:inset 0 0 0 1px #0f766e; }
.ops-finance-income-tab.active strong { color:#0f766e; }
.ops-finance-income-note { display:flex; align-items:flex-start; gap:8px; color:#475569; background:#f8fafc; border:1px dashed #cbd5e1; border-radius:9px; padding:9px 10px; font-size:12px; line-height:1.55; }
.ops-finance-income-note i { color:#0f766e; margin-top:2px; }
@media(max-width:1100px) {
    .ops-finance-entry-hero { flex-direction:column; }
    .ops-finance-entry-lanes { width:100%; flex:auto; }
    .ops-finance-income-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:680px) {
    .ops-finance-entry-lanes, .ops-finance-income-tabs { grid-template-columns:1fr; }
}

/* KPI卡片 */
.ops-finance-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .ops-finance-kpi-row { grid-template-columns:repeat(2,1fr); } }
.ops-finance-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-finance-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-finance-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-finance-kpi .hkpi-info { display:flex; flex-direction:column; }
.ops-finance-kpi .hkpi-value { font-size:22px; font-weight:700; }
.ops-finance-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 工具栏 */
.ops-finance-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.ops-finance-search { position:relative; flex:1 1 260px; min-width:0; max-width:320px; box-sizing:border-box; }
.ops-finance-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-finance-search input { width:100%; box-sizing:border-box; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.ops-finance-search input:focus { border-color:#ea580c; box-shadow:0 0 0 3px rgba(234,88,12,0.1); }
.ops-finance-filter { box-sizing:border-box; padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
#ops-finance-project-filter { width:220px; max-width:100%; }
.ops-finance-filter:focus { border-color:#ea580c; }
.ops-finance-btn { box-sizing:border-box; padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.ops-finance-btn-add { background:#ea580c; color:#fff; }
.ops-finance-btn-add:hover { background:#c2410c; transform:translateY(-1px); }
.ops-finance-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-finance-btn-export:hover { border-color:#ea580c; color:#ea580c; background:#fff7ed; }

/* 子Tab */
.ops-finance-sub-tabs { display:flex; border-bottom:2px solid #e5e7eb; background:#fff; border-radius:12px 12px 0 0; border:1px solid #e5e7eb; border-bottom:2px solid #e5e7eb; overflow:hidden; }
.ops-finance-sub-tab { padding:12px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; white-space:nowrap; }
.ops-finance-sub-tab:hover { color:#ea580c; }
.ops-finance-sub-tab.active { color:#ea580c; border-bottom-color:#ea580c; background:#fff7ed; }

/* 表格 */
.ops-finance-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ops-finance-table-wrap .pm-data-table { min-width:1280px; border:none; border-radius:0; }
.ops-finance-table-wrap .ops-finance-object-table { display:table; width:100%; border:none; border-radius:0; }
.ops-finance-table-wrap .ops-finance-object-table th,
.ops-finance-table-wrap .ops-finance-object-table td { box-sizing:border-box; vertical-align:middle; }
.ops-finance-table-wrap .ops-finance-object-table-receivables { min-width:1720px; table-layout:fixed; }
.ops-finance-table-wrap .ops-finance-object-table-receivables .ops-finance-cell-main,
.ops-finance-table-wrap .ops-finance-object-table-receivables .ops-finance-cell-sub { word-break:normal; overflow-wrap:break-word; }
.ops-finance-table-wrap .ops-finance-object-table-receivables .ops-finance-cell-main { max-height:3.1em; overflow:hidden; }
.ops-finance-table-wrap .ops-finance-object-table-receivables td:first-child .ops-finance-cell-main { max-height:none; }
.ops-finance-table-wrap .ops-finance-object-table-receivables th:nth-child(1),
.ops-finance-table-wrap .ops-finance-object-table-receivables td:nth-child(1) { position:sticky; left:0; z-index:2; background:#fff; box-shadow:8px 0 14px rgba(15,23,42,.04); }
.ops-finance-table-wrap .ops-finance-object-table-receivables th:nth-child(1) { z-index:3; background:#f9fafb; }
.ops-finance-table-wrap .ops-finance-object-table-receivables tbody tr:hover td:nth-child(1) { background:#f8fcff; }
.ops-finance-table-wrap .ops-finance-object-table-payments { min-width:1940px; table-layout:fixed; }
.ops-finance-table-wrap .ops-finance-object-table-payments .ops-finance-cell-main,
.ops-finance-table-wrap .ops-finance-object-table-payments .ops-finance-cell-sub { word-break:normal; overflow-wrap:break-word; }
.ops-finance-table-wrap .ops-finance-object-table-payments td:first-child .ops-finance-cell-main { max-height:none; }
.ops-finance-table-wrap .ops-finance-object-table-payments td:first-child .ops-finance-cell-main,
.ops-finance-table-wrap .ops-finance-object-table-payments td:first-child .ops-finance-cell-sub { white-space:nowrap; word-break:normal; overflow:hidden; text-overflow:ellipsis; }
.ops-finance-table-wrap .ops-finance-object-table-payments th:nth-child(1),
.ops-finance-table-wrap .ops-finance-object-table-payments td:nth-child(1) { position:sticky; left:0; z-index:2; background:#fff; box-shadow:8px 0 14px rgba(15,23,42,.04); }
.ops-finance-table-wrap .ops-finance-object-table-payments th:nth-child(1) { z-index:3; background:#f9fafb; }
.ops-finance-table-wrap .ops-finance-object-table-payments tbody tr:hover td:nth-child(1) { background:#f8fcff; }
.ops-finance-cell-main { font-weight:700; color:#334155; line-height:1.45; white-space:normal; word-break:break-word; }
.ops-finance-cell-sub { margin-top:4px; color:#64748b; font-size:12px; line-height:1.4; white-space:normal; word-break:break-word; }
.ops-finance-guide { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ops-finance-guide > div { background:#fff; border:1px solid #dbe8e2; border-radius:10px; padding:12px; display:grid; grid-template-columns:28px 1fr; gap:2px 10px; align-items:start; }
.ops-finance-guide i { grid-row:1 / span 2; width:28px; height:28px; border-radius:8px; background:#fff7ed; color:#ea580c; display:flex; align-items:center; justify-content:center; }
.ops-finance-guide strong { color:#23364d; font-size:13px; line-height:1.3; }
.ops-finance-guide span { color:#64748b; font-size:12px; line-height:1.55; }
.ops-finance-admin-tabs { border-radius:12px; overflow-x:auto; }
.ops-finance-admin-tab { border:0; background:#fff; flex:1 0 128px; justify-content:center; }
.ops-finance-context-title { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:12px 14px; }
.ops-finance-context-title > div { display:flex; align-items:center; gap:10px; min-width:0; }
.ops-finance-context-title i { width:30px; height:30px; border-radius:8px; background:#fff7ed; color:#ea580c; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ops-finance-context-title strong { color:#10233f; font-size:15px; white-space:nowrap; }
.ops-finance-context-title span { color:#64748b; font-size:13px; line-height:1.55; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-finance-expense-tab-panel { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:10px; display:flex; flex-direction:column; gap:10px; }
.ops-finance-expense-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.ops-finance-expense-tab { border:1px solid #dbe8e2; border-radius:8px; background:#fff; color:#334155; min-height:64px; padding:10px 12px; cursor:pointer; text-align:left; display:flex; flex-direction:column; justify-content:center; gap:4px; transition:all .16s; }
.ops-finance-expense-tab:hover { border-color:#fdba74; background:#fff7ed; }
.ops-finance-expense-tab.active { border-color:#ea580c; background:#fff7ed; color:#c2410c; box-shadow:0 0 0 2px rgba(234,88,12,.10); }
.ops-finance-expense-tab strong { font-size:15px; line-height:1.2; }
.ops-finance-expense-tab span { color:#64748b; font-size:12px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-finance-expense-tab.active span { color:#9a3412; }
.ops-finance-supplier-tabs { display:flex; gap:8px; align-items:center; flex-wrap:wrap; border-top:1px solid #eef2f7; padding-top:10px; }
.ops-finance-supplier-tab { border:1px solid #dbe8e2; border-radius:999px; background:#fff; color:#475569; min-height:34px; padding:7px 14px; cursor:pointer; font-size:13px; font-weight:700; transition:all .16s; display:inline-flex; align-items:center; justify-content:center; }
.ops-finance-supplier-tab:hover { border-color:#67e8f9; background:#ecfeff; color:#0f766e; }
.ops-finance-supplier-tab.active { border-color:#0891b2; background:#ecfeff; color:#0e7490; box-shadow:0 0 0 2px rgba(8,145,178,.10); }
.ops-finance-due-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.ops-finance-due-card { background:#fff; border:1px solid #dbe8e2; border-radius:10px; padding:9px 11px; display:flex; flex-direction:column; gap:5px; min-width:0; text-align:left; cursor:pointer; transition:all .16s; font:inherit; }
.ops-finance-due-card:hover { border-color:#93c5fd; box-shadow:0 8px 18px rgba(37,99,235,.08); transform:translateY(-1px); }
.ops-finance-due-card.active { border-color:#2563eb; background:#eff6ff; box-shadow:0 0 0 2px rgba(37,99,235,.12); }
.ops-finance-due-card.warning { border-color:#fed7aa; background:#fffaf5; }
.ops-finance-due-card.risk { border-color:#fecaca; background:#fff7f7; }
.ops-finance-due-card.warning.active { border-color:#d97706; background:#fffbeb; box-shadow:0 0 0 2px rgba(217,119,6,.12); }
.ops-finance-due-card.risk.active { border-color:#dc2626; background:#fef2f2; box-shadow:0 0 0 2px rgba(220,38,38,.12); }
.ops-finance-due-card > div { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.ops-finance-due-card b { color:#334155; font-size:12px; }
.ops-finance-due-card strong { color:#10233f; font-size:16px; }
.ops-finance-due-card p { margin:0; color:#64748b; font-size:10.5px; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ops-finance-due-card small { color:#94a3b8; font-size:10.5px; }
.ops-finance-due-filter-hint { display:inline-flex; align-items:center; gap:4px; margin-top:0; font-weight:700; color:#2563eb !important; }
.ops-finance-due-card > .ops-finance-due-item { display:block; padding:4px 0; border-top:1px solid rgba(148,163,184,.22); min-width:0; }
.ops-finance-due-main,
.ops-finance-due-meta { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; align-items:center; gap:8px; min-width:0; }
.ops-finance-due-main strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#334155; font-size:11px; font-weight:600; }
.ops-finance-due-main em { color:#475569; font-size:10.5px; font-style:normal; font-weight:500; white-space:nowrap; }
.ops-finance-due-main span,
.ops-finance-due-meta span { color:#64748b; font-size:10.5px; line-height:1.25; white-space:nowrap; }
.ops-finance-due-meta span:last-child { color:#0f766e; font-weight:700; font-variant-numeric:tabular-nums; }
.ops-finance-detail-modal { width:min(1560px, calc(100vw - 48px)); max-width:calc(100vw - 48px); padding:0; }
.ops-finance-manage-modal { width:min(1280px, calc(100vw - 48px)); max-width:calc(100vw - 48px); padding:0; }
.ops-finance-expense-detail-modal,
.ops-finance-vendor-payment-modal { width:min(1480px, calc(100vw - 48px)); max-width:calc(100vw - 48px); }
.ops-finance-detail-modal .ops-finance-modal-header,
.ops-finance-manage-modal .ops-finance-modal-header { padding:12px 18px; border-bottom:1px solid #e5edf5; }
.ops-finance-detail-hero { margin:8px 14px 0; padding:8px 10px; border:1px solid #dbe8e2; border-radius:8px; background:#f8fafc; display:flex; justify-content:space-between; gap:12px; align-items:center; }
.ops-finance-detail-hero div { min-width:0; display:flex; flex-direction:row; flex-wrap:wrap; gap:4px 10px; align-items:baseline; }
.ops-finance-detail-hero b { color:#047857; font-size:11px; }
.ops-finance-detail-hero strong { color:#10233f; font-size:14px; line-height:1.3; word-break:break-word; }
.ops-finance-detail-hero span { color:#64748b; font-size:11px; line-height:1.4; }
.ops-finance-detail-hero em { flex-shrink:0; font-style:normal; border-radius:999px; padding:4px 8px; background:#ecfdf5; color:#047857; font-size:11px; font-weight:800; }
.ops-finance-detail-section { margin:8px 14px; border:1px solid #e5edf5; border-radius:8px; overflow:hidden; background:#fff; }
.ops-finance-detail-section h4 { margin:0; padding:7px 10px; background:#f8fafc; color:#334155; font-size:12px; display:flex; align-items:center; gap:7px; border-bottom:1px solid #e5edf5; }
.ops-finance-detail-section h4 i { color:#ea580c; }
.ops-finance-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; padding:0; border-top:0; }
.ops-finance-detail-field { min-width:0; }
.ops-finance-detail-field.is-wide { grid-column:1 / -1; }
.ops-finance-detail-field { display:grid; grid-template-columns:104px minmax(0,1fr); border-right:1px solid #edf2f7; border-bottom:1px solid #edf2f7; }
.ops-finance-detail-field:nth-child(2n) { border-right:0; }
.ops-finance-detail-field.is-wide { border-right:0; }
.ops-finance-detail-field label { display:flex; align-items:center; color:#64748b; font-size:11px; line-height:1.35; padding:6px 8px; margin:0; background:#f8fafc; border-right:1px solid #edf2f7; }
.ops-finance-detail-field div { min-height:0; padding:6px 8px; border:0; border-radius:0; background:#fff; color:#23364d; font-size:11px; line-height:1.4; word-break:break-word; }
.ops-finance-tech-ref { margin:0 14px 14px; border:1px dashed #cbd5e1; border-radius:10px; background:#f8fafc; overflow:hidden; }
.ops-finance-tech-ref summary { min-height:44px; padding:10px 12px; cursor:pointer; color:#475569; font-weight:800; display:flex; align-items:center; gap:8px; list-style:none; }
.ops-finance-tech-ref summary::-webkit-details-marker { display:none; }
.ops-finance-tech-ref summary i { color:#64748b; }
.ops-finance-tech-ref summary span { font-size:13px; }
.ops-finance-tech-ref summary em { margin-left:auto; color:#94a3b8; font-size:12px; font-style:normal; font-weight:600; }
.ops-finance-tech-ref .ops-finance-detail-grid { padding:0 12px 12px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.ops-finance-tech-ref .ops-finance-detail-field div { background:#fff; color:#475569; }
.ops-finance-detail-field .ops-finance-trace-chip-row { display:flex; flex-wrap:wrap; gap:8px; min-height:0; padding:0; border:0; background:transparent; }
.ops-finance-trace-chip { min-height:32px; border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8; border-radius:8px; padding:6px 10px; display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:800; cursor:pointer; }
.ops-finance-trace-chip:hover { background:#dbeafe; border-color:#93c5fd; }
.ops-finance-attachment-chip-row { gap:6px; max-width:260px; }
.ops-finance-attachment-chip { min-height:28px; padding:5px 8px; color:#0f766e; background:#f0fdfa; border-color:#99f6e4; text-decoration:none; white-space:nowrap; }
.ops-finance-attachment-chip:hover { background:#ccfbf1; border-color:#5eead4; }
.ops-finance-attachment-chip.is-pending { color:#92400e; background:#fffbeb; border-color:#fde68a; }
.ops-finance-attachment-chip.is-pending:hover { background:#fef3c7; border-color:#fcd34d; }
.ops-finance-attachment-more { display:inline-flex; align-items:center; min-height:28px; color:#64748b; font-size:12px; font-weight:800; }
.ops-finance-attachment-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.ops-finance-attachment-action { min-height:30px; border:1px solid #99f6e4; background:#f0fdfa; color:#0f766e; border-radius:8px; padding:5px 9px; display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:800; cursor:pointer; text-decoration:none; white-space:nowrap; }
.ops-finance-attachment-action:hover { background:#ccfbf1; border-color:#5eead4; }
.ops-finance-attachment-action.secondary { border-color:#bfdbfe; background:#eff6ff; color:#1d4ed8; }
.ops-finance-attachment-action.secondary:hover { background:#dbeafe; border-color:#93c5fd; }
.ops-finance-attachment-muted { min-height:30px; border:1px solid #fde68a; background:#fffbeb; color:#92400e; border-radius:8px; padding:5px 9px; display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:800; white-space:nowrap; }
.ops-finance-evidence-link { border:1px solid #fed7aa; background:#fff7ed; color:#c2410c; border-radius:8px; padding:5px 9px; font-size:12px; font-weight:800; cursor:pointer; }
.ops-finance-evidence-link:hover { background:#ffedd5; }
.ops-finance-attachment-evidence-modal { max-width:760px; }
.ops-finance-detail-scroll-top { height:14px; overflow-x:auto; overflow-y:hidden; background:#f8fafc; border-bottom:1px solid #e5edf5; }
.ops-finance-detail-scroll-top > div { height:1px; min-width:100%; }
.ops-finance-detail-table-wrap { overflow-x:auto; padding:0; -webkit-overflow-scrolling:touch; }
.ops-finance-detail-table-wrap.ops-finance-detail-table-body-scroll { cursor:grab; }
.ops-finance-detail-table-wrap.ops-finance-detail-table-body-scroll.is-dragging { cursor:grabbing; user-select:none; }
.ops-finance-detail-table { min-width:1120px !important; border:0 !important; }
.ops-finance-detail-click-row { cursor:pointer; }
.ops-finance-detail-click-row:hover td { background:#f8fafc; }
.ops-finance-detail-click-row:focus-visible { outline:2px solid #2563eb; outline-offset:-2px; }
.ops-finance-line-detail-modal { width:min(780px, calc(100vw - 48px)); max-width:calc(100vw - 48px); padding:0; }
.ops-finance-line-attachment-list { padding:14px; }
.ops-finance-line-attachment-list .ops-finance-attachment-chip-row { max-width:none; }
.ops-finance-flow-source { display:flex; align-items:flex-start; gap:10px; margin:14px 14px 0; padding:10px 12px; border:1px solid #e5edf5; border-radius:9px; background:#f8fafc; }
.ops-finance-flow-source strong { flex:0 0 auto; border-radius:999px; padding:3px 9px; font-size:12px; color:#475569; background:#e2e8f0; }
.ops-finance-flow-source span { flex:1 1 auto; min-width:0; color:#475569; font-size:13px; line-height:1.55; }
.ops-finance-flow-source.is-real { border-color:#bbf7d0; background:#f0fdf4; }
.ops-finance-flow-source.is-real strong { background:#dcfce7; color:#15803d; }
.ops-finance-flow-source.is-fallback { border-color:#fed7aa; background:#fff7ed; }
.ops-finance-flow-source.is-fallback strong { background:#ffedd5; color:#c2410c; }
.ops-finance-flow-action { flex:0 0 auto; border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8; border-radius:8px; padding:6px 10px; font-size:12px; font-weight:800; cursor:pointer; white-space:nowrap; }
.ops-finance-flow-action:hover { background:#dbeafe; }
.ops-finance-flow-meta { margin:8px 14px 0; color:#64748b; font-size:12px; }

.sinocro-modal-standard {
    max-width:calc(100vw - 32px);
    max-height:calc(100dvh - 32px);
    box-sizing:border-box;
}
.sinocro-modal-standard.is-sinocro-modal-wide {
    width:min(1560px, calc(100vw - 48px)) !important;
    max-width:calc(100vw - 48px) !important;
}
.sinocro-modal-top-scroll {
    height:14px;
    overflow-x:auto;
    overflow-y:hidden;
    background:#f8fafc;
    border-bottom:1px solid #e5edf5;
    border-radius:8px 8px 0 0;
}
.sinocro-modal-top-scroll-inner {
    height:1px;
    min-width:100%;
}
.sinocro-modal-body-scroll {
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
}
.sinocro-modal-body-scroll:not(.is-sinocro-modal-dragging) {
    cursor:grab;
}
.sinocro-modal-body-scroll.is-sinocro-modal-dragging {
    cursor:grabbing;
    user-select:none;
}
.sinocro-modal-row-openable {
    cursor:pointer;
}
.sinocro-modal-row-openable:hover td {
    background:#f8fafc;
}
.sinocro-modal-row-openable:focus-visible {
    outline:2px solid #2563eb;
    outline-offset:-2px;
}
@media (max-width: 640px) {
    .sinocro-modal-standard,
    .sinocro-modal-standard.is-sinocro-modal-wide {
        width:calc(100vw - 24px) !important;
        max-width:calc(100vw - 24px) !important;
        max-height:calc(100dvh - 24px);
    }
}

.ops-finance-workflow { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; padding:14px; }
.ops-finance-workflow-step { border:1px solid #e5edf5; border-radius:10px; padding:12px; background:#fbfdff; min-width:0; }
.ops-finance-workflow-step span { display:block; width:10px; height:10px; border-radius:999px; background:#94a3b8; margin-bottom:8px; }
.ops-finance-workflow-step.done span { background:#16a34a; }
.ops-finance-workflow-step.warning span { background:#d97706; }
.ops-finance-workflow-step.risk span { background:#dc2626; }
.ops-finance-workflow-step strong { display:block; color:#23364d; font-size:13px; }
.ops-finance-workflow-step em { display:block; margin-top:5px; color:#64748b; font-style:normal; font-size:12px; line-height:1.5; word-break:break-word; }
.ops-finance-review-list { display:grid; gap:10px; padding:14px; }
.ops-finance-review-card { border:1px solid #f1d5bd; background:#fffaf5; border-radius:10px; padding:12px; }
.ops-finance-review-card div { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.ops-finance-review-card strong { color:#9a3412; font-size:13px; line-height:1.45; }
.ops-finance-review-card span { flex-shrink:0; color:#b45309; font-size:12px; font-weight:800; }
.ops-finance-review-card p { margin:6px 0 0; color:#475569; font-size:13px; line-height:1.6; }
.ops-finance-detail-empty { padding:18px; color:#64748b; font-size:13px; line-height:1.6; }
.ops-finance-expense-detail-modal { width:980px; }
.ops-finance-expense-hero { margin:18px 22px 0; padding:18px 20px; border:1px solid #dbe8e2; border-radius:10px; background:#f8fafc; display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.ops-finance-expense-hero div { min-width:0; }
.ops-finance-expense-hero span { display:block; color:#047857; font-size:12px; font-weight:800; margin-bottom:4px; }
.ops-finance-expense-hero h3 { margin:0; color:#10233f; font-size:22px; line-height:1.25; }
.ops-finance-expense-hero p { margin:8px 0 0; color:#475569; font-size:14px; line-height:1.65; word-break:break-word; }
.ops-finance-expense-hero small { display:block; margin-top:8px; color:#64748b; font-size:12px; line-height:1.55; }
.ops-finance-expense-hero em { flex-shrink:0; font-style:normal; border-radius:999px; padding:7px 12px; background:#fff7ed; color:#c2410c; font-size:13px; font-weight:800; }
.ops-finance-expense-mini-grid { margin:14px 22px 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ops-finance-expense-mini { border:1px solid #e5edf5; background:#fff; border-radius:10px; padding:12px; min-width:0; }
.ops-finance-expense-mini span { display:block; color:#64748b; font-size:12px; margin-bottom:5px; }
.ops-finance-expense-mini strong { display:block; color:#23364d; font-size:14px; line-height:1.35; word-break:break-word; }
.ops-finance-expense-mini.is-money strong { color:#047857; font-size:18px; }
.ops-finance-expense-mini.is-status strong { color:#c2410c; }
.ops-finance-expense-evidence-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px; }
.ops-finance-expense-evidence { border:1px solid #e5edf5; border-radius:10px; background:#fbfdff; padding:12px; min-width:0; display:grid; grid-template-columns:1fr auto; gap:6px 12px; align-items:start; }
.ops-finance-expense-evidence.is-voucher { border-color:#99f6e4; background:#f8fffd; }
.ops-finance-expense-evidence strong { color:#23364d; font-size:13px; line-height:1.45; display:inline-flex; align-items:flex-start; gap:6px; min-width:0; }
.ops-finance-expense-evidence strong i { color:#0f766e; margin-top:2px; }
.ops-finance-expense-evidence span { grid-column:1 / -1; color:#64748b; font-size:12px; line-height:1.55; word-break:break-word; }
.ops-finance-expense-evidence em { color:#047857; font-size:13px; font-style:normal; font-weight:800; white-space:nowrap; }
.ops-finance-expense-evidence a { color:#2563eb; font-size:13px; font-weight:800; text-decoration:none; white-space:nowrap; }
.ops-finance-expense-actions { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; padding:14px; }
.ops-finance-expense-action { border:1px solid #e5edf5; background:#fff; border-radius:10px; padding:12px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; text-align:left; cursor:pointer; transition:all .16s; min-height:96px; }
.ops-finance-expense-action:hover { border-color:#bfdbfe; background:#f8fbff; transform:translateY(-1px); }
.ops-finance-expense-action i { width:34px; height:34px; border-radius:8px; background:#eff6ff; color:#2563eb; display:flex; align-items:center; justify-content:center; }
.ops-finance-expense-action span { display:flex; flex-direction:column; gap:4px; min-width:0; }
.ops-finance-expense-action strong { color:#10233f; font-size:13px; line-height:1.35; }
.ops-finance-expense-action em { color:#64748b; font-size:12px; line-height:1.45; font-style:normal; }
.ops-finance-expense-action.primary i { background:#ecfdf5; color:#047857; }
.ops-finance-expense-action.risk i { background:#fef2f2; color:#dc2626; }
.ops-finance-expense-review-head { margin:14px 14px 0; padding:10px 12px; border:1px solid #fed7aa; border-radius:9px; background:#fff7ed; display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.ops-finance-expense-review-head strong { color:#9a3412; font-size:13px; }
.ops-finance-expense-review-head span { color:#64748b; font-size:12px; line-height:1.5; }
.ops-finance-vendor-payment-modal { width:1040px; }
.ops-finance-vendor-payment-modal .ops-finance-detail-section h4 i { color:#0f766e; }
.ops-finance-vendor-mini-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.ops-finance-vendor-actions { grid-template-columns:repeat(5,minmax(0,1fr)); }
.ops-finance-vendor-current-row { background:#ecfdf5 !important; }
.ops-finance-vendor-current-row td:first-child { color:#047857; font-weight:800; }
.ops-finance-vendor-guard { margin:14px 22px 0; border:1px solid #fed7aa; background:#fff7ed; border-radius:10px; padding:12px 14px; display:flex; gap:12px; align-items:flex-start; }
.ops-finance-vendor-guard strong { flex:0 0 auto; color:#9a3412; font-size:13px; display:inline-flex; align-items:center; gap:6px; }
.ops-finance-vendor-guard span { color:#475569; font-size:13px; line-height:1.6; }
.ops-finance-vendor-linked-contract { margin:14px 22px 0; border:1px solid #bfdbfe; background:#eff6ff; border-radius:10px; padding:12px 14px; display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto; gap:12px; align-items:center; }
.ops-finance-vendor-linked-contract span { display:block; color:#1d4ed8; font-size:12px; font-weight:800; margin-bottom:4px; }
.ops-finance-vendor-linked-contract strong { display:block; color:#10233f; font-size:14px; line-height:1.45; word-break:break-word; }
.ops-finance-vendor-linked-contract em { display:block; color:#64748b; font-size:12px; line-height:1.5; font-style:normal; margin-top:3px; }
.ops-finance-vendor-linked-contract button { height:36px; border:1px solid #2563eb; border-radius:8px; background:#2563eb; color:#fff; padding:0 12px; font-weight:800; cursor:pointer; white-space:nowrap; }
.ops-finance-vendor-linked-contract button:disabled { border-color:#cbd5e1; background:#e2e8f0; color:#64748b; cursor:not-allowed; }
.ops-finance-vendor-summary { margin:18px 22px 0; border:1px solid #dbe8e2; border-radius:10px; background:#fff; overflow:hidden; }
.ops-finance-vendor-summary-head { padding:16px 18px; display:flex; justify-content:space-between; align-items:flex-start; gap:18px; background:#f8fafc; border-bottom:1px solid #e5edf5; }
.ops-finance-vendor-summary-head div { min-width:0; }
.ops-finance-vendor-summary-head span { display:block; color:#0f766e; font-size:12px; font-weight:800; margin-bottom:4px; }
.ops-finance-vendor-summary-head h3 { margin:0; color:#10233f; font-size:22px; line-height:1.25; }
.ops-finance-vendor-summary-head p { margin:8px 0 0; color:#475569; font-size:13px; line-height:1.6; word-break:break-word; }
.ops-finance-vendor-summary-money { flex:0 0 auto; text-align:right; }
.ops-finance-vendor-summary-money b { display:block; color:#047857; font-size:22px; line-height:1.2; white-space:nowrap; }
.ops-finance-vendor-summary-money em { display:inline-flex; margin-top:8px; padding:5px 9px; border-radius:999px; background:#ecfdf5; color:#047857; font-style:normal; font-size:12px; font-weight:800; }
.ops-finance-vendor-summary-contract { padding:12px 18px; border-bottom:1px solid #eef4f8; display:grid; grid-template-columns:150px 1fr; gap:12px; align-items:start; }
.ops-finance-vendor-summary-contract label { color:#64748b; font-size:12px; }
.ops-finance-vendor-summary-contract strong { color:#23364d; font-size:14px; line-height:1.55; word-break:break-word; }
.ops-finance-vendor-summary-grid { padding:14px 18px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ops-finance-vendor-summary-item { min-width:0; border:1px solid #e5edf5; border-radius:9px; background:#fbfdff; padding:10px 11px; }
.ops-finance-vendor-summary-item label { display:block; color:#64748b; font-size:12px; margin-bottom:5px; }
.ops-finance-vendor-summary-item strong { display:block; color:#23364d; font-size:13px; line-height:1.45; word-break:break-word; }
.ops-finance-vendor-summary-item.is-status strong { color:#c2410c; }
.ops-finance-vendor-evidence-summary { margin:14px 22px 0; border:1px solid #bfdbfe; background:#eff6ff; border-radius:10px; padding:12px 14px; display:flex; gap:12px; align-items:flex-start; }
.ops-finance-vendor-evidence-summary.is-warning { border-color:#fed7aa; background:#fff7ed; }
.ops-finance-vendor-evidence-summary i { color:#2563eb; margin-top:2px; }
.ops-finance-vendor-evidence-summary.is-warning i { color:#c2410c; }
.ops-finance-vendor-evidence-summary strong { display:block; color:#1e3a8a; font-size:13px; margin-bottom:3px; }
.ops-finance-vendor-evidence-summary.is-warning strong { color:#9a3412; }
.ops-finance-vendor-evidence-summary span { color:#475569; font-size:12px; line-height:1.55; }
.ops-finance-evidence-details { margin:14px 22px 0; border:1px solid #dbe8e2; border-radius:10px; background:#fff; overflow:hidden; }
.ops-finance-evidence-details summary { list-style:none; cursor:pointer; padding:12px 14px; display:flex; justify-content:space-between; align-items:center; gap:12px; background:#f8fafc; }
.ops-finance-evidence-details summary::-webkit-details-marker { display:none; }
.ops-finance-evidence-details summary span { display:flex; align-items:center; gap:8px; min-width:0; }
.ops-finance-evidence-details summary i { color:#0f766e; }
.ops-finance-evidence-details summary strong { color:#23364d; font-size:14px; }
.ops-finance-evidence-details summary em { color:#64748b; font-size:12px; font-style:normal; }
.ops-finance-evidence-details summary b { color:#2563eb; font-size:12px; }
.ops-finance-evidence-details-body { display:grid; gap:12px; padding:14px; }
.ops-finance-evidence-details-body section { border:1px solid #e5edf5; border-radius:9px; overflow:hidden; background:#fff; }
.ops-finance-evidence-details-body h4 { margin:0; padding:10px 12px; border-bottom:1px solid #e5edf5; background:#fbfdff; color:#334155; font-size:13px; display:flex; align-items:center; gap:8px; }
@media(max-width:900px) {
    .ops-finance-expense-mini-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ops-finance-expense-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ops-finance-expense-evidence-list { grid-template-columns:1fr; }
    .ops-finance-vendor-mini-grid, .ops-finance-vendor-actions { grid-template-columns:1fr; }
    .ops-finance-vendor-summary-head { flex-direction:column; }
    .ops-finance-vendor-summary-money { text-align:left; }
    .ops-finance-vendor-summary-contract { grid-template-columns:1fr; gap:4px; }
    .ops-finance-vendor-summary-grid { grid-template-columns:1fr; }
    .ops-finance-vendor-linked-contract { grid-template-columns:1fr; align-items:stretch; }
    .ops-finance-vendor-linked-contract button { width:100%; }
}
.ops-finance-supervision-summary { margin:18px 22px 0; border:1px solid #dbe8e2; border-radius:10px; background:#f8fafc; padding:14px; display:flex; flex-direction:column; gap:5px; }
.ops-finance-supervision-summary strong { color:#10233f; }
.ops-finance-supervision-summary span { color:#64748b; font-size:13px; line-height:1.6; }
.ops-finance-supervision-grid { margin:14px 22px 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ops-finance-supervision-grid div { border:1px solid #e5edf5; border-radius:10px; background:#fff; padding:12px; min-width:0; }
.ops-finance-supervision-grid b { display:block; color:#64748b; font-size:12px; margin-bottom:4px; }
.ops-finance-supervision-grid span { display:block; color:#23364d; font-size:13px; line-height:1.5; word-break:break-word; }
.ops-finance-unified-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px; }
.ops-finance-unified-action { border:1px solid #e5edf5; background:#fff; border-radius:10px; padding:12px; display:flex; align-items:flex-start; gap:10px; text-align:left; cursor:pointer; transition:all .16s; min-height:76px; }
.ops-finance-unified-action:hover { border-color:#bfdbfe; background:#f8fbff; transform:translateY(-1px); }
.ops-finance-unified-action i { width:32px; height:32px; border-radius:8px; background:#f8fafc; color:#2563eb; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ops-finance-unified-action span { display:flex; flex-direction:column; gap:3px; min-width:0; }
.ops-finance-unified-action strong { color:#10233f; font-size:13px; line-height:1.35; }
.ops-finance-unified-action em { color:#64748b; font-size:12px; line-height:1.45; font-style:normal; }
.ops-finance-unified-action.primary i { background:#ecfdf5; color:#047857; }
.ops-finance-unified-action.warning i { background:#fff7ed; color:#ea580c; }
.ops-finance-unified-action.risk i { background:#fef2f2; color:#dc2626; }
.ops-finance-id-link { color:#ea580c; cursor:pointer; font-weight:500; }
.ops-finance-id-link:hover { text-decoration:underline; }

/* 执行率进度条 */
.ops-finance-progress-bar { display:flex; align-items:center; gap:8px; }
.ops-finance-progress-bar .bar-track { flex:1; height:6px; background:#f3f4f6; border-radius:3px; overflow:hidden; max-width:60px; }
.ops-finance-progress-bar .bar-fill { height:100%; background:#ea580c; border-radius:3px; transition:width 0.3s; }
.ops-finance-progress-bar .bar-text { font-size:11px; color:#6b7280; min-width:28px; }

/* 操作按钮 */
.ops-finance-action-btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; background:#fff; border:1px solid transparent; cursor:pointer; font-size:12px; font-weight:600; padding:5px 8px; min-height:32px; min-width:auto; border-radius:6px; transition:all 0.15s; white-space:nowrap; }
.ops-finance-action-btn.view { color:#ea580c; }
.ops-finance-action-btn.view:hover { background:#fff7ed; }
.ops-finance-action-btn.edit { color:#2563eb; }
.ops-finance-action-btn.edit:hover { background:#dbeafe; }
.ops-finance-action-btn.approve { color:#16a34a; }
.ops-finance-action-btn.approve:hover { background:#f0fdf4; }
.ops-finance-action-btn.delete { color:#dc2626; }
.ops-finance-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }
.ops-finance-action-btn.terminate { color:#d97706; }
.ops-finance-action-btn.terminate:hover { background:#fef3c7; }

/* 详情页 */
.ops-finance-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-finance-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.ops-finance-detail-back:hover { background:#e5e7eb; }
.ops-finance-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.ops-finance-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ops-finance-detail-meta { display:flex; gap:20px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.ops-finance-detail-meta span { display:flex; align-items:center; gap:4px; }
.ops-finance-detail-meta i { font-size:12px; }

.ops-finance-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.ops-finance-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.ops-finance-tab:hover { color:#ea580c; }
.ops-finance-tab.active { color:#ea580c; border-bottom-color:#ea580c; }
.ops-finance-tab-content { padding:20px; }
.ops-finance-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:500px) { .ops-finance-info-grid { grid-template-columns:1fr; } }
.ops-finance-info-item { display:flex; flex-direction:column; gap:4px; }
.ops-finance-info-label { font-size:12px; color:#9ca3af; font-weight:500; }
.ops-finance-info-value { font-size:14px; color:#1f2937; }
.ops-finance-info-value a { color:#ea580c; cursor:pointer; }
.ops-finance-info-value a:hover { text-decoration:underline; }

/* 付款阶段明细 */
.ops-finance-payment-stages { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.ops-finance-payment-stage-item { display:flex; align-items:center; gap:10px; padding:8px 12px; background:#f9fafb; border-radius:6px; font-size:13px; }
.ops-finance-payment-stage-item .stage-name { font-weight:500; color:#374151; min-width:50px; }
.ops-finance-payment-stage-item .stage-amount { color:#6b7280; }
.ops-finance-payment-stage-item .stage-status { margin-left:auto; }

/* 审批操作区 */
.ops-finance-approval-actions { margin-top:20px; padding-top:20px; border-top:1px solid #e5e7eb; }
.ops-finance-approval-textarea { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; min-height:80px; resize:vertical; outline:none; transition:all 0.2s; margin-bottom:12px; }
.ops-finance-approval-textarea:focus { border-color:#ea580c; box-shadow:0 0 0 2px rgba(234,88,12,0.1); }
.ops-finance-approval-btns { display:flex; gap:10px; flex-wrap:wrap; }
.ops-finance-approval-btns .ops-finance-btn { min-height:44px; }
.ops-finance-btn-approve { background:#16a34a; color:#fff; }
.ops-finance-btn-approve:hover { background:#15803d; }
.ops-finance-btn-reject { background:#dc2626; color:#fff; }
.ops-finance-btn-reject:hover { background:#b91c1c; }
.ops-finance-btn-submit-primary { background:#ea580c; color:#fff; }
.ops-finance-btn-submit-primary:hover { background:#c2410c; }

/* 详情页底部提交按钮 */
.ops-finance-detail-submit-bar { margin-top:20px; padding-top:16px; border-top:1px solid #e5e7eb; display:flex; justify-content:flex-end; gap:10px; }

/* 弹窗 */
.ops-finance-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-finance-modal { background:#fff; border-radius:12px; padding:28px 32px; width:650px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.ops-finance-modal.ops-finance-detail-modal { width:min(1560px, calc(100vw - 48px)); max-width:calc(100vw - 48px); padding:0; }
.ops-finance-modal.ops-finance-manage-modal { width:min(1280px, calc(100vw - 48px)); max-width:calc(100vw - 48px); padding:0; }
.ops-finance-modal.ops-finance-expense-detail-modal,
.ops-finance-modal.ops-finance-vendor-payment-modal { width:min(1480px, calc(100vw - 48px)); max-width:calc(100vw - 48px); padding:0; }
.ops-finance-modal.ops-finance-line-detail-modal { width:min(780px, calc(100vw - 48px)); max-width:calc(100vw - 48px); padding:0; }
.ops-finance-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.ops-finance-modal h3 i { color:#ea580c; margin-right:8px; }
.ops-finance-modal > .ops-finance-modal-header {
    position:sticky;
    top:0;
    z-index:12;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 18px;
    border-bottom:1px solid #e5edf5;
    background:#fff;
}
.ops-finance-modal > .ops-finance-modal-header h3 {
    margin:0;
    min-width:0;
    font-size:16px;
    line-height:1.35;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.ops-finance-modal > .ops-finance-modal-header > button {
    position:static;
    flex:0 0 auto;
    width:34px;
    height:34px;
    margin-left:auto;
    padding:0;
    border:1px solid #dbe5ef;
    border-radius:8px;
    background:#fff;
    color:#334155;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}
.ops-finance-modal > .ops-finance-modal-header > button:hover {
    border-color:#fdba74;
    background:#fff7ed;
    color:#c2410c;
}
.ops-finance-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.ops-finance-modal input, .ops-finance-modal select, .ops-finance-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.ops-finance-modal input:focus, .ops-finance-modal select:focus, .ops-finance-modal textarea:focus { border-color:#ea580c; box-shadow:0 0 0 2px rgba(234,88,12,0.1); }
.ops-finance-modal textarea { resize:vertical; min-height:80px; }
.ops-finance-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:500px) { .ops-finance-modal-row { grid-template-columns:1fr; } }
.ops-finance-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.ops-finance-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-finance-modal-cancel:hover { background:#f9fafb; }
.ops-finance-modal-save-draft { padding:8px 20px; border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-finance-modal-save-draft:hover { background:#dbeafe; }
.ops-finance-modal-save { padding:8px 20px; border:none; background:#ea580c; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-finance-modal-save:hover { background:#c2410c; }
.ops-finance-modal-delete { padding:8px 20px; border:none; background:#dc2626; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-finance-modal-delete:hover { background:#b91c1c; }
.ops-finance-expense-modal { width:960px; max-width:94vw; padding:0; }
.ops-finance-expense-modal .ops-finance-modal-header { padding:18px 22px; border-bottom:1px solid #e5edf5; }
.ops-finance-expense-form-note { margin:16px 22px 0; padding:12px 14px; border:1px solid #dbe8e2; border-radius:8px; background:#f8fafc; display:flex; flex-direction:column; gap:4px; }
.ops-finance-expense-form-note strong { color:#10233f; font-size:14px; }
.ops-finance-expense-form-note span { color:#64748b; font-size:12px; line-height:1.6; }
.ops-finance-form-section { margin:14px 22px; border:1px solid #e5edf5; border-radius:10px; overflow:hidden; background:#fff; }
.ops-finance-expense-modal .ops-finance-form-section { overflow:visible; }
.ops-finance-form-section h4 { margin:0; padding:11px 14px; border-bottom:1px solid #e5edf5; background:#f8fafc; color:#334155; font-size:14px; display:flex; align-items:center; gap:8px; }
.ops-finance-form-section h4 i { color:#ea580c; }
.ops-finance-expense-lines-title { justify-content:space-between; }
.ops-finance-expense-lines-title > span { display:inline-flex; align-items:center; gap:8px; min-width:0; }
.ops-finance-ai-archive-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:28px; border:1px solid #bfdbfe; border-radius:8px; background:#eff6ff; color:#1d4ed8; padding:5px 10px; font-size:12px; font-weight:800; cursor:pointer; white-space:nowrap; }
.ops-finance-ai-archive-btn:hover { border-color:#60a5fa; background:#dbeafe; color:#1e40af; }
.ops-finance-ai-archive-btn i { color:#1d4ed8 !important; }
.ops-finance-expense-archive-provider { display:none; }
.ops-finance-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:14px; }
.ops-finance-form-field { min-width:0; }
.ops-finance-form-field.is-wide { grid-column:1 / -1; }
.ops-finance-form-field label { display:block; color:#475569; font-size:12px; font-weight:700; margin-bottom:5px; }
.ops-finance-form-field label span { color:#dc2626; }
.ops-finance-expense-modal .ops-finance-form-field input,
.ops-finance-expense-modal .ops-finance-form-field select,
.ops-finance-expense-modal .ops-finance-form-field textarea { margin-bottom:0; }
.ops-finance-project-picker { position:relative; z-index:120; }
.ops-finance-project-picker.is-open { z-index:3200; }
.ops-finance-project-hidden-select { position:absolute !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; margin:0 !important; padding:0 !important; }
.ops-finance-project-combobox { padding-right:34px !important; cursor:text; }
.ops-finance-project-hint { display:block; margin-top:4px; color:#64748b; font-size:11px; line-height:1.25; }
.ops-finance-project-toggle { position:absolute; right:4px; top:4px; width:28px; height:28px; border:0; border-radius:6px; background:transparent; color:#64748b; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.ops-finance-project-toggle:hover { background:#f1f5f9; color:#0f172a; }
.ops-finance-project-options { position:absolute; left:0; right:0; top:calc(100% + 8px); display:none; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:260px; overflow:auto; padding:6px; border:1px solid #bfdbfe; border-radius:9px; background:#fff; box-shadow:0 14px 30px rgba(15,23,42,.14); z-index:3201; }
.ops-finance-project-picker.is-open .ops-finance-project-options { display:grid; }
.ops-finance-project-option { min-width:0; min-height:44px; border:1px solid #e5edf5; background:#fff; border-radius:7px; padding:7px 8px; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:3px; }
.ops-finance-project-option strong { color:#23364d; font-size:12px; line-height:1.28; overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; }
.ops-finance-project-option span { color:#64748b; font-size:10.5px; line-height:1.2; overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; }
.ops-finance-project-option:hover,
.ops-finance-project-option.active { border-color:#fdba74; background:#fff7ed; }
.ops-finance-project-empty { grid-column:1 / -1; padding:8px 10px; color:#64748b; font-size:12px; }
.ops-finance-expense-line-head,
.ops-finance-expense-line-main { display:grid; grid-template-columns:118px minmax(210px,1.35fr) 92px 92px minmax(130px,.75fr) minmax(140px,.9fr) 86px 30px; gap:6px; align-items:center; padding:0 10px 6px; }
.ops-finance-expense-line-head { padding-top:10px; color:#64748b; font-size:10.5px; font-weight:700; }
.ops-finance-expense-line { border-top:1px solid #edf2f7; padding-top:10px; }
.ops-finance-expense-line:first-child { border-top:0; padding-top:0; }
.ops-finance-expense-line input,
.ops-finance-expense-line select,
.ops-finance-expense-line textarea { margin-bottom:0; min-width:0; }
.ops-finance-expense-line-main button { width:30px; height:28px; border:1px solid #fecaca; background:#fff; color:#dc2626; border-radius:6px; cursor:pointer; }
.ops-finance-expense-line-attachments-row { display:grid; grid-template-columns:150px minmax(150px,180px) minmax(260px,1fr) 170px; gap:8px; align-items:start; padding:0 14px 10px; }
.ops-finance-expense-line-attachment-label { min-height:36px; display:flex; align-items:center; color:#64748b; font-size:12px; font-weight:700; }
.ops-finance-expense-line-attachment-note { grid-column:auto; min-height:28px !important; }
.ops-finance-expense-line-file { display:flex; align-items:center; justify-content:center; min-height:28px; padding:0 8px; border:1px dashed #bfdbfe; border-radius:6px; color:#1d4ed8; background:#eff6ff; font-size:11px; font-weight:700; cursor:pointer; }
.ops-finance-expense-line-file span { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.ops-finance-expense-line-file input { display:none; }
.ops-finance-expense-line-attachment-list { grid-column:2 / -2; margin:0 10px 6px 122px; min-height:0; max-height:46px; overflow:auto; }
.ops-finance-expense-line-attachment-list:empty { display:none; }
.ops-finance-form-section .ops-finance-add-item-btn { margin:0 14px 14px; border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8; border-radius:8px; padding:8px 10px; font-size:13px; font-weight:700; cursor:pointer; }
.ops-finance-attachment-list { margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; color:#64748b; font-size:12px; }
.ops-finance-attachment-list span { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border:1px solid #dbe8e2; border-radius:999px; background:#f8fafc; color:#334155; }
.ops-finance-expense-approval-preview { margin:14px; }

/* 动态费用明细行 */
.ops-finance-expense-item { display:grid; grid-template-columns:1fr 2fr 1fr 40px; gap:8px; align-items:center; margin-bottom:8px; }
.ops-finance-expense-item label { font-size:12px; color:#9ca3af; }
.ops-finance-expense-item input { margin-bottom:0; }
.ops-finance-expense-del { background:none; border:none; color:#dc2626; cursor:pointer; font-size:14px; min-width:44px; min-height:44px; border-radius:4px; transition:all 0.15s; }
.ops-finance-expense-del:hover { background:#fee2e2; }
.ops-finance-add-item-btn { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border:1px dashed #d1d5db; background:none; color:#6b7280; border-radius:6px; cursor:pointer; font-size:12px; min-height:36px; transition:all 0.2s; margin-bottom:14px; }
.ops-finance-add-item-btn:hover { border-color:#ea580c; color:#ea580c; }

/* 逾期标红 */
.ops-finance-overdue { color:#dc2626 !important; font-weight:600; }

/* 空状态 */
.ops-finance-empty { text-align:center; padding:40px; color:#9ca3af; }
.ops-finance-empty i { font-size:40px; margin-bottom:12px; display:block; }
.ops-finance-empty .title { font-size:15px; font-weight:500; }
.ops-finance-empty .desc { font-size:13px; margin-top:4px; }

/* 移动端375px适配 */
@media(max-width:500px) {
    .ops-finance-toolbar { flex-direction:column; align-items:stretch; }
    .ops-finance-search { width:100%; max-width:100%; }
    .ops-finance-filter, #ops-finance-project-filter, .ops-finance-btn { width:100%; }
    .ops-finance-modal { width:100%; max-width:100vw; border-radius:0; padding:20px 16px; }
    .ops-finance-detail-modal, .ops-finance-manage-modal { padding:0; }
    .ops-finance-expense-modal { width:100%; max-width:100vw; border-radius:0; padding:0; }
    .ops-finance-form-grid { grid-template-columns:1fr; }
    .ops-finance-project-options { grid-template-columns:1fr; max-height:180px; }
    .ops-finance-expense-line-head { display:none; }
    .ops-finance-expense-line-main,
    .ops-finance-expense-line-attachments-row { grid-template-columns:1fr; padding:0 14px 10px; }
    .ops-finance-expense-line-attachment-note,
    .ops-finance-expense-line-attachment-list { grid-column:1; }
    .ops-finance-expense-line-main button { width:100%; }
    .ops-finance-guide { grid-template-columns:1fr; }
    .ops-finance-context-title > div { align-items:flex-start; }
    .ops-finance-context-title span { white-space:normal; }
    .ops-finance-expense-tabs { grid-template-columns:1fr; }
    .ops-finance-expense-tab span { white-space:normal; }
    .ops-finance-supplier-tab { flex:1 1 calc(50% - 8px); justify-content:center; }
    .ops-finance-unified-actions { grid-template-columns:1fr; }
    .ops-finance-detail-grid, .ops-finance-workflow, .ops-finance-supervision-grid { grid-template-columns:1fr; }
    .ops-finance-expense-hero { flex-direction:column; }
    .ops-finance-expense-mini-grid, .ops-finance-expense-actions, .ops-finance-expense-evidence-list { grid-template-columns:1fr; }
    .ops-finance-expense-review-head { flex-direction:column; }
    .ops-finance-detail-meta { flex-direction:column; gap:8px; }
    .ops-finance-approval-btns { flex-direction:column; }
    .ops-finance-approval-btns .ops-finance-btn { width:100%; justify-content:center; }
    .ops-finance-expense-item { grid-template-columns:1fr 1fr; gap:6px; }
}

@media(max-width:360px) {
    .ops-finance-due-grid { grid-template-columns:1fr; }
}

/* ==================== V5.33.4: 供应商管理(ops_vendors)样式 ==================== */
.ops-vendors { display:flex; flex-direction:column; gap:20px; }
.ops-vendors-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .ops-vendors-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .ops-vendors-kpi-row { grid-template-columns:1fr 1fr; } }
.ops-vendors-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-vendors-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-vendors-kpi .ops-vendors-kpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-vendors-kpi .ops-vendors-kpi-info { display:flex; flex-direction:column; }
.ops-vendors-kpi .ops-vendors-kpi-value { font-size:22px; font-weight:700; }
.ops-vendors-kpi .ops-vendors-kpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.ops-vendors-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.ops-vendors-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.ops-vendors-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-vendors-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.ops-vendors-search input:focus { border-color:#0284c7; box-shadow:0 0 0 3px rgba(2,132,199,0.1); }
.ops-vendors-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.ops-vendors-filter:focus { border-color:#0284c7; }
.ops-vendors-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.ops-vendors-btn-add { background:#0284c7; color:#fff; }
.ops-vendors-btn-add:hover { background:#0369a1; transform:translateY(-1px); }
.ops-vendors-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-vendors-btn-export:hover { border-color:#0284c7; color:#0284c7; background:#e0f2fe; }

.ops-vendors-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ops-vendors-table-wrap table.ops-data-table thead th { position:sticky; top:0; z-index:1; }
.ops-vendors-id-link { color:#0284c7; cursor:pointer; font-weight:500; }
.ops-vendors-id-link:hover { text-decoration:underline; }
.ops-vendors-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.ops-vendors-action-btn.view { color:#0284c7; }
.ops-vendors-action-btn.view:hover { background:#e0f2fe; }
.ops-vendors-action-btn.edit { color:#2563eb; }
.ops-vendors-action-btn.edit:hover { background:#dbeafe; }
.ops-vendors-action-btn.delete { color:#dc2626; }
.ops-vendors-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }

/* 详情页 */
.ops-vendors-detail { display:flex; flex-direction:column; gap:20px; }
.ops-vendors-detail-top { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px 24px; }
.ops-vendors-detail-back { display:flex; align-items:center; gap:6px; color:#0284c7; cursor:pointer; font-size:13px; font-weight:500; background:none; border:none; padding:4px 8px; min-height:44px; border-radius:4px; transition:all 0.15s; }
.ops-vendors-detail-back:hover { background:#e0f2fe; }
.ops-vendors-detail-title-row { display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; }
.ops-vendors-detail-title { font-size:20px; font-weight:700; color:#1f2937; }
.ops-vendors-detail-meta { display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; font-size:13px; color:#6b7280; }
.ops-vendors-detail-meta span { display:flex; align-items:center; gap:4px; }
.ops-vendors-detail-actions { display:flex; gap:8px; margin-left:auto; align-items:center; }

.ops-vendors-tabs { display:flex; gap:0; background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-vendors-tab { flex:1; padding:12px 16px; text-align:center; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; background:none; min-height:44px; }
.ops-vendors-tab:hover { color:#0284c7; background:#f0f9ff; }
.ops-vendors-tab.active { color:#0284c7; border-bottom-color:#0284c7; background:#e0f2fe; }

.ops-vendors-tab-content { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px 24px; }
.ops-vendors-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:375px) { .ops-vendors-info-grid { grid-template-columns:1fr; } }
.ops-vendors-info-item { display:flex; flex-direction:column; gap:2px; }
.ops-vendors-info-label { font-size:12px; color:#9ca3af; }
.ops-vendors-info-value { font-size:14px; color:#374151; }
.ops-vendors-info-value.link { color:#0284c7; cursor:pointer; }
.ops-vendors-info-value.link:hover { text-decoration:underline; }
.ops-vendors-info-value.expiring { color:#d97706; font-weight:600; }
.ops-vendors-info-value.expired { color:#dc2626; font-weight:600; }
.ops-vendors-info-full { grid-column:1/-1; }

/* 资质管理 */
.ops-vendors-qual-list { display:flex; flex-direction:column; gap:12px; }
.ops-vendors-qual-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:14px 16px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; align-items:center; }
@media(max-width:375px) { .ops-vendors-qual-card { grid-template-columns:1fr; } }
.ops-vendors-qual-field { display:flex; flex-direction:column; gap:2px; }
.ops-vendors-qual-field-label { font-size:11px; color:#9ca3af; }
.ops-vendors-qual-field-value { font-size:13px; color:#374151; }
.ops-vendors-qual-field-value.expiring { color:#d97706; font-weight:600; }
.ops-vendors-qual-field-value.expired { color:#dc2626; font-weight:600; }
.ops-vendors-qual-actions { display:flex; gap:6px; justify-content:flex-end; grid-column:-2/-1; }
@media(max-width:375px) { .ops-vendors-qual-actions { grid-column:auto; } }

/* 合同记录 */
.ops-vendors-contract-list { display:flex; flex-direction:column; gap:0; }
.ops-vendors-contract-row { display:grid; grid-template-columns:130px 1fr 120px 100px 90px 100px; gap:10px; padding:12px 14px; align-items:center; border-bottom:1px solid #f3f4f6; font-size:13px; color:#374151; }
.ops-vendors-contract-row:last-child { border-bottom:none; }
.ops-vendors-contract-header { background:#f9fafb; font-size:12px; font-weight:600; color:#6b7280; }

/* 绩效评估 */
.ops-vendors-perf-list { display:flex; flex-direction:column; gap:12px; }
.ops-vendors-perf-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:14px 16px; }
.ops-vendors-perf-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.ops-vendors-perf-period { font-size:14px; font-weight:600; color:#1f2937; }
.ops-vendors-perf-scores { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:10px; }
@media(max-width:375px) { .ops-vendors-perf-scores { grid-template-columns:1fr 1fr; } }
.ops-vendors-perf-dim { display:flex; flex-direction:column; gap:4px; }
.ops-vendors-perf-dim-label { font-size:11px; color:#9ca3af; }
.ops-vendors-perf-dim-bar { height:6px; border-radius:3px; background:#e5e7eb; overflow:hidden; }
.ops-vendors-perf-dim-bar-fill { height:100%; border-radius:3px; transition:width 0.3s; }
.ops-vendors-perf-dim-val { font-size:13px; font-weight:600; color:#374151; }
.ops-vendors-perf-total { font-size:18px; font-weight:700; color:#0284c7; }
.ops-vendors-perf-meta { font-size:12px; color:#9ca3af; }

.ops-vendors-tab-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.ops-vendors-tab-header h4 { font-size:15px; font-weight:600; color:#1f2937; }

/* 弹窗 */
.ops-vendors-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-vendors-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
@media(max-width:375px) { .ops-vendors-modal { width:95vw; padding:20px 16px; } }
.ops-vendors-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.ops-vendors-modal h3 i { color:#0284c7; margin-right:8px; }
.ops-vendors-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.ops-vendors-modal label .required { color:#dc2626; margin-left:2px; }
.ops-vendors-modal input, .ops-vendors-modal select, .ops-vendors-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; min-height:36px; }
.ops-vendors-modal input:focus, .ops-vendors-modal select:focus, .ops-vendors-modal textarea:focus { border-color:#0284c7; box-shadow:0 0 0 2px rgba(2,132,199,0.1); }
.ops-vendors-modal textarea { resize:vertical; min-height:80px; }
.ops-vendors-modal input[readonly] { background:#f9fafb; color:#6b7280; cursor:not-allowed; }
.ops-vendors-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:375px) { .ops-vendors-modal-row { grid-template-columns:1fr; } }
.ops-vendors-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.ops-vendors-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-vendors-modal-cancel:hover { background:#f9fafb; }
.ops-vendors-modal-save { padding:8px 20px; border:none; background:#0284c7; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-vendors-modal-save:hover { background:#0369a1; }
.ops-vendors-modal-save:disabled { background:#9ca3af; cursor:not-allowed; }
.ops-vendors-modal-delete { padding:8px 20px; border:none; background:#dc2626; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-vendors-modal-delete:hover { background:#b91c1c; }

/* 确认弹窗 */
.ops-vendors-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10001; display:flex; align-items:center; justify-content:center; }
.ops-vendors-confirm { background:#fff; border-radius:12px; padding:24px; width:90%; max-width:420px; box-shadow:0 8px 32px rgba(0,0,0,0.18); text-align:center; }
.ops-vendors-confirm h4 { font-size:15px; font-weight:600; color:#1f2937; margin:0 0 10px; }
.ops-vendors-confirm p { font-size:13px; color:#6b7280; margin:0 0 20px; line-height:1.6; }
.ops-vendors-confirm-actions { display:flex; justify-content:center; gap:10px; }
.ops-vendors-confirm-actions button { padding:8px 24px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; min-height:44px; }

/* 状态变更弹窗 */
.ops-vendors-status-modal { width:480px; max-width:90vw; }
.ops-vendors-status-modal .ops-vendors-modal h3 i { color:#d97706; }

/* 星级 */
.ops-vendors-star { color:#fbbf24; font-size:12px; }
.ops-vendors-star-empty { color:#d1d5db; font-size:12px; }

/* 评级标签 */
.ops-vendors-rating-tag { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.ops-vendors-rating-tag.a { background:#dcfce7; color:#16a34a; }
.ops-vendors-rating-tag.b { background:#dbeafe; color:#2563eb; }
.ops-vendors-rating-tag.c { background:#fef3c7; color:#d97706; }
.ops-vendors-rating-tag.d { background:#fee2e2; color:#dc2626; }

/* 空状态 */
.ops-vendors-empty { text-align:center; padding:40px; color:#9ca3af; }
.ops-vendors-empty i { font-size:40px; margin-bottom:12px; display:block; }
.ops-vendors-empty-title { font-size:15px; font-weight:500; }
.ops-vendors-empty-desc { font-size:13px; margin-top:4px; }

/* 项目数标签 */
.ops-vendors-project-count { display:inline-flex; align-items:center; gap:4px; }
.ops-vendors-project-count.zero { color:#9ca3af; }

/* 375px移动端适配 */
@media(max-width:375px) {
    .ops-vendors-toolbar { flex-direction:column; align-items:stretch; }
    .ops-vendors-search { max-width:100%; min-width:0; }
    .ops-vendors-filter { width:100%; }
    .ops-vendors-btn { width:100%; justify-content:center; }
    .ops-vendors-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .ops-vendors-table-wrap .ops-data-table { display:block; min-width:700px; }
    .ops-vendors-modal { width:95vw; }
    .ops-vendors-modal-row { grid-template-columns:1fr; }
}

/* ==================== V5.33.5: 质量管理(ops_quality)样式 ==================== */
.ops-quality { display:flex; flex-direction:column; gap:20px; }

/* KPI卡片行 */
.ops-quality-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .ops-quality-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .ops-quality-kpi-row { grid-template-columns:1fr 1fr; } }
.ops-quality-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-quality-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-quality-kpi .oqkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-quality-kpi .oqkpi-info { display:flex; flex-direction:column; }
.ops-quality-kpi .oqkpi-value { font-size:22px; font-weight:700; line-height:1.2; }
.ops-quality-kpi .oqkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 子Tab切换区 */
.ops-quality-tabs { display:flex; gap:0; border-bottom:2px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ops-quality-tab { padding:10px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; transition:all 0.2s; flex-shrink:0; min-height:44px; display:flex; align-items:center; }
.ops-quality-tab:hover { color:#dc2626; }
.ops-quality-tab.active { color:#dc2626; border-bottom-color:#dc2626; font-weight:600; }

/* 工具栏 */
.ops-quality-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 0; }
.ops-quality-search { position:relative; flex:1; min-width:200px; max-width:360px; }
.ops-quality-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-quality-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:border-color 0.2s; }
.ops-quality-search input:focus { border-color:#dc2626; box-shadow:0 0 0 3px rgba(220,38,38,0.1); }
.ops-quality-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; min-width:100px; min-height:36px; }
.ops-quality-filter:focus { border-color:#dc2626; }
.ops-quality-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.ops-quality-btn-add { background:#dc2626; color:#fff; }
.ops-quality-btn-add:hover { background:#b91c1c; transform:translateY(-1px); }
.ops-quality-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-quality-btn-export:hover { border-color:#dc2626; color:#dc2626; background:#fef2f2; }

/* 表格区 */
.ops-quality-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ops-quality-table-wrap table { width:100%; border-collapse:collapse; }
.ops-quality-table-wrap thead th { padding:10px 14px; font-size:12px; font-weight:600; color:#6b7280; background:#f9fafb; border-bottom:1px solid #e5e7eb; text-align:left; position:sticky; top:0; z-index:1; }
.ops-quality-table-wrap tbody td { padding:10px 14px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }
.ops-quality-table-wrap tbody tr:hover { background:#fef2f2; }

/* 编号可点击 */
.ops-quality-id-link { color:#dc2626; cursor:pointer; font-weight:500; text-decoration:none; }
.ops-quality-id-link:hover { text-decoration:underline; }

/* 操作按钮 */
.ops-quality-action { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:6px; font-size:12px; cursor:pointer; border:none; background:transparent; transition:all 0.15s; min-height:44px; min-width:44px; }
.ops-quality-action-view { color:#dc2626; }
.ops-quality-action-view:hover { background:#fef2f2; }
.ops-quality-action-process { color:#d97706; }
.ops-quality-action-process:hover { background:#fef3c7; }
.ops-quality-action-capa { color:#2563eb; }
.ops-quality-action-capa:hover { background:#dbeafe; }

/* 严重程度标签 */
.ops-quality-severity { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; white-space:nowrap; }
.ops-quality-severity.critical { background:#fef2f2; color:#dc2626; }
.ops-quality-severity.major { background:#fffbeb; color:#d97706; }
.ops-quality-severity.minor { background:#f0fdf4; color:#16a34a; }

/* 发现项等级 */
.ops-quality-grade { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; white-space:nowrap; }
.ops-quality-grade.critical { background:#fef2f2; color:#dc2626; }
.ops-quality-grade.major { background:#fffbeb; color:#d97706; }
.ops-quality-grade.minor { background:#f0fdf4; color:#16a34a; }

/* 发现项数 */
.ops-quality-finding-count { font-weight:600; }
.ops-quality-finding-count.zero { color:#16a34a; }
.ops-quality-finding-count.has { color:#d97706; }

/* 逾期标记 */
.ops-quality-overdue { color:#dc2626; font-weight:600; }

/* ---- 详情页 ---- */
.ops-quality-detail { display:flex; flex-direction:column; gap:16px; }
.ops-quality-detail-top { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px 24px; }
.ops-quality-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:13px; color:#6b7280; cursor:pointer; border:1px solid #e5e7eb; border-radius:8px; background:#fff; transition:all 0.2s; min-height:44px; }
.ops-quality-detail-back:hover { color:#dc2626; border-color:#dc2626; background:#fef2f2; }
.ops-quality-detail-title-row { display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; }
.ops-quality-detail-title { font-size:20px; font-weight:700; color:#1f2937; }
.ops-quality-detail-meta { display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; font-size:13px; color:#6b7280; }
.ops-quality-detail-meta span { display:flex; align-items:center; gap:4px; }

/* 详情字段 */
.ops-quality-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:375px) { .ops-quality-info-grid { grid-template-columns:1fr; } }
.ops-quality-info-item { display:flex; flex-direction:column; gap:2px; }
.ops-quality-info-label { font-size:12px; color:#9ca3af; }
.ops-quality-info-value { font-size:14px; color:#374151; }
.ops-quality-info-value.link { color:#dc2626; cursor:pointer; }
.ops-quality-info-value.link:hover { text-decoration:underline; }
.ops-quality-info-full { grid-column:1/-1; }

/* 详情关联链接 */
.ops-quality-link { color:#2563eb; cursor:pointer; text-decoration:none; }
.ops-quality-link:hover { text-decoration:underline; }

/* 发现项列表 */
.ops-quality-findings-list { display:flex; flex-direction:column; gap:10px; }
.ops-quality-finding-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:12px 16px; }
.ops-quality-finding-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.ops-quality-finding-id { font-size:13px; font-weight:600; color:#1f2937; }
.ops-quality-finding-desc { font-size:13px; color:#374151; margin-bottom:6px; }

/* CAPA措施编辑区 */
.ops-quality-capa-measures { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:16px; margin-top:12px; }
.ops-quality-capa-measures h5 { font-size:14px; font-weight:600; color:#1f2937; margin:0 0 12px; }
.ops-quality-capa-measure-field { margin-bottom:12px; }
.ops-quality-capa-measure-field label { font-size:12px; color:#6b7280; display:block; margin-bottom:4px; }
.ops-quality-capa-measure-field input,
.ops-quality-capa-measure-field textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:13px; outline:none; }
.ops-quality-capa-measure-field textarea { min-height:60px; resize:vertical; }
.ops-quality-capa-measure-field input:focus,
.ops-quality-capa-measure-field textarea:focus { border-color:#dc2626; box-shadow:0 0 0 2px rgba(220,38,38,0.1); }

/* 有效性验证 */
.ops-quality-verification { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:8px; padding:16px; margin-top:12px; }
.ops-quality-verification h5 { font-size:14px; font-weight:600; color:#16a34a; margin:0 0 12px; }

/* 空状态 */
.ops-quality-empty { text-align:center; padding:40px; color:#9ca3af; }
.ops-quality-empty i { font-size:40px; margin-bottom:12px; display:block; }
.ops-quality-empty-title { font-size:15px; font-weight:500; }
.ops-quality-empty-desc { font-size:13px; margin-top:4px; }

/* ---- 弹窗 ---- */
.ops-quality-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-quality-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
@media(max-width:375px) { .ops-quality-modal { width:95vw; padding:20px 16px; } }
.ops-quality-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.ops-quality-modal h3 i { color:#dc2626; margin-right:8px; }
.ops-quality-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.ops-quality-modal label .required { color:#dc2626; margin-left:2px; }
.ops-quality-modal input, .ops-quality-modal select, .ops-quality-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; min-height:36px; }
.ops-quality-modal input:focus, .ops-quality-modal select:focus, .ops-quality-modal textarea:focus { border-color:#dc2626; box-shadow:0 0 0 2px rgba(220,38,38,0.1); }
.ops-quality-modal textarea { resize:vertical; min-height:80px; }
.ops-quality-modal input[readonly] { background:#f9fafb; color:#6b7280; cursor:not-allowed; }
.ops-quality-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:375px) { .ops-quality-modal-row { grid-template-columns:1fr; } }
.ops-quality-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.ops-quality-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-quality-modal-cancel:hover { background:#f9fafb; }
.ops-quality-modal-save { padding:8px 20px; border:none; background:#dc2626; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-quality-modal-save:hover { background:#b91c1c; }

/* 确认弹窗 */
.ops-quality-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10001; display:flex; align-items:center; justify-content:center; }
.ops-quality-confirm { background:#fff; border-radius:12px; padding:24px; width:90%; max-width:420px; box-shadow:0 8px 32px rgba(0,0,0,0.18); text-align:center; }
.ops-quality-confirm h4 { font-size:15px; font-weight:600; color:#1f2937; margin:0 0 10px; }
.ops-quality-confirm p { font-size:13px; color:#6b7280; margin:0 0 20px; line-height:1.6; }
.ops-quality-confirm-actions { display:flex; justify-content:center; gap:10px; }
.ops-quality-confirm-actions button { padding:8px 24px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; border:none; min-height:44px; }

/* 375px移动端适配 */
@media(max-width:375px) {
    .ops-quality-kpi-row { grid-template-columns:1fr 1fr; }
    .ops-quality-kpi { padding:12px; }
    .ops-quality-kpi .oqkpi-icon { width:36px; height:36px; font-size:15px; }
    .ops-quality-kpi .oqkpi-value { font-size:18px; }
    .ops-quality-tabs { -webkit-overflow-scrolling:touch; }
    .ops-quality-toolbar { flex-direction:column; align-items:stretch; }
    .ops-quality-search { max-width:100%; min-width:0; }
    .ops-quality-filter { width:100%; }
    .ops-quality-btn { width:100%; justify-content:center; }
    .ops-quality-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .ops-quality-table-wrap table { min-width:700px; display:block; }
    .ops-quality-modal { width:95vw; }
    .ops-quality-modal-row { grid-template-columns:1fr; }
    .ops-quality-info-grid { grid-template-columns:1fr; }
    .ops-quality-severity { font-size:10px; }
}

/* ==================== V5.33.6: 合规管理(ops_compliance)样式 ==================== */
.ops-compliance { display:flex; flex-direction:column; gap:20px; }
.ops-compliance-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .ops-compliance-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .ops-compliance-kpi-row { grid-template-columns:1fr 1fr; } }
.ops-compliance-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-compliance-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-compliance-kpi .ckpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-compliance-kpi .ckpi-info { display:flex; flex-direction:column; }
.ops-compliance-kpi .ckpi-value { font-size:22px; font-weight:700; }
.ops-compliance-kpi .ckpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.ops-compliance-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.ops-compliance-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.ops-compliance-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-compliance-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.ops-compliance-search input:focus { border-color:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,0.1); }
.ops-compliance-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; }
.ops-compliance-filter:focus { border-color:#4f46e5; }
.ops-compliance-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.ops-compliance-btn-add { background:#4f46e5; color:#fff; }
.ops-compliance-btn-add:hover { background:#4338ca; transform:translateY(-1px); }
.ops-compliance-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-compliance-btn-export:hover { border-color:#4f46e5; color:#4f46e5; background:#eef2ff; }

.ops-compliance-sub-tabs { display:flex; gap:0; background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-compliance-sub-tab { flex:1; padding:12px 20px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; text-align:center; transition:all 0.2s; border-bottom:2px solid transparent; min-height:44px; display:flex; align-items:center; justify-content:center; gap:6px; }
.ops-compliance-sub-tab:hover { color:#4f46e5; background:#f5f3ff; }
.ops-compliance-sub-tab.active { color:#4f46e5; border-bottom-color:#4f46e5; background:#eef2ff; font-weight:600; }

.ops-compliance-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }

.ops-compliance-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; border-radius:4px; transition:all 0.15s; display:inline-flex; align-items:center; gap:3px; min-height:28px; }
.ops-compliance-action-btn:hover { background:#f3f4f6; }
.ops-compliance-action-btn.btn-view { color:#4f46e5; }
.ops-compliance-action-btn.btn-view:hover { color:#4338ca; background:#eef2ff; }
.ops-compliance-action-btn.btn-implement { color:#16a34a; }
.ops-compliance-action-btn.btn-implement:hover { color:#15803d; background:#dcfce7; }
.ops-compliance-action-btn.btn-edit { color:#2563eb; }
.ops-compliance-action-btn.btn-edit:hover { color:#1d4ed8; background:#dbeafe; }
.ops-compliance-action-btn.btn-review { color:#d97706; }
.ops-compliance-action-btn.btn-review:hover { color:#b45309; background:#fef3c7; }
.ops-compliance-action-btn.btn-start { color:#2563eb; }
.ops-compliance-action-btn.btn-start:hover { color:#1d4ed8; background:#dbeafe; }
.ops-compliance-action-btn.btn-complete { color:#16a34a; }
.ops-compliance-action-btn.btn-complete:hover { color:#15803d; background:#dcfce7; }
.ops-compliance-action-btn.btn-delete { color:#dc2626; }
.ops-compliance-action-btn.btn-delete:hover { color:#b91c1c; background:#fee2e2; }

.ops-compliance-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-compliance-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.ops-compliance-detail-back:hover { background:#e5e7eb; }
.ops-compliance-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.ops-compliance-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ops-compliance-detail-header h3 i { color:#4f46e5; }
.ops-compliance-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.ops-compliance-detail-meta span { display:flex; align-items:center; gap:4px; }
.ops-compliance-detail-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.ops-compliance-detail-actions button { padding:6px 14px; border-radius:6px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:4px; min-height:36px; }
.ops-compliance-detail-actions .btn-assess-action { background:#dbeafe; color:#2563eb; }
.ops-compliance-detail-actions .btn-assess-action:hover { background:#bfdbfe; }
.ops-compliance-detail-actions .btn-implement-action { background:#dcfce7; color:#16a34a; }
.ops-compliance-detail-actions .btn-implement-action:hover { background:#bbf7d0; }
.ops-compliance-detail-actions .btn-done-action { background:#d1fae5; color:#059669; }
.ops-compliance-detail-actions .btn-done-action:hover { background:#a7f3d0; }
.ops-compliance-detail-actions .btn-review-action { background:#fef3c7; color:#d97706; }
.ops-compliance-detail-actions .btn-review-action:hover { background:#fde68a; }
.ops-compliance-detail-actions .btn-revise-action { background:#ffedd5; color:#ea580c; }
.ops-compliance-detail-actions .btn-revise-action:hover { background:#fed7aa; }
.ops-compliance-detail-actions .btn-obsolete-action { background:#fee2e2; color:#dc2626; }
.ops-compliance-detail-actions .btn-obsolete-action:hover { background:#fecaca; }
.ops-compliance-detail-actions .btn-complete-action { background:#dcfce7; color:#16a34a; }
.ops-compliance-detail-actions .btn-complete-action:hover { background:#bbf7d0; }
.ops-compliance-detail-actions .btn-rectify-action { background:#ffedd5; color:#ea580c; }
.ops-compliance-detail-actions .btn-rectify-action:hover { background:#fed7aa; }
.ops-compliance-detail-actions .btn-close-action { background:#d1fae5; color:#059669; }
.ops-compliance-detail-actions .btn-close-action:hover { background:#a7f3d0; }

.ops-compliance-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.ops-compliance-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.ops-compliance-tab:hover { color:#4f46e5; }
.ops-compliance-tab.active { color:#4f46e5; border-bottom-color:#4f46e5; }
.ops-compliance-tab-content { padding:20px; }

.ops-compliance-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:375px) { .ops-compliance-info-grid { grid-template-columns:1fr; } }
.ops-compliance-info-item { display:flex; flex-direction:column; gap:4px; }
.ops-compliance-info-label { font-size:12px; color:#9ca3af; }
.ops-compliance-info-value { font-size:14px; color:#1f2937; font-weight:500; }
.ops-compliance-info-value a { color:#4f46e5; text-decoration:none; cursor:pointer; }
.ops-compliance-info-value a:hover { text-decoration:underline; }

.ops-compliance-project-card { border:1px solid #e5e7eb; border-radius:8px; padding:14px; margin-bottom:10px; background:#f9fafb; }
.ops-compliance-project-card .project-name { font-weight:600; color:#1f2937; font-size:14px; margin-bottom:6px; }
.ops-compliance-project-card .project-meta { display:flex; gap:12px; font-size:12px; color:#6b7280; align-items:center; }

.ops-compliance-measure-item { border:1px solid #e5e7eb; border-radius:8px; padding:12px 14px; margin-bottom:8px; background:#f9fafb; }
.ops-compliance-measure-item .measure-desc { font-size:13px; color:#1f2937; font-weight:500; margin-bottom:4px; }
.ops-compliance-measure-item .measure-meta { display:flex; gap:12px; font-size:12px; color:#6b7280; }

.ops-compliance-timeline { position:relative; padding-left:24px; }
.ops-compliance-timeline::before { content:''; position:absolute; left:8px; top:4px; bottom:4px; width:2px; background:#e5e7eb; }
.ops-compliance-timeline-item { position:relative; margin-bottom:16px; padding-left:20px; }
.ops-compliance-timeline-item::before { content:''; position:absolute; left:-20px; top:6px; width:10px; height:10px; border-radius:50%; background:#4f46e5; border:2px solid #fff; box-shadow:0 0 0 2px #4f46e5; }
.ops-compliance-timeline-item .tl-version { font-size:14px; font-weight:600; color:#1f2937; }
.ops-compliance-timeline-item .tl-date { font-size:12px; color:#9ca3af; margin-top:2px; }
.ops-compliance-timeline-item .tl-summary { font-size:13px; color:#6b7280; margin-top:4px; }

.ops-compliance-check-item { display:flex; align-items:center; gap:12px; padding:10px 14px; border-bottom:1px solid #f3f4f6; font-size:13px; }
.ops-compliance-check-item:last-child { border-bottom:none; }
.ops-compliance-check-item .check-item-name { flex:1; color:#1f2937; }
.ops-compliance-check-item .check-item-result { min-width:60px; text-align:center; font-weight:500; }
.ops-compliance-check-item .check-item-result.pass { color:#16a34a; }
.ops-compliance-check-item .check-item-result.fail { color:#dc2626; }
.ops-compliance-check-item .check-item-result.na { color:#9ca3af; }
.ops-compliance-check-item .check-item-note { min-width:160px; color:#6b7280; font-size:12px; }

.ops-compliance-finding-item { border:1px solid #e5e7eb; border-radius:8px; padding:14px; margin-bottom:10px; }
.ops-compliance-finding-item .finding-desc { font-size:13px; color:#dc2626; font-weight:500; margin-bottom:6px; }
.ops-compliance-finding-item .finding-suggestion { font-size:12px; color:#6b7280; margin-bottom:6px; }
.ops-compliance-finding-item .finding-meta { display:flex; gap:12px; font-size:12px; color:#9ca3af; align-items:center; }

.ops-compliance-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-compliance-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
@media(max-width:375px) { .ops-compliance-modal { width:95vw; padding:20px 16px; } }
.ops-compliance-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.ops-compliance-modal h3 i { color:#4f46e5; margin-right:8px; }
.ops-compliance-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.ops-compliance-modal label .required { color:#dc2626; margin-left:2px; }
.ops-compliance-modal input, .ops-compliance-modal select, .ops-compliance-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; box-sizing:border-box; }
.ops-compliance-modal input:focus, .ops-compliance-modal select:focus, .ops-compliance-modal textarea:focus { border-color:#4f46e5; box-shadow:0 0 0 2px rgba(79,70,229,0.1); }
.ops-compliance-modal input[readonly], .ops-compliance-modal select[readonly] { background:#f9fafb; color:#6b7280; }
.ops-compliance-modal textarea { resize:vertical; min-height:60px; }
.ops-compliance-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:375px) { .ops-compliance .ops-compliance-modal .ops-compliance-modal-row { grid-template-columns:1fr; } }
.ops-compliance-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.ops-compliance-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.ops-compliance-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.ops-compliance-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.ops-compliance-modal-actions .btn-save { background:#4f46e5; color:#fff; }
.ops-compliance-modal-actions .btn-save:hover { background:#4338ca; }
.ops-compliance-modal-actions .btn-confirm-green { background:#16a34a; color:#fff; }
.ops-compliance-modal-actions .btn-confirm-green:hover { background:#15803d; }
.ops-compliance-modal-actions .btn-confirm-red { background:#dc2626; color:#fff; }
.ops-compliance-modal-actions .btn-confirm-red:hover { background:#b91c1c; }
.ops-compliance-modal-actions .btn-approve-green { background:#16a34a; color:#fff; }
.ops-compliance-modal-actions .btn-approve-green:hover { background:#15803d; }
.ops-compliance-modal-actions .btn-reject-red { background:#dc2626; color:#fff; }
.ops-compliance-modal-actions .btn-reject-red:hover { background:#b91c1c; }

.ops-compliance-project-checklist { max-height:150px; overflow-y:auto; border:1px solid #d1d5db; border-radius:6px; padding:8px; margin-bottom:14px; }
.ops-compliance-project-checklist label { display:flex; align-items:center; gap:6px; padding:4px 0; cursor:pointer; font-size:13px; color:#374151; }
.ops-compliance-project-checklist input[type="checkbox"] { width:auto; margin:0; }

.ops-compliance-empty { text-align:center; padding:48px 20px; }
.ops-compliance-empty i { font-size:40px; color:#d1d5db; display:block; margin-bottom:12px; }
.ops-compliance-empty .empty-title { font-size:15px; color:#6b7280; margin-bottom:6px; }
.ops-compliance-empty .empty-desc { font-size:13px; color:#9ca3af; margin-bottom:16px; }
.ops-compliance-empty button { padding:10px 24px; background:#4f46e5; color:#fff; border:none; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; transition:all 0.2s; min-height:44px; }
.ops-compliance-empty button:hover { background:#4338ca; transform:translateY(-1px); }

.pm-status-tag.published { background:#fef3c7; color:#d97706; border:1px solid #fcd34d; }
.pm-status-tag.assessing { background:#dbeafe; color:#2563eb; border:1px solid #93c5fd; }
.pm-status-tag.implementing { background:#ffedd5; color:#ea580c; border:1px solid #fdba74; }
.pm-status-tag.implemented { background:#dcfce7; color:#16a34a; border:1px solid #86efac; }
.pm-status-tag.drafting { background:#fef3c7; color:#d97706; border:1px solid #fcd34d; }
.pm-status-tag.reviewing { background:#dbeafe; color:#2563eb; border:1px solid #93c5fd; }
.pm-status-tag.effective { background:#dcfce7; color:#16a34a; border:1px solid #86efac; }
.pm-status-tag.revising { background:#ffedd5; color:#ea580c; border:1px solid #fdba74; }
.pm-status-tag.obsolete { background:#f3f4f6; color:#9ca3af; border:1px solid #d1d5db; }
.pm-status-tag.in_progress { background:#dbeafe; color:#2563eb; border:1px solid #93c5fd; }
.pm-status-tag.ops-completed { background:#dcfce7; color:#16a34a; border:1px solid #86efac; }
.pm-status-tag.rectifying { background:#ffedd5; color:#ea580c; border:1px solid #fdba74; }
.pm-status-tag.ops-closed { background:#d1fae5; color:#059669; border:1px solid #6ee7b7; }

@media(max-width:768px) {
    .ops-compliance .ops-compliance-action-btn { min-height:44px; min-width:44px; padding:8px 12px; }
}
@media(max-width:375px) {
    .ops-compliance-toolbar { flex-direction:column; align-items:stretch; }
    .ops-compliance-search { max-width:100%; }
    .ops-compliance-detail-meta { flex-direction:column; gap:8px; }
}

/* ==================== V5.33.7: 资源预约(ops_booking)样式 ==================== */
.ops-booking { display:flex; flex-direction:column; gap:20px; }
.ops-booking-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .ops-booking-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .ops-booking-kpi-row { grid-template-columns:1fr 1fr; } }
.ops-booking-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-booking-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-booking-kpi .bkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-booking-kpi .bkpi-info { display:flex; flex-direction:column; }
.ops-booking-kpi .bkpi-value { font-size:22px; font-weight:700; }
.ops-booking-kpi .bkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.ops-booking-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.ops-booking-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.ops-booking-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-booking-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.ops-booking-search input:focus { border-color:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,0.1); }
.ops-booking-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; }
.ops-booking-filter:focus { border-color:#7c3aed; }
.ops-booking-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.ops-booking-btn-add { background:#7c3aed; color:#fff; }
.ops-booking-btn-add:hover { background:#6d28d9; transform:translateY(-1px); }
.ops-booking-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-booking-btn-export:hover { border-color:#7c3aed; color:#7c3aed; background:#f5f3ff; }
.ops-booking-view-toggle { display:flex; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; }
.ops-booking-view-toggle button { padding:8px 14px; border:none; background:#fff; color:#6b7280; font-size:12px; cursor:pointer; transition:all 0.2s; min-height:36px; display:flex; align-items:center; gap:4px; }
.ops-booking-view-toggle button.active { background:#7c3aed; color:#fff; }
.ops-booking-view-toggle button:first-child { border-right:1px solid #e5e7eb; }

.ops-booking-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }

.ops-booking-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; border-radius:4px; transition:all 0.15s; display:inline-flex; align-items:center; gap:3px; min-height:28px; }
.ops-booking-action-btn:hover { background:#f3f4f6; }
.ops-booking-action-btn.btn-view { color:#7c3aed; }
.ops-booking-action-btn.btn-view:hover { color:#6d28d9; background:#f5f3ff; }
.ops-booking-action-btn.btn-cancel { color:#d97706; }
.ops-booking-action-btn.btn-cancel:hover { color:#b45309; background:#fef3c7; }

.ops-booking-calendar { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-booking-calendar-header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #e5e7eb; }
.ops-booking-calendar-header h4 { margin:0; font-size:14px; color:#1f2937; }
.ops-booking-calendar-nav { display:flex; gap:8px; }
.ops-booking-calendar-nav button { padding:4px 10px; border:1px solid #e5e7eb; border-radius:6px; background:#fff; cursor:pointer; font-size:12px; transition:all 0.15s; }
.ops-booking-calendar-nav button:hover { background:#f5f3ff; border-color:#7c3aed; color:#7c3aed; }
.ops-booking-calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); }
.ops-booking-calendar-day { min-height:80px; border-right:1px solid #f3f4f6; border-bottom:1px solid #f3f4f6; padding:4px; }
.ops-booking-calendar-day:nth-child(7n) { border-right:none; }
.ops-booking-calendar-day .day-label { font-size:11px; color:#9ca3af; margin-bottom:4px; text-align:center; }
.ops-booking-calendar-day .day-date { font-size:12px; color:#6b7280; text-align:center; margin-bottom:4px; font-weight:500; }
.ops-booking-calendar-day.today .day-date { color:#7c3aed; font-weight:700; }
.ops-booking-calendar-bar { padding:2px 6px; border-radius:3px; font-size:10px; margin-bottom:2px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:all 0.15s; }
.ops-booking-calendar-bar:hover { opacity:0.85; transform:scale(1.02); }
.ops-booking-calendar-bar.bar-booked { background:#ede9fe; color:#7c3aed; }
.ops-booking-calendar-bar.bar-in-use { background:#dcfce7; color:#16a34a; }
.ops-booking-calendar-bar.bar-completed { background:#f3f4f6; color:#6b7280; }
.ops-booking-calendar-bar.bar-cancelled { background:#fee2e2; color:#dc2626; text-decoration:line-through; }
.ops-booking-calendar-bar.bar-conflict { background:#fee2e2; color:#dc2626; border:1px solid #fca5a5; }

.ops-booking-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-booking-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.ops-booking-detail-back:hover { background:#e5e7eb; }
.ops-booking-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.ops-booking-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ops-booking-detail-header h3 i { color:#7c3aed; }
.ops-booking-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.ops-booking-detail-meta span { display:flex; align-items:center; gap:4px; }
.ops-booking-detail-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.ops-booking-detail-actions button { padding:6px 14px; border-radius:6px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:4px; min-height:36px; }
.ops-booking-detail-actions .btn-cancel-action { background:#fef3c7; color:#d97706; }
.ops-booking-detail-actions .btn-cancel-action:hover { background:#fde68a; }

.ops-booking-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.ops-booking-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.ops-booking-tab:hover { color:#7c3aed; }
.ops-booking-tab.active { color:#7c3aed; border-bottom-color:#7c3aed; }
.ops-booking-tab-content { padding:20px; }

.ops-booking-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:375px) { .ops-booking-info-grid { grid-template-columns:1fr; } }
.ops-booking-info-item { display:flex; flex-direction:column; gap:4px; }
.ops-booking-info-label { font-size:12px; color:#9ca3af; }
.ops-booking-info-value { font-size:14px; color:#1f2937; font-weight:500; }
.ops-booking-info-value a { color:#7c3aed; text-decoration:none; cursor:pointer; }
.ops-booking-info-value a:hover { text-decoration:underline; }

.ops-booking-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-booking-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
@media(max-width:375px) { .ops-booking-modal { width:95vw; padding:20px 16px; } }
.ops-booking-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.ops-booking-modal h3 i { color:#7c3aed; margin-right:8px; }
.ops-booking-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.ops-booking-modal label .required { color:#dc2626; margin-left:2px; }
.ops-booking-modal input, .ops-booking-modal select, .ops-booking-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; box-sizing:border-box; }
.ops-booking-modal input:focus, .ops-booking-modal select:focus, .ops-booking-modal textarea:focus { border-color:#7c3aed; box-shadow:0 0 0 2px rgba(124,58,237,0.1); }
.ops-booking-modal input[readonly], .ops-booking-modal select[readonly] { background:#f9fafb; color:#6b7280; }
.ops-booking-modal textarea { resize:vertical; min-height:60px; }
.ops-booking-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:375px) { .ops-booking .ops-booking-modal .ops-booking-modal-row { grid-template-columns:1fr; } }
.ops-booking-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.ops-booking-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.ops-booking-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.ops-booking-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.ops-booking-modal-actions .btn-save { background:#7c3aed; color:#fff; }
.ops-booking-modal-actions .btn-save:hover { background:#6d28d9; }
.ops-booking-modal-actions .btn-confirm-green { background:#16a34a; color:#fff; }
.ops-booking-modal-actions .btn-confirm-green:hover { background:#15803d; }
.ops-booking-modal-actions .btn-confirm-red { background:#dc2626; color:#fff; }
.ops-booking-modal-actions .btn-confirm-red:hover { background:#b91c1c; }

.ops-booking-conflict-warn { background:#fee2e2; border:1px solid #fca5a5; border-radius:8px; padding:10px 14px; margin-bottom:14px; font-size:13px; color:#dc2626; display:flex; align-items:center; gap:6px; }
.ops-booking-conflict-remind { background:#fef3c7; border:1px solid #fcd34d; border-radius:8px; padding:10px 14px; margin-bottom:14px; font-size:13px; color:#d97706; display:flex; align-items:center; gap:6px; }

.ops-booking-empty { text-align:center; padding:48px 20px; }
.ops-booking-empty i { font-size:40px; color:#d1d5db; display:block; margin-bottom:12px; }
.ops-booking-empty .empty-title { font-size:15px; color:#6b7280; margin-bottom:6px; }
.ops-booking-empty .empty-desc { font-size:13px; color:#9ca3af; margin-bottom:16px; }
.ops-booking-empty button { padding:10px 24px; background:#7c3aed; color:#fff; border:none; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; transition:all 0.2s; min-height:44px; }
.ops-booking-empty button:hover { background:#6d28d9; transform:translateY(-1px); }

.pm-status-tag.booked { background:#dbeafe; color:#2563eb; border:1px solid #93c5fd; }
.pm-status-tag.in_use { background:#dcfce7; color:#16a34a; border:1px solid #86efac; }
.pm-status-tag.booking-completed { background:#f3f4f6; color:#6b7280; border:1px solid #d1d5db; }
.pm-status-tag.booking-cancelled { background:#f3f4f6; color:#9ca3af; text-decoration:line-through; border:1px solid #d1d5db; }
.pm-status-tag.no_show { background:#fee2e2; color:#dc2626; border:1px solid #fca5a5; }
.pm-status-tag.available { background:#dcfce7; color:#16a34a; border:1px solid #86efac; }
.pm-status-tag.maintenance { background:#fef3c7; color:#d97706; border:1px solid #fcd34d; }
.pm-status-tag.retired { background:#f3f4f6; color:#9ca3af; border:1px solid #d1d5db; }

.ops-booking-resource-card { border:1px solid #e5e7eb; border-radius:8px; padding:14px; margin-bottom:10px; background:#f9fafb; }
.ops-booking-resource-card .res-name { font-weight:600; color:#1f2937; font-size:14px; margin-bottom:6px; }
.ops-booking-resource-card .res-meta { display:flex; gap:12px; font-size:12px; color:#6b7280; flex-wrap:wrap; align-items:center; }

.ops-booking-history-item { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f3f4f6; font-size:13px; }
.ops-booking-history-item:last-child { border-bottom:none; }
.ops-booking-history-item .hist-id { color:#7c3aed; cursor:pointer; font-weight:500; min-width:110px; }
.ops-booking-history-item .hist-person { min-width:60px; }
.ops-booking-history-item .hist-slot { min-width:140px; color:#6b7280; }
.ops-booking-history-item .hist-purpose { flex:1; color:#6b7280; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

@media(max-width:768px) {
    .ops-booking .ops-booking-action-btn { min-height:44px; min-width:44px; padding:8px 12px; }
    .ops-booking-calendar-bar { font-size:9px; padding:1px 3px; }
}
@media(max-width:375px) {
    .ops-booking-toolbar { flex-direction:column; align-items:stretch; }
    .ops-booking-search { max-width:100%; }
    .ops-booking-detail-meta { flex-direction:column; gap:8px; }
    .ops-booking-calendar-day { min-height:50px; }
}

/* ==================== V5.33.8: 审批中心(ops_approval)样式 ==================== */
.ops-approval { display:flex; flex-direction:column; gap:20px; }
.ops-approval-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .ops-approval-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .ops-approval-kpi-row { grid-template-columns:1fr 1fr; } }
.ops-approval-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-approval-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-approval-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-approval-kpi .hkpi-info { display:flex; flex-direction:column; }
.ops-approval-kpi .hkpi-value { font-size:22px; font-weight:700; }
.ops-approval-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.ops-approval-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.ops-approval-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.ops-approval-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-approval-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.ops-approval-search input:focus { border-color:#b45309; box-shadow:0 0 0 3px rgba(180,83,9,0.1); }
.ops-approval-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.ops-approval-filter:focus { border-color:#b45309; }
.ops-approval-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.ops-approval-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-approval-btn-export:hover { border-color:#b45309; color:#b45309; background:#fffbeb; }

.ops-approval-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ops-approval-table-wrap table.pm-data-table thead th { position:sticky; top:0; z-index:1; }
.ops-approval-id-link { color:#b45309; cursor:pointer; font-weight:500; }
.ops-approval-id-link:hover { text-decoration:underline; }

/* 审批类型标签 */
.ops-approval-type-tag { display:inline-flex; align-items:center; gap:4px; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.ops-approval-type-tag.contract { background:#fef2f2; color:#dc2626; }
.ops-approval-type-tag.seal { background:#faf5ff; color:#7c3aed; }
.ops-approval-type-tag.expense { background:#fefce8; color:#ca8a04; }
.ops-approval-type-tag.payment { background:#dbeafe; color:#2563eb; }
.ops-approval-type-tag.training { background:#f0fdf4; color:#16a34a; }
.ops-approval-type-tag.transfer { background:#e0f2fe; color:#0369a1; }
.ops-approval-type-tag.booking { background:#fce7f3; color:#be185d; }

/* 紧急程度标签 */
.ops-approval-urgency-tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.ops-approval-urgency-tag.normal { background:#f3f4f6; color:#6b7280; }
.ops-approval-urgency-tag.urgent { background:#fef3c7; color:#d97706; }
.ops-approval-urgency-tag.critical { background:#fee2e2; color:#dc2626; animation:ops-approval-blink 1.2s ease-in-out infinite; }
@keyframes ops-approval-blink { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

/* 操作按钮 */
.ops-approval-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.ops-approval-action-btn.view { color:#b45309; }
.ops-approval-action-btn.view:hover { background:#fffbeb; }
.ops-approval-action-btn.approve { color:#16a34a; }
.ops-approval-action-btn.approve:hover { background:#f0fdf4; }
.ops-approval-action-btn.withdraw { color:#dc2626; }
.ops-approval-action-btn.withdraw:hover { background:#fee2e2; }

/* 批量操作栏 */
.ops-approval-batch-bar { display:none; align-items:center; gap:12px; padding:12px 16px; background:#fffbeb; border:1px solid #fbbf24; border-radius:8px; margin-top:-8px; }
.ops-approval-batch-bar.visible { display:flex; }
.ops-approval-batch-count { font-size:13px; color:#b45309; font-weight:500; }
.ops-approval-btn-batch-approve { background:#16a34a; color:#fff; padding:8px 16px; border:none; border-radius:8px; font-size:12px; font-weight:500; cursor:pointer; min-height:44px; transition:all 0.2s; }
.ops-approval-btn-batch-approve:hover { background:#15803d; }
.ops-approval-btn-batch-cancel { background:#fff; border:1px solid #d1d5db; color:#374151; padding:8px 16px; border-radius:8px; font-size:12px; cursor:pointer; min-height:44px; }
.ops-approval-btn-batch-cancel:hover { background:#f9fafb; }

/* 详情页 */
.ops-approval-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-approval-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.ops-approval-detail-back:hover { background:#e5e7eb; }
.ops-approval-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.ops-approval-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ops-approval-detail-meta { display:flex; gap:20px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.ops-approval-detail-meta span { display:flex; align-items:center; gap:4px; }
.ops-approval-detail-meta i { font-size:12px; }

.ops-approval-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.ops-approval-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.ops-approval-tab:hover { color:#b45309; }
.ops-approval-tab.active { color:#b45309; border-bottom-color:#b45309; }
.ops-approval-tab-content { padding:20px; }
.ops-approval-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:375px) { .ops-approval-info-grid { grid-template-columns:1fr; } }
.ops-approval-info-item { display:flex; flex-direction:column; gap:4px; }
.ops-approval-info-label { font-size:12px; color:#9ca3af; font-weight:500; }
.ops-approval-info-value { font-size:14px; color:#1f2937; word-break:break-all; }
.ops-approval-info-value a { color:#b45309; cursor:pointer; }
.ops-approval-info-value a:hover { text-decoration:underline; }

/* 审批时间线 */
.ops-approval-timeline { padding:0; list-style:none; margin:0; }
.ops-approval-timeline-item { display:flex; gap:16px; padding-bottom:20px; position:relative; }
.ops-approval-timeline-item:not(:last-child)::after { content:''; position:absolute; left:15px; top:34px; bottom:0; width:2px; background:#e5e7eb; }
.ops-approval-timeline-dot { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.ops-approval-timeline-dot.pending { background:#fef3c7; color:#d97706; }
.ops-approval-timeline-dot.approved { background:#dcfce7; color:#16a34a; }
.ops-approval-timeline-dot.rejected { background:#fee2e2; color:#dc2626; }
.ops-approval-timeline-dot.skipped { background:#f3f4f6; color:#9ca3af; }
.ops-approval-timeline-body { flex:1; }
.ops-approval-timeline-title { font-size:14px; font-weight:500; color:#1f2937; }
.ops-approval-timeline-meta { font-size:12px; color:#9ca3af; margin-top:2px; }
.ops-approval-timeline-note { font-size:13px; color:#6b7280; margin-top:6px; padding:8px 12px; background:#f9fafb; border-radius:6px; }

/* 审批操作区 */
.ops-approval-approval-actions { margin-top:20px; padding-top:20px; border-top:1px solid #e5e7eb; }
.ops-approval-approval-textarea { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; min-height:80px; resize:vertical; outline:none; transition:all 0.2s; margin-bottom:12px; }
.ops-approval-approval-textarea:focus { border-color:#b45309; box-shadow:0 0 0 2px rgba(180,83,9,0.1); }
.ops-approval-approval-btns { display:flex; gap:10px; flex-wrap:wrap; }
.ops-approval-approval-btns .ops-approval-btn { min-height:44px; }
.ops-approval-btn-approve { background:#16a34a; color:#fff; }
.ops-approval-btn-approve:hover { background:#15803d; }
.ops-approval-btn-reject { background:#dc2626; color:#fff; }
.ops-approval-btn-reject:hover { background:#b91c1c; }
.ops-approval-btn-forward { background:#2563eb; color:#fff; }
.ops-approval-btn-forward:hover { background:#1d4ed8; }
.ops-approval-btn-withdraw { background:#f3f4f6; border:1px solid #d1d5db; color:#374151; }
.ops-approval-btn-withdraw:hover { background:#e5e7eb; }

/* 弹窗 */
.ops-approval-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-approval-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.ops-approval-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.ops-approval-modal h3 i { color:#b45309; margin-right:8px; }
.ops-approval-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.ops-approval-modal input, .ops-approval-modal select, .ops-approval-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.ops-approval-modal input:focus, .ops-approval-modal select:focus, .ops-approval-modal textarea:focus { border-color:#b45309; box-shadow:0 0 0 2px rgba(180,83,9,0.1); }
.ops-approval-modal textarea { resize:vertical; min-height:80px; }
.ops-approval-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.ops-approval-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-approval-modal-cancel:hover { background:#f9fafb; }
.ops-approval-modal-submit { padding:8px 20px; border:none; background:#b45309; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-approval-modal-submit:hover { background:#92400e; }

/* 审批操作单选样式 */
.ops-approval-radio-group { display:flex; gap:16px; margin-bottom:14px; }
.ops-approval-radio-group label { display:flex; align-items:center; gap:6px; font-size:14px; color:#374151; cursor:pointer; margin-bottom:0; }
.ops-approval-radio-group input[type="radio"] { width:auto; margin:0; }

/* 转审人员选择 */
.ops-approval-forward-select { display:none; }

/* 状态标签扩展 */
.pm-status-tag.in_progress { background:#dbeafe; color:#2563eb; }

/* 附件列表 */
.ops-approval-attachment-list { display:flex; flex-direction:column; gap:6px; }
.ops-approval-attachment-item { display:flex; align-items:center; gap:8px; padding:6px 10px; background:#f9fafb; border-radius:6px; font-size:13px; color:#374151; }
.ops-approval-attachment-item i { color:#b45309; }

/* 审批事由展示区 */
.ops-approval-reason-box { padding:12px 16px; background:#f9fafb; border-radius:8px; font-size:14px; color:#374151; line-height:1.6; white-space:pre-wrap; border:1px solid #e5e7eb; }

/* 移动端375px适配 */
@media(max-width:375px) {
    .ops-approval-toolbar { flex-direction:column; align-items:stretch; }
    .ops-approval-search { max-width:100%; }
    .ops-approval-modal { width:95vw; max-width:100vw; border-radius:0; padding:20px 16px; }
    .ops-approval-info-grid { grid-template-columns:1fr; }
    .ops-approval-detail-meta { flex-direction:column; gap:8px; }
    .ops-approval-approval-btns { flex-direction:column; }
    .ops-approval-approval-btns .ops-approval-btn { width:100%; justify-content:center; }
    .ops-approval-batch-bar { flex-direction:column; align-items:stretch; }
    .ops-approval-timeline-item { gap:10px; }
    .ops-approval-timeline-dot { width:28px; height:28px; font-size:10px; }
    .ops-approval-timeline-title { font-size:13px; }
}

/* ==================== V5.33.9: 公告通知(ops_announcement)样式 ==================== */
.ops-announcement { display:flex; flex-direction:column; gap:20px; }
.ops-announcement-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .ops-announcement-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .ops-announcement-kpi-row { grid-template-columns:1fr 1fr; } }
.ops-announcement-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.ops-announcement-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.ops-announcement-kpi .hkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.ops-announcement-kpi .hkpi-info { display:flex; flex-direction:column; }
.ops-announcement-kpi .hkpi-value { font-size:22px; font-weight:700; }
.ops-announcement-kpi .hkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

.ops-announcement-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.ops-announcement-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.ops-announcement-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.ops-announcement-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.ops-announcement-search input:focus { border-color:#0369a1; box-shadow:0 0 0 3px rgba(3,105,161,0.1); }
.ops-announcement-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.ops-announcement-filter:focus { border-color:#0369a1; }
.ops-announcement-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.ops-announcement-btn-add { background:#0369a1; color:#fff; }
.ops-announcement-btn-add:hover { background:#075985; transform:translateY(-1px); }
.ops-announcement-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.ops-announcement-btn-export:hover { border-color:#0369a1; color:#0369a1; background:#e0f2fe; }

.ops-announcement-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ops-announcement-table-wrap table.pm-data-table thead th { position:sticky; top:0; z-index:1; }
.ops-announcement-id-link { color:#0369a1; cursor:pointer; font-weight:500; }
.ops-announcement-id-link:hover { text-decoration:underline; }

/* 公告类型标签 */
.ops-announcement-type-tag { display:inline-flex; align-items:center; gap:4px; padding:2px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.ops-announcement-type-tag.company { background:#e0f2fe; color:#0369a1; }
.ops-announcement-type-tag.project { background:#dcfce7; color:#16a34a; }
.ops-announcement-type-tag.policy { background:#faf5ff; color:#7c3aed; }
.ops-announcement-type-tag.urgent { background:#fee2e2; color:#dc2626; }
.ops-announcement-type-tag.training { background:#fef3c7; color:#d97706; }

/* 紧急程度图标 */
.ops-announcement-urgency-icon { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; }
.ops-announcement-urgency-icon.normal { background:transparent; }
.ops-announcement-urgency-icon.urgent { background:#fef3c7; color:#d97706; }
.ops-announcement-urgency-icon.critical { background:#fee2e2; color:#dc2626; animation:ops-announcement-critical-blink 1.2s ease-in-out infinite; }
@keyframes ops-announcement-critical-blink { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

/* 标题样式 - 未读加粗主色 */
.ops-announcement-title-unread { color:#0369a1; font-weight:600; cursor:pointer; }
.ops-announcement-title-unread:hover { text-decoration:underline; }
.ops-announcement-title-read { color:#6b7280; font-weight:400; cursor:pointer; }
.ops-announcement-title-read:hover { text-decoration:underline; }

/* 阅读率 */
.ops-announcement-read-rate { font-size:12px; }
.ops-announcement-read-rate.low { color:#d97706; font-weight:600; }

/* 操作按钮 */
.ops-announcement-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.ops-announcement-action-btn.view { color:#0369a1; }
.ops-announcement-action-btn.view:hover { background:#e0f2fe; }
.ops-announcement-action-btn.withdraw { color:#d97706; }
.ops-announcement-action-btn.withdraw:hover { background:#fffbeb; }
.ops-announcement-action-btn.delete { color:#dc2626; }
.ops-announcement-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }

/* 详情页 */
.ops-announcement-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.ops-announcement-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.ops-announcement-detail-back:hover { background:#e5e7eb; }
.ops-announcement-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.ops-announcement-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ops-announcement-detail-meta { display:flex; gap:20px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.ops-announcement-detail-meta span { display:flex; align-items:center; gap:4px; }
.ops-announcement-detail-meta i { font-size:12px; }

.ops-announcement-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.ops-announcement-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.ops-announcement-tab:hover { color:#0369a1; }
.ops-announcement-tab.active { color:#0369a1; border-bottom-color:#0369a1; }
.ops-announcement-tab-content { padding:20px; }
.ops-announcement-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:375px) { .ops-announcement-info-grid { grid-template-columns:1fr; } }
.ops-announcement-info-item { display:flex; flex-direction:column; gap:4px; }
.ops-announcement-info-label { font-size:12px; color:#9ca3af; font-weight:500; }
.ops-announcement-info-value { font-size:14px; color:#1f2937; word-break:break-all; }
.ops-announcement-info-value a { color:#0369a1; cursor:pointer; }
.ops-announcement-info-value a:hover { text-decoration:underline; }

/* 正文内容区 */
.ops-announcement-content-box { padding:16px 20px; background:#f9fafb; border-radius:8px; font-size:14px; color:#374151; line-height:1.8; white-space:pre-wrap; border:1px solid #e5e7eb; margin-top:12px; }

/* 附件列表 */
.ops-announcement-attachment-list { display:flex; flex-direction:column; gap:6px; }
.ops-announcement-attachment-item { display:flex; align-items:center; gap:8px; padding:6px 10px; background:#f9fafb; border-radius:6px; font-size:13px; color:#374151; }
.ops-announcement-attachment-item i { color:#0369a1; }

/* 阅读情况Tab */
.ops-announcement-read-sub-tabs { display:flex; gap:0; margin-bottom:16px; border-bottom:1px solid #e5e7eb; }
.ops-announcement-read-sub-tab { padding:8px 20px; font-size:13px; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; min-height:44px; }
.ops-announcement-read-sub-tab:hover { color:#0369a1; }
.ops-announcement-read-sub-tab.active { color:#0369a1; border-bottom-color:#0369a1; }

.ops-announcement-read-table { width:100%; border-collapse:collapse; }
.ops-announcement-read-table th { padding:10px 14px; font-size:12px; font-weight:600; color:#6b7280; text-align:left; background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.ops-announcement-read-table td { padding:10px 14px; font-size:13px; color:#374151; border-bottom:1px solid #f3f4f6; }

.ops-announcement-read-summary { margin-top:16px; padding:12px 16px; background:#e0f2fe; border-radius:8px; font-size:13px; color:#0369a1; font-weight:500; }

.ops-announcement-remind-btn { background:none; border:1px solid #d97706; color:#d97706; padding:2px 10px; border-radius:4px; font-size:11px; cursor:pointer; transition:all 0.15s; min-height:44px; min-width:44px; }
.ops-announcement-remind-btn:hover { background:#fffbeb; }

/* 操作记录时间线 */
.ops-announcement-log-timeline { padding:0; list-style:none; margin:0; }
.ops-announcement-log-item { display:flex; gap:16px; padding-bottom:16px; position:relative; }
.ops-announcement-log-item:not(:last-child)::after { content:''; position:absolute; left:11px; top:26px; bottom:0; width:2px; background:#e5e7eb; }
.ops-announcement-log-dot { width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; flex-shrink:0; background:#f3f4f6; color:#6b7280; }
.ops-announcement-log-dot.create { background:#e0f2fe; color:#0369a1; }
.ops-announcement-log-dot.publish { background:#dcfce7; color:#16a34a; }
.ops-announcement-log-dot.withdraw { background:#fef3c7; color:#d97706; }
.ops-announcement-log-dot.delete { background:#fee2e2; color:#dc2626; }
.ops-announcement-log-body { flex:1; }
.ops-announcement-log-title { font-size:13px; color:#1f2937; font-weight:500; }
.ops-announcement-log-meta { font-size:12px; color:#9ca3af; margin-top:2px; }

/* 弹窗 */
.ops-announcement-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.ops-announcement-modal { background:#fff; border-radius:12px; padding:28px 32px; width:650px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.ops-announcement-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.ops-announcement-modal h3 i { color:#0369a1; margin-right:8px; }
.ops-announcement-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.ops-announcement-modal input, .ops-announcement-modal select, .ops-announcement-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.ops-announcement-modal input:focus, .ops-announcement-modal select:focus, .ops-announcement-modal textarea:focus { border-color:#0369a1; box-shadow:0 0 0 2px rgba(3,105,161,0.1); }
.ops-announcement-modal textarea { resize:vertical; min-height:120px; }
.ops-announcement-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:375px) { .ops-announcement-modal-row { grid-template-columns:1fr; } }
.ops-announcement-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.ops-announcement-modal-cancel { padding:8px 20px; border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-announcement-modal-cancel:hover { background:#f9fafb; }
.ops-announcement-modal-draft { padding:8px 20px; border:1px solid #d1d5db; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-announcement-modal-draft:hover { background:#e5e7eb; }
.ops-announcement-modal-publish { padding:8px 20px; border:none; background:#0369a1; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-announcement-modal-publish:hover { background:#075985; }
.ops-announcement-modal-delete { padding:8px 20px; border:none; background:#dc2626; color:#fff; border-radius:8px; cursor:pointer; font-size:13px; min-height:44px; }
.ops-announcement-modal-delete:hover { background:#b91c1c; }

/* 紧急程度标签 */
.ops-announcement-urgency-tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.ops-announcement-urgency-tag.normal { background:#f3f4f6; color:#6b7280; }
.ops-announcement-urgency-tag.urgent { background:#fef3c7; color:#d97706; }
.ops-announcement-urgency-tag.critical { background:#fee2e2; color:#dc2626; animation:ops-announcement-critical-blink 1.2s ease-in-out infinite; }

/* 状态标签扩展 */
.pm-status-tag.published { background:#dcfce7; color:#16a34a; }
.pm-status-tag.expired { background:#f3f4f6; color:#374151; }

/* 财务收入：从合同节点进入时的局部上下文条 */
.ops-finance-node-focus { border:1px solid #bfe8dc; background:linear-gradient(135deg,#f0fdfa 0%,#ffffff 74%); border-radius:12px; padding:14px; display:grid; grid-template-columns:minmax(220px,1.2fr) minmax(260px,1.4fr) auto; gap:14px; align-items:center; box-shadow:0 10px 24px rgba(15,118,110,.07); }
.ops-finance-node-focus-main { min-width:0; }
.ops-finance-node-focus-main span { display:inline-flex; align-items:center; gap:7px; color:#0f766e; font-size:12px; font-weight:800; margin-bottom:5px; }
.ops-finance-node-focus-main span i { width:24px; height:24px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; background:#ccfbf1; color:#0f766e; }
.ops-finance-node-focus-main strong { display:block; color:#10233f; font-size:16px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-finance-node-focus-main p { margin:5px 0 0; color:#475569; font-size:12px; line-height:1.6; }
.ops-finance-node-focus-meta { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.ops-finance-node-focus-meta div { min-width:0; border:1px solid #dbe8e2; background:rgba(255,255,255,.82); border-radius:9px; padding:8px 10px; }
.ops-finance-node-focus-meta dt { margin:0 0 3px; color:#64748b; font-size:11px; font-weight:700; }
.ops-finance-node-focus-meta dd { margin:0; color:#23364d; font-size:12px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-finance-node-focus-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.ops-finance-node-focus-actions .ops-finance-btn { min-height:38px; white-space:nowrap; }
.ops-finance-node-actions { margin-top:12px; border:1px solid #d8e7ef; background:#fff; border-radius:12px; padding:14px; display:grid; grid-template-columns:minmax(220px,.95fr) minmax(360px,1.6fr) minmax(220px,.9fr); gap:14px; align-items:stretch; box-shadow:0 12px 28px rgba(15,23,42,.05); }
.ops-finance-node-actions-head { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:6px; }
.ops-finance-node-actions-head span { display:inline-flex; width:max-content; align-items:center; border-radius:999px; background:#eff6ff; color:#1d4ed8; padding:3px 9px; font-size:12px; font-weight:800; }
.ops-finance-node-actions-head strong { display:block; color:#10233f; font-size:16px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-finance-node-actions-head p { margin:0; color:#64748b; font-size:12px; line-height:1.6; }
.ops-finance-node-actions-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.ops-finance-node-action-card { min-width:0; min-height:112px; border:1px solid #dbe8e2; border-radius:10px; background:#f8fbff; padding:12px; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:7px; transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
.ops-finance-node-action-card i { width:30px; height:30px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; background:#e0f2fe; color:#0369a1; font-size:14px; }
.ops-finance-node-action-card span { color:#10233f; font-size:14px; font-weight:800; line-height:1.25; }
.ops-finance-node-action-card em { color:#64748b; font-size:12px; line-height:1.45; font-style:normal; }
.ops-finance-node-action-card:hover,
.ops-finance-node-action-card:focus-visible { border-color:#14b8a6; box-shadow:0 10px 24px rgba(20,184,166,.14); transform:translateY(-1px); outline:none; }
.ops-finance-node-action-card.active { background:#ecfdf5; border-color:#7dd3fc; box-shadow:inset 0 0 0 1px rgba(20,184,166,.12); }
.ops-finance-node-action-facts { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.ops-finance-node-action-facts div { min-width:0; border:1px solid #e2e8f0; border-radius:9px; background:#fbfdff; padding:8px 10px; }
.ops-finance-node-action-facts dt { margin:0 0 3px; color:#64748b; font-size:11px; font-weight:800; }
.ops-finance-node-action-facts dd { margin:0; color:#23364d; font-size:12px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-finance-contract-node-modal { width:min(1480px, calc(100vw - 56px)); }
.ops-finance-node-detail-hero { border-color:#c7efe4; background:linear-gradient(135deg,#ecfdf5 0%,#f8fafc 82%); }
.ops-finance-node-detail-mini { margin:14px 24px 0; grid-template-columns:repeat(4,minmax(0,1fr)); }
.ops-finance-node-record-wrap { border:1px solid #e2e8f0; border-radius:10px; background:#fff; }
.ops-finance-node-record-table { min-width:1220px !important; }
.ops-finance-node-record-table tr.is-current-node td { background:#f0fdfa; }
.ops-finance-node-record-table tr.is-current-node td:first-child { box-shadow:inset 3px 0 0 #14b8a6; }
.ops-finance-node-readonly-note { margin:14px 24px 0; display:flex; align-items:flex-start; gap:10px; border:1px solid #fde68a; background:#fffbeb; color:#92400e; border-radius:10px; padding:12px 14px; font-size:13px; line-height:1.6; }
.ops-finance-node-readonly-note i { margin-top:3px; color:#d97706; }
@media(max-width:1200px) {
    .ops-finance-node-focus { grid-template-columns:1fr; }
    .ops-finance-node-focus-actions { justify-content:flex-start; }
    .ops-finance-node-actions { grid-template-columns:1fr; }
    .ops-finance-node-detail-mini { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
    .ops-finance-node-focus { padding:12px; }
    .ops-finance-node-focus-meta { grid-template-columns:1fr; }
    .ops-finance-node-focus-actions .ops-finance-btn { width:100%; justify-content:center; }
    .ops-finance-node-actions { padding:12px; }
    .ops-finance-node-actions-grid,
    .ops-finance-node-action-facts { grid-template-columns:1fr; }
    .ops-finance-contract-node-modal { width:calc(100vw - 24px); max-width:calc(100vw - 24px); }
    .ops-finance-node-detail-mini { margin:12px 14px 0; grid-template-columns:1fr; }
    .ops-finance-node-readonly-note { margin:12px 14px 0; }
}

/* 移动端375px适配 */
@media(max-width:375px) {
    .ops-announcement-toolbar { flex-direction:column; align-items:stretch; }
    .ops-announcement-search { max-width:100%; }
    .ops-announcement-modal { width:95vw; max-width:100vw; border-radius:0; padding:20px 16px; }
    .ops-announcement-info-grid { grid-template-columns:1fr; }
    .ops-announcement-detail-meta { flex-direction:column; gap:8px; }
    .ops-announcement-content-box { padding:12px; font-size:13px; }
    .ops-announcement-read-sub-tabs { overflow-x:auto; }
}

/* ==================== V5.34.0: 临床研究基础架构样式 ==================== */

/* 临床研究子模块详情容器 */
/* ==================== V5.34.0: cr_ssu 中心准备样式 ==================== */

/* SSU阶段标签 */
.cr-stage-tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.cr-stage-tag.draft { background:#f3f4f6; color:#6b7280; }
.cr-stage-tag.reviewing { background:#dbeafe; color:#2563eb; }
.cr-stage-tag.amending { background:#ffedd5; color:#ea580c; }
.cr-stage-tag.pending { background:#fef3c7; color:#d97706; }
.cr-stage-tag.finalized { background:#dcfce7; color:#16a34a; }

/* 容器 */
.cr-ssu { display:flex; flex-direction:column; gap:20px; }

/* KPI卡片行 */
.cr-ssu-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .cr-ssu-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .cr-ssu-kpi-row { grid-template-columns:1fr 1fr; } }

.cr-ssu-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.cr-ssu-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.cr-ssu-kpi .mkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.cr-ssu-kpi .mkpi-info { display:flex; flex-direction:column; }
.cr-ssu-kpi .mkpi-value { font-size:22px; font-weight:700; }
.cr-ssu-kpi .mkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 工具栏 */
.cr-ssu-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.cr-ssu-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.cr-ssu-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.cr-ssu-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.cr-ssu-search input:focus { border-color:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,0.1); }
.cr-ssu-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:44px; }
.cr-ssu-filter:focus { border-color:#7c3aed; }
.cr-ssu-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.cr-ssu-btn-add { background:#7c3aed; color:#fff; }
.cr-ssu-btn-add:hover { background:#6d28d9; transform:translateY(-1px); }
.cr-ssu-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.cr-ssu-btn-export:hover { border-color:#7c3aed; color:#7c3aed; background:#f5f3ff; }

/* 表格 */
.cr-ssu-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* 进度条 */
.cr-ssu-progress-bar { width:80px; height:6px; background:#e5e7eb; border-radius:3px; display:inline-block; vertical-align:middle; margin-right:6px; }
.cr-ssu-progress-fill { height:100%; border-radius:3px; transition:width 0.3s; }

/* 空状态 */
.cr-ssu-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.cr-ssu-empty i { font-size:48px; margin-bottom:16px; display:block; }
.cr-ssu-empty p { font-size:14px; margin-bottom:8px; }
.cr-ssu-empty .cr-ssu-btn-add { display:inline-flex; margin-top:12px; }

/* 详情页 */
.cr-ssu-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.cr-ssu-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.cr-ssu-detail-back:hover { background:#e5e7eb; }
.cr-ssu-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.cr-ssu-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cr-ssu-detail-header h3 i { color:#7c3aed; }
.cr-ssu-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.cr-ssu-detail-meta span { display:flex; align-items:center; gap:4px; }

/* 阶段推进按钮 */
.cr-ssu-stage-actions { display:inline-flex; gap:8px; margin-left:12px; }
.cr-ssu-stage-btn { padding:4px 12px; border-radius:6px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:32px; }
.cr-ssu-stage-btn.advance { background:#ede9fe; color:#7c3aed; }
.cr-ssu-stage-btn.advance:hover { background:#ddd6fe; }

/* Tab导航 */
.cr-ssu-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.cr-ssu-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.cr-ssu-tab:hover { color:#7c3aed; }
.cr-ssu-tab.active { color:#7c3aed; border-bottom-color:#7c3aed; }
.cr-ssu-tab-content { padding:20px; }

/* 信息Grid */
.cr-ssu-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:700px) { .cr-ssu-info-grid { grid-template-columns:1fr; } }
.cr-ssu-info-item { display:flex; flex-direction:column; gap:4px; }
.cr-ssu-info-label { font-size:12px; color:#9ca3af; }
.cr-ssu-info-value { font-size:14px; color:#1f2937; font-weight:500; }

/* 关联状态卡片 */
.cr-ssu-linkage-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px; padding:16px; margin-bottom:12px; }
.cr-ssu-linkage-card h4 { margin:0 0 10px; font-size:14px; color:#374151; display:flex; align-items:center; gap:8px; }
.cr-ssu-linkage-card h4 i { color:#7c3aed; }
.cr-ssu-linkage-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.cr-ssu-linkage-item { font-size:13px; color:#6b7280; }
.cr-ssu-linkage-item strong { color:#374151; }
.cr-ssu-linkage-card a { color:#7c3aed; cursor:pointer; text-decoration:none; }
.cr-ssu-linkage-card a:hover { text-decoration:underline; }

/* 弹窗 */
.cr-ssu-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.cr-ssu-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.cr-ssu-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.cr-ssu-modal h3 i { color:#7c3aed; margin-right:8px; }
.cr-ssu-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.cr-ssu-modal label .required { color:#ef4444; margin-left:2px; }
.cr-ssu-modal input, .cr-ssu-modal select, .cr-ssu-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; }
.cr-ssu-modal input:focus, .cr-ssu-modal select:focus, .cr-ssu-modal textarea:focus { border-color:#7c3aed; box-shadow:0 0 0 2px rgba(124,58,237,0.1); }
.cr-ssu-modal textarea { min-height:70px; resize:vertical; }
.cr-ssu-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cr-ssu-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.cr-ssu-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.cr-ssu-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.cr-ssu-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.cr-ssu-modal-actions .btn-save { background:#7c3aed; color:#fff; }
.cr-ssu-modal-actions .btn-save:hover { background:#6d28d9; }
.cr-ssu-modal-actions .btn-danger { background:#dc2626; color:#fff; }
.cr-ssu-modal-actions .btn-danger:hover { background:#b91c1c; }

/* 弹窗提示 */
.cr-ssu-modal-tip { background:#fef3c7; border:1px solid #fde68a; border-radius:8px; padding:10px 14px; font-size:13px; color:#92400e; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.cr-ssu-modal-tip.danger { background:#fee2e2; border-color:#fecaca; color:#991b1b; }

/* 移动端适配 */
@media(max-width:375px) {
    .cr-ssu-modal-row { grid-template-columns:1fr !important; }
    .cr-ssu-modal { width:95vw; padding:20px; }
    .cr-ssu-info-grid { grid-template-columns:1fr; }
    .cr-ssu-detail-meta { flex-direction:column; gap:6px; }
    .cr-ssu-tabs { overflow-x:auto; }
    .cr-ssu-tab { white-space:nowrap; padding:12px 16px; }
    .cr-ssu-toolbar { flex-direction:column; align-items:stretch; }
    .cr-ssu-search { max-width:100%; }
}

/* === cr_protocol CSS (V5.34.5) === */
/* ==================== 方案管理(cr_protocol) ==================== */
.cr-protocol { display:flex; flex-direction:column; gap:20px; }
.cr-protocol-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .cr-protocol-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .cr-protocol-kpi-row { grid-template-columns:1fr 1fr; } }
.cr-protocol-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.cr-protocol-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.cr-protocol-kpi .crpt-kpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.cr-protocol-kpi .crpt-kpi-info { display:flex; flex-direction:column; }
.cr-protocol-kpi .crpt-kpi-value { font-size:22px; font-weight:700; }
.cr-protocol-kpi .crpt-kpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }
.cr-protocol-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.cr-protocol-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.cr-protocol-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.cr-protocol-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.cr-protocol-search input:focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,0.1); }
.cr-protocol-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:36px; }
.cr-protocol-filter:focus { border-color:#2563eb; }
.cr-protocol-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:36px; }
.cr-protocol-btn-add { background:#2563eb; color:#fff; }
.cr-protocol-btn-add:hover { background:#1d4ed8; transform:translateY(-1px); }
.cr-protocol-btn-ai { background:#7c3aed; color:#fff; }
.cr-protocol-btn-ai:hover { background:#6d28d9; transform:translateY(-1px); }
.cr-protocol-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.cr-protocol-btn-export:hover { border-color:#2563eb; color:#2563eb; background:#eff6ff; }
.cr-protocol-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.cr-protocol-table-wrap table.cr-data-table thead th { position:sticky; top:0; z-index:1; }
.cr-protocol-id-link { color:#2563eb; cursor:pointer; font-weight:500; }
.cr-protocol-id-link:hover { text-decoration:underline; }
.cr-protocol-drug-name { font-weight:600; color:#1f2937; }
.cr-protocol-action-btn { background:none; border:none; cursor:pointer; font-size:12px; padding:4px 8px; min-height:44px; min-width:44px; border-radius:4px; transition:all 0.15s; }
.cr-protocol-action-btn.view { color:#2563eb; }
.cr-protocol-action-btn.view:hover { background:#dbeafe; }
.cr-protocol-action-btn.edit { color:#2563eb; }
.cr-protocol-action-btn.edit:hover { background:#dbeafe; }
.cr-protocol-action-btn.amend { color:#d97706; }
.cr-protocol-action-btn.amend:hover { background:#fef3c7; }
.cr-protocol-action-btn.delete { color:#dc2626; }
.cr-protocol-action-btn.delete:hover { background:#fee2e2; color:#b91c1c; }
.cr-protocol-action-btn.disabled { color:#d1d5db; cursor:not-allowed; }
.cr-protocol-action-btn.disabled:hover { background:transparent; }

/* 详情页 */
.cr-protocol-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.cr-protocol-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.cr-protocol-detail-back:hover { background:#e5e7eb; }
.cr-protocol-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.cr-protocol-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cr-protocol-detail-meta { display:flex; gap:20px; flex-wrap:wrap; font-size:13px; color:#6b7280; }
.cr-protocol-detail-meta span { display:flex; align-items:center; gap:4px; }
.cr-protocol-detail-meta i { font-size:12px; }
.cr-protocol-tabs { display:flex; border-bottom:1px solid #e5e7eb; overflow-x:auto; }
.cr-protocol-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; white-space:nowrap; }
.cr-protocol-tab:hover { color:#2563eb; }
.cr-protocol-tab.active { color:#2563eb; border-bottom-color:#2563eb; }
.cr-protocol-tab-content { padding:20px; }
.cr-protocol-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:375px) { .cr-protocol-info-grid { grid-template-columns:1fr; } }
.cr-protocol-info-item { display:flex; flex-direction:column; gap:4px; }
.cr-protocol-info-label { font-size:12px; color:#9ca3af; font-weight:500; }
.cr-protocol-info-value { font-size:14px; color:#1f2937; }
.cr-protocol-info-tags { display:flex; flex-wrap:wrap; gap:4px; }
.cr-protocol-tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:12px; background:#eff6ff; color:#2563eb; }

/* 版本历史时间线 */
.cr-protocol-timeline { padding:0; list-style:none; margin:0; }
.cr-protocol-timeline-item { display:flex; gap:16px; padding-bottom:20px; position:relative; }
.cr-protocol-timeline-item:not(:last-child)::after { content:''; position:absolute; left:15px; top:34px; bottom:0; width:2px; background:#e5e7eb; }
.cr-protocol-timeline-dot { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.cr-protocol-timeline-dot.init { background:#dbeafe; color:#2563eb; }
.cr-protocol-timeline-dot.amend { background:#fef3c7; color:#d97706; }
.cr-protocol-timeline-dot.admin { background:#f3f4f6; color:#6b7280; }
.cr-protocol-timeline-body { flex:1; }
.cr-protocol-timeline-title { font-size:14px; font-weight:500; color:#1f2937; }
.cr-protocol-timeline-meta { font-size:12px; color:#9ca3af; margin-top:2px; }
.cr-protocol-timeline-note { font-size:13px; color:#6b7280; margin-top:6px; padding:8px 12px; background:#f9fafb; border-radius:6px; }

/* 弹窗 */
.cr-protocol-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.cr-protocol-modal { background:#fff; border-radius:12px; padding:28px 32px; width:700px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.cr-protocol-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.cr-protocol-modal h3 i { color:#2563eb; margin-right:8px; }
.cr-protocol-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.cr-protocol-modal input, .cr-protocol-modal select, .cr-protocol-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; transition:all 0.2s; }
.cr-protocol-modal input:focus, .cr-protocol-modal select:focus, .cr-protocol-modal textarea:focus { border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,0.1); }
.cr-protocol-modal textarea { resize:vertical; min-height:80px; }
.cr-protocol-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media(max-width:375px) { .cr-protocol-modal-row { grid-template-columns:1fr; } }
.cr-protocol-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.cr-protocol-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.cr-protocol-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.cr-protocol-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.cr-protocol-modal-actions .btn-save { background:#2563eb; color:#fff; }
.cr-protocol-modal-actions .btn-save:hover { background:#1d4ed8; }
.cr-protocol-modal-actions .btn-submit { background:#16a34a; color:#fff; }
.cr-protocol-modal-actions .btn-submit:hover { background:#15803d; }
.cr-protocol-modal-actions .btn-approve { background:#16a34a; color:#fff; }
.cr-protocol-modal-actions .btn-approve:hover { background:#15803d; }
.cr-protocol-modal-actions .btn-reject { background:#dc2626; color:#fff; }
.cr-protocol-modal-actions .btn-reject:hover { background:#b91c1c; }
.cr-protocol-modal-actions .btn-delete { background:#dc2626; color:#fff; }
.cr-protocol-modal-actions .btn-delete:hover { background:#b91c1c; }

/* 分步表单 */
.cr-protocol-step-bar { display:flex; align-items:center; gap:0; margin-bottom:20px; overflow-x:auto; }
.cr-protocol-step { display:flex; align-items:center; gap:8px; padding:8px 12px; font-size:12px; font-weight:500; color:#9ca3af; white-space:nowrap; cursor:pointer; border-radius:6px; transition:all 0.2s; }
.cr-protocol-step.active { color:#2563eb; background:#eff6ff; }
.cr-protocol-step.done { color:#16a34a; }
.cr-protocol-step-num { width:22px; height:22px; border-radius:50%; border:2px solid #d1d5db; display:flex; align-items:center; justify-content:center; font-size:11px; flex-shrink:0; }
.cr-protocol-step.active .cr-protocol-step-num { border-color:#2563eb; background:#2563eb; color:#fff; }
.cr-protocol-step.done .cr-protocol-step-num { border-color:#16a34a; background:#16a34a; color:#fff; }
.cr-protocol-step-connector { width:20px; height:2px; background:#e5e7eb; flex-shrink:0; }
.cr-protocol-step-connector.done { background:#16a34a; }

/* 确认删除弹窗 */
.cr-protocol-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10001; display:flex; align-items:center; justify-content:center; }
.cr-protocol-confirm-box { background:#fff; border-radius:12px; padding:28px 32px; width:400px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); text-align:center; }
.cr-protocol-confirm-box h4 { margin:0 0 12px; font-size:16px; color:#1f2937; }
.cr-protocol-confirm-box p { font-size:14px; color:#6b7280; margin:0 0 20px; }
.cr-protocol-confirm-actions { display:flex; justify-content:center; gap:12px; }
.cr-protocol-confirm-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.cr-protocol-confirm-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.cr-protocol-confirm-actions .btn-cancel:hover { background:#e5e7eb; }
.cr-protocol-confirm-actions .btn-delete { background:#dc2626; color:#fff; }
.cr-protocol-confirm-actions .btn-delete:hover { background:#b91c1c; }

/* 空状态 */
.cr-protocol-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.cr-protocol-empty i { font-size:40px; display:block; margin-bottom:12px; }
.cr-protocol-empty p { font-size:14px; margin:0 0 6px; }
.cr-protocol-empty .empty-guide { font-size:12px; color:#d1d5db; }
.cr-protocol-empty button { margin-top:16px; padding:8px 20px; background:#2563eb; color:#fff; border:none; border-radius:8px; font-size:13px; cursor:pointer; transition:all 0.2s; min-height:44px; }
.cr-protocol-empty button:hover { background:#1d4ed8; }

/* 移动端适配 */
@media(max-width:375px) {
    .cr-protocol-toolbar { flex-direction:column; align-items:stretch; }
    .cr-protocol-search { max-width:100%; }
    .cr-protocol-filter { width:100%; }
    .cr-protocol-modal { width:95vw; padding:20px; }
    .cr-protocol-step-bar { flex-direction:column; align-items:flex-start; }
    .cr-protocol-step-connector { width:2px; height:12px; }
}

/* ==================== cr_milestone 里程碑管理样式 ==================== */

/* 里程碑状态标签 */
.cr-milestone-status { display:inline-block; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.cr-milestone-status.not_started { background:#f3f4f6; color:#6b7280; }
.cr-milestone-status.in_progress { background:#dbeafe; color:#2563eb; }
.cr-milestone-status.completed { background:#dcfce7; color:#16a34a; }
.cr-milestone-status.delayed { background:#fee2e2; color:#dc2626; }

/* 里程碑阶段标签 */
.cr-milestone-phase { display:inline-block; padding:3px 8px; border-radius:6px; font-size:11px; font-weight:500; }
.cr-milestone-phase.prepare { background:#fef3c7; color:#d97706; }
.cr-milestone-phase.execute { background:#dbeafe; color:#2563eb; }
.cr-milestone-phase.closing { background:#ede9fe; color:#7c3aed; }

/* 容器 */
.cr-milestone { display:flex; flex-direction:column; gap:20px; }

/* KPI卡片行 */
.cr-milestone-kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media(max-width:900px) { .cr-milestone-kpi-row { grid-template-columns:repeat(2,1fr); } }
@media(max-width:375px) { .cr-milestone-kpi-row { grid-template-columns:1fr 1fr; } }

.cr-milestone-kpi { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:18px 16px; display:flex; align-items:center; gap:14px; transition:all 0.2s; }
.cr-milestone-kpi:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.cr-milestone-kpi .mkpi-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.cr-milestone-kpi .mkpi-info { display:flex; flex-direction:column; }
.cr-milestone-kpi .mkpi-value { font-size:22px; font-weight:700; }
.cr-milestone-kpi .mkpi-label { font-size:11px; color:#9ca3af; white-space:nowrap; }

/* 工具栏 */
.cr-milestone-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 16px; }
.cr-milestone-search { position:relative; flex:1; min-width:180px; max-width:320px; }
.cr-milestone-search i { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:12px; }
.cr-milestone-search input { width:100%; padding:8px 12px 8px 32px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; }
.cr-milestone-search input:focus { border-color:#ca8a04; box-shadow:0 0 0 3px rgba(202,138,4,0.1); }
.cr-milestone-filter { padding:8px 14px; border:1px solid #e5e7eb; border-radius:8px; font-size:13px; background:#fff; color:#374151; cursor:pointer; outline:none; transition:all 0.2s; min-height:44px; }
.cr-milestone-filter:focus { border-color:#ca8a04; }
.cr-milestone-btn { padding:8px 16px; border-radius:8px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:44px; }
.cr-milestone-btn-add { background:#ca8a04; color:#fff; }
.cr-milestone-btn-add:hover { background:#a16207; transform:translateY(-1px); }
.cr-milestone-btn-gantt { background:#fff; border:1px solid #ca8a04; color:#ca8a04; }
.cr-milestone-btn-gantt:hover { background:#fef9c3; }
.cr-milestone-btn-export { background:#fff; border:1px solid #e5e7eb; color:#374151; }
.cr-milestone-btn-export:hover { border-color:#ca8a04; color:#ca8a04; background:#fef9c3; }

/* 表格 */
.cr-milestone-table-wrap { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* 空状态 */
.cr-milestone-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.cr-milestone-empty i { font-size:48px; margin-bottom:16px; display:block; }
.cr-milestone-empty p { font-size:14px; margin-bottom:8px; }
.cr-milestone-empty .cr-milestone-btn-add { display:inline-flex; margin-top:12px; }

/* 详情页 */
.cr-milestone-detail { background:#fff; border-radius:12px; border:1px solid #e5e7eb; overflow:hidden; }
.cr-milestone-detail-back { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:none; background:#f3f4f6; color:#374151; border-radius:8px; cursor:pointer; font-size:13px; transition:all 0.2s; margin-bottom:16px; min-height:44px; }
.cr-milestone-detail-back:hover { background:#e5e7eb; }
.cr-milestone-detail-header { padding:20px; border-bottom:1px solid #e5e7eb; }
.cr-milestone-detail-header h3 { margin:0 0 6px; font-size:18px; color:#1f2937; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cr-milestone-detail-header h3 i { color:#ca8a04; }
.cr-milestone-detail-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#6b7280; margin-top:8px; }
.cr-milestone-detail-meta span { display:flex; align-items:center; gap:4px; }

/* 状态操作按钮 */
.cr-milestone-status-actions { display:inline-flex; gap:8px; margin-left:12px; }
.cr-milestone-status-btn { padding:4px 12px; border-radius:6px; font-size:12px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:32px; }
.cr-milestone-status-btn.complete { background:#dcfce7; color:#16a34a; }
.cr-milestone-status-btn.complete:hover { background:#bbf7d0; }
.cr-milestone-status-btn.start { background:#dbeafe; color:#2563eb; }
.cr-milestone-status-btn.start:hover { background:#bfdbfe; }

/* Tab导航 */
.cr-milestone-tabs { display:flex; border-bottom:1px solid #e5e7eb; }
.cr-milestone-tab { padding:12px 24px; font-size:13px; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.2s; min-height:44px; display:flex; align-items:center; }
.cr-milestone-tab:hover { color:#ca8a04; }
.cr-milestone-tab.active { color:#ca8a04; border-bottom-color:#ca8a04; }
.cr-milestone-tab-content { padding:20px; }

/* 信息Grid */
.cr-milestone-info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media(max-width:700px) { .cr-milestone-info-grid { grid-template-columns:1fr; } }
.cr-milestone-info-item { display:flex; flex-direction:column; gap:4px; }
.cr-milestone-info-label { font-size:12px; color:#9ca3af; }
.cr-milestone-info-value { font-size:14px; color:#1f2937; font-weight:500; }

/* 进度汇总卡片 */
.cr-milestone-summary-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px; padding:16px; margin-bottom:12px; }
.cr-milestone-summary-card h4 { margin:0 0 8px; font-size:14px; color:#374151; display:flex; align-items:center; gap:8px; }
.cr-milestone-summary-card h4 i { color:#ca8a04; }
.cr-milestone-summary-bar { height:8px; background:#e5e7eb; border-radius:4px; margin-top:8px; overflow:hidden; }
.cr-milestone-summary-fill { height:100%; border-radius:4px; transition:width 0.3s; }
.cr-milestone-summary-percent { font-size:13px; color:#6b7280; margin-top:4px; }

/* 弹窗 */
.cr-milestone-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.45); z-index:10000; display:flex; align-items:center; justify-content:center; }
.cr-milestone-modal { background:#fff; border-radius:12px; padding:28px 32px; width:600px; max-width:90vw; box-shadow:0 8px 32px rgba(0,0,0,0.18); max-height:90vh; overflow-y:auto; }
.cr-milestone-modal h3 { margin:0 0 20px; font-size:17px; color:#1f2937; }
.cr-milestone-modal h3 i { color:#ca8a04; margin-right:8px; }
.cr-milestone-modal label { display:block; font-size:13px; color:#6b7280; margin-bottom:4px; }
.cr-milestone-modal label .required { color:#ef4444; margin-left:2px; }
.cr-milestone-modal input, .cr-milestone-modal select, .cr-milestone-modal textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; margin-bottom:14px; outline:none; }
.cr-milestone-modal input:focus, .cr-milestone-modal select:focus, .cr-milestone-modal textarea:focus { border-color:#ca8a04; box-shadow:0 0 0 2px rgba(202,138,4,0.1); }
.cr-milestone-modal textarea { min-height:70px; resize:vertical; }
.cr-milestone-modal-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cr-milestone-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.cr-milestone-modal-actions button { padding:9px 20px; border-radius:8px; font-size:13px; font-weight:500; border:none; cursor:pointer; transition:all 0.2s; min-height:44px; }
.cr-milestone-modal-actions .btn-cancel { background:#f3f4f6; color:#6b7280; }
.cr-milestone-modal-actions .btn-cancel:hover { background:#e5e7eb; }
.cr-milestone-modal-actions .btn-save { background:#ca8a04; color:#fff; }
.cr-milestone-modal-actions .btn-save:hover { background:#a16207; }
.cr-milestone-modal-actions .btn-danger { background:#dc2626; color:#fff; }
.cr-milestone-modal-actions .btn-danger:hover { background:#b91c1c; }

/* 弹窗提示 */
.cr-milestone-modal-tip { background:#fef3c7; border:1px solid #fde68a; border-radius:8px; padding:10px 14px; font-size:13px; color:#92400e; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.cr-milestone-modal-tip.danger { background:#fee2e2; border-color:#fecaca; color:#991b1b; }

/* 甘特图时间线（简化版） */
.cr-milestone-timeline { position:relative; padding:20px 0; }
.cr-milestone-timeline-line { position:absolute; left:20px; top:0; bottom:0; width:2px; background:#e5e7eb; }
.cr-milestone-timeline-item { position:relative; padding-left:50px; margin-bottom:20px; }
.cr-milestone-timeline-dot { position:absolute; left:14px; top:4px; width:14px; height:14px; border-radius:50%; border:2px solid #e5e7eb; background:#fff; }
.cr-milestone-timeline-dot.completed { background:#16a34a; border-color:#16a34a; }
.cr-milestone-timeline-dot.in_progress { background:#2563eb; border-color:#2563eb; }
.cr-milestone-timeline-dot.delayed { background:#dc2626; border-color:#dc2626; }
.cr-milestone-timeline-dot.not_started { background:#f3f4f6; border-color:#d1d5db; }
.cr-milestone-timeline-title { font-size:14px; font-weight:600; color:#1f2937; }
.cr-milestone-timeline-date { font-size:12px; color:#6b7280; margin-top:2px; }

/* 移动端适配 */
@media(max-width:375px) {
    .cr-milestone-modal-row { grid-template-columns:1fr !important; }
    .cr-milestone-modal { width:95vw; padding:20px; }
    .cr-milestone-info-grid { grid-template-columns:1fr; }
    .cr-milestone-detail-meta { flex-direction:column; gap:6px; }
    .cr-milestone-tabs { overflow-x:auto; }
    .cr-milestone-tab { white-space:nowrap; padding:12px 16px; }
    .cr-milestone-toolbar { flex-direction:column; align-items:stretch; }
    .cr-milestone-search { max-width:100%; }
}

/* ==================== V5.36.0: cr-proto 引导生成式方案撰写 CSS ==================== */
.cr-proto-wrap { display:flex; flex-direction:column; gap:16px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; }
/* 顶部栏：期别切换+项目信息 */
.cr-proto-topbar { display:flex; align-items:center; gap:16px; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:14px 20px; flex-wrap:wrap; }
.cr-proto-phase-switcher { display:flex; gap:4px; background:#f3f4f6; border-radius:8px; padding:3px; }
.cr-proto-phase-btn { padding:6px 16px; border:none; border-radius:6px; font-size:13px; font-weight:500; cursor:pointer; transition:all 0.2s; background:transparent; color:#6b7280; min-height:36px; }
.cr-proto-phase-btn:hover { color:#2563eb; }
.cr-proto-phase-btn.active { background:#2563eb; color:#fff; box-shadow:0 1px 3px rgba(37,99,235,0.3); }
.cr-proto-topbar-info { display:flex; align-items:center; gap:20px; flex:1; min-width:0; }
.cr-proto-topbar-title { font-size:15px; font-weight:600; color:#1f2937; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cr-proto-topbar-ver { font-size:12px; color:#9ca3af; white-space:nowrap; }
.cr-proto-topbar-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
.cr-proto-topbar-badge.draft { background:#fef3c7; color:#d97706; }
.cr-proto-topbar-badge.auto { background:#ede9fe; color:#7c3aed; }

/* 7步导航 */
.cr-proto-stepper { display:flex; align-items:center; gap:0; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:12px 16px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.cr-proto-step-item { display:flex; align-items:center; gap:6px; padding:8px 14px; font-size:12px; font-weight:500; color:#9ca3af; white-space:nowrap; cursor:pointer; border-radius:8px; transition:all 0.2s; min-height:40px; }
.cr-proto-step-item:hover { color:#2563eb; background:#f0f5ff; }
.cr-proto-step-item.active { color:#2563eb; background:#eff6ff; font-weight:600; }
.cr-proto-step-item.done { color:#16a34a; }
.cr-proto-step-num { width:22px; height:22px; border-radius:50%; border:2px solid #d1d5db; display:flex; align-items:center; justify-content:center; font-size:11px; flex-shrink:0; transition:all 0.2s; }
.cr-proto-step-item.active .cr-proto-step-num { border-color:#2563eb; background:#2563eb; color:#fff; }
.cr-proto-step-item.done .cr-proto-step-num { border-color:#16a34a; background:#16a34a; color:#fff; }
.cr-proto-step-conn { width:16px; height:2px; background:#e5e7eb; flex-shrink:0; }
.cr-proto-step-conn.done { background:#16a34a; }

/* 主内容区：左表单+右AI面板 */
.cr-proto-main { display:grid; grid-template-columns:1fr 380px; gap:16px; }
@media(max-width:1100px) { .cr-proto-main { grid-template-columns:1fr; } }

/* 左侧表单区 */
.cr-proto-form-panel { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:24px; display:flex; flex-direction:column; gap:20px; }
.cr-proto-form-title { font-size:16px; font-weight:600; color:#1f2937; display:flex; align-items:center; gap:8px; }
.cr-proto-form-title i { color:#2563eb; }
.cr-proto-form-guide { font-size:13px; color:#6b7280; padding:10px 14px; background:#f0f9ff; border-radius:8px; border-left:3px solid #2563eb; line-height:1.6; }
.cr-proto-form-section { display:flex; flex-direction:column; gap:16px; }
.cr-proto-form-section-title { font-size:14px; font-weight:600; color:#374151; display:flex; align-items:center; gap:8px; padding-bottom:8px; border-bottom:1px solid #f3f4f6; }
.cr-proto-form-section-title i { color:#0891B2; font-size:12px; }
.cr-proto-form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.cr-proto-form-row.single { grid-template-columns:1fr; }
@media(max-width:600px) { .cr-proto-form-row { grid-template-columns:1fr; } }
.cr-proto-field { display:flex; flex-direction:column; gap:4px; }
.cr-proto-field.full { grid-column:1/-1; }
.cr-proto-field-label { font-size:12px; font-weight:500; color:#6b7280; display:flex; align-items:center; gap:6px; }
.cr-proto-field-label .required { color:#dc2626; }
.cr-proto-field-ai-btn { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border:none; border-radius:4px; background:#ede9fe; color:#7c3aed; cursor:pointer; font-size:10px; transition:all 0.15s; flex-shrink:0; }
.cr-proto-field-ai-btn:hover { background:#7c3aed; color:#fff; transform:scale(1.1); }
.cr-proto-field-ai-btn.loading { animation:crProtoSpin 1s linear infinite; }
@keyframes crProtoSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.cr-proto-field input, .cr-proto-field select, .cr-proto-field textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; background:#fff; }
.cr-proto-field input:focus, .cr-proto-field select:focus, .cr-proto-field textarea:focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,0.1); }
.cr-proto-field textarea { resize:vertical; min-height:72px; line-height:1.6; }
.cr-proto-field input.locked, .cr-proto-field select.locked { background:#f3f4f6; color:#9ca3af; cursor:not-allowed; }
.cr-proto-field-ai-tip { font-size:11px; color:#7c3aed; padding:2px 8px; background:#f5f3ff; border-radius:4px; display:inline-flex; align-items:center; gap:4px; }
.cr-proto-field-locked-tag { font-size:11px; color:#9ca3af; background:#f3f4f6; padding:2px 8px; border-radius:4px; display:inline-flex; align-items:center; gap:4px; }

/* 操作栏 */
.cr-proto-actions { display:flex; align-items:center; gap:10px; padding-top:16px; border-top:1px solid #f3f4f6; }
.cr-proto-btn { padding:9px 20px; border:none; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:6px; min-height:40px; }
.cr-proto-btn-prev { background:#f3f4f6; color:#6b7280; }
.cr-proto-btn-prev:hover { background:#e5e7eb; }
.cr-proto-btn-next { background:#2563eb; color:#fff; }
.cr-proto-btn-next:hover { background:#1d4ed8; }
.cr-proto-btn-ai-gen { background:linear-gradient(135deg,#7c3aed,#6d28d9); color:#fff; margin-left:auto; }
.cr-proto-btn-ai-gen:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(124,58,237,0.3); }
.cr-proto-btn-ai-gen:disabled { opacity:0.5; cursor:not-allowed; transform:none; box-shadow:none; }
.cr-proto-btn-review { background:#059669; color:#fff; }
.cr-proto-btn-review:hover { background:#047857; }

/* 右侧AI引用面板 */
.cr-proto-ai-panel { background:#fff; border-radius:12px; border:1px solid #e5e7eb; display:flex; flex-direction:column; gap:0; overflow:hidden; }
.cr-proto-ai-panel-header { padding:16px 20px; background:linear-gradient(135deg,#f5f3ff,#ede9fe); border-bottom:1px solid #e5e7eb; display:flex; align-items:center; gap:8px; }
.cr-proto-ai-panel-header i { color:#7c3aed; }
.cr-proto-ai-panel-header span { font-size:14px; font-weight:600; color:#4c1d95; }
.cr-proto-ai-ref-list { padding:16px; display:flex; flex-direction:column; gap:10px; flex:1; overflow-y:auto; max-height:400px; }
.cr-proto-ai-ref-item { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border-radius:8px; background:#f9fafb; border:1px solid #f3f4f6; cursor:pointer; transition:all 0.2s; }
.cr-proto-ai-ref-item:hover { background:#f0f5ff; border-color:#dbeafe; }
.cr-proto-ai-ref-icon { width:28px; height:28px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.cr-proto-ai-ref-icon.law { background:#dbeafe; color:#2563eb; }
.cr-proto-ai-ref-icon.doc { background:#dcfce7; color:#16a34a; }
.cr-proto-ai-ref-icon.data { background:#fef3c7; color:#d97706; }
.cr-proto-ai-ref-icon.bench { background:#fce7f3; color:#db2777; }
.cr-proto-ai-ref-icon.kb { background:#ede9fe; color:#7c3aed; }
.cr-proto-ai-ref-info { flex:1; min-width:0; }
.cr-proto-ai-ref-name { font-size:13px; font-weight:500; color:#1f2937; }
.cr-proto-ai-ref-level { font-size:11px; color:#9ca3af; margin-top:2px; }
.cr-proto-ai-ref-arrow { color:#9ca3af; font-size:12px; flex-shrink:0; margin-top:4px; }

/* AI生成内容预览区 */
.cr-proto-preview { background:#fff; border-radius:12px; border:1px solid #e5e7eb; display:flex; flex-direction:column; overflow:hidden; }
.cr-proto-preview-header { padding:14px 20px; background:#f9fafb; border-bottom:1px solid #e5e7eb; display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:#374151; }
.cr-proto-preview-header i { color:#7c3aed; }
.cr-proto-preview-body { padding:20px; font-size:14px; line-height:1.8; color:#374151; }
.cr-proto-preview-body h4 { font-size:15px; font-weight:600; color:#1f2937; margin:16px 0 8px; }
.cr-proto-preview-body h4:first-child { margin-top:0; }
.cr-proto-preview-body p { margin:0 0 10px; }
.cr-proto-preview-ref { display:inline-flex; align-items:center; gap:2px; padding:1px 6px; background:#f5f3ff; color:#7c3aed; border-radius:3px; font-size:11px; cursor:pointer; transition:all 0.15s; }
.cr-proto-preview-ref:hover { background:#ede9fe; }
.cr-proto-disclaimer { display:flex; align-items:center; gap:6px; padding:10px 20px; background:#fffbeb; border-top:1px solid #fef3c7; font-size:12px; color:#b45309; }
.cr-proto-disclaimer i { font-size:14px; flex-shrink:0; }

/* AI合规校验面板 */
.cr-proto-review-panel { background:#fff; border-radius:12px; border:1px solid #e5e7eb; display:flex; flex-direction:column; overflow:hidden; }
.cr-proto-review-header { padding:14px 20px; background:#f0fdf4; border-bottom:1px solid #dcfce7; display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:#166534; }
.cr-proto-review-header i { color:#16a34a; }
.cr-proto-review-list { padding:16px; display:flex; flex-direction:column; gap:8px; }
.cr-proto-review-item { display:flex; align-items:flex-start; gap:10px; padding:10px 14px; border-radius:8px; border:1px solid #f3f4f6; }
.cr-proto-review-item.pass { background:#f0fdf4; border-color:#dcfce7; }
.cr-proto-review-item.warn { background:#fffbeb; border-color:#fef3c7; }
.cr-proto-review-item.fail { background:#fef2f2; border-color:#fecaca; }
.cr-proto-review-status { font-size:16px; flex-shrink:0; margin-top:1px; }
.cr-proto-review-info { flex:1; }
.cr-proto-review-rule { font-size:13px; font-weight:500; color:#1f2937; }
.cr-proto-review-desc { font-size:12px; color:#6b7280; margin-top:2px; }

/* 保存提示 */
.cr-proto-save-tip { font-size:12px; color:#9ca3af; display:flex; align-items:center; gap:6px; }
.cr-proto-save-tip i { color:#16a34a; }

/* 隐藏字段 */
.cr-proto-hidden { display:none !important; }

/* 移动端适配 */
@media(max-width:768px) {
    .cr-proto-topbar { flex-direction:column; align-items:flex-start; gap:10px; }
    .cr-proto-stepper { padding:8px 10px; }
    .cr-proto-step-item { padding:6px 8px; font-size:11px; }
    .cr-proto-main { grid-template-columns:1fr; }
    .cr-proto-actions { flex-wrap:wrap; }
    .cr-proto-btn-ai-gen { margin-left:0; }
}

/* ==================== V5.37.0: cr-siteselect 中心筛选样式 ==================== */

/* 主容器 */
.cr-siteselect-wrap { display:flex; flex-direction:column; gap:16px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; }

/* 期别切换器 */
.cr-siteselect-phase-switcher { display:flex; gap:8px; background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:16px 20px; align-items:stretch; }
.cr-siteselect-phase-card { flex:1; padding:16px 20px; border-radius:10px; border:2px solid #e5e7eb; cursor:pointer; transition:all 0.25s; background:#f9fafb; text-align:center; }
.cr-siteselect-phase-card:hover { border-color:#0891b2; background:#ecfeff; }
.cr-siteselect-phase-card.active { border-color:#0891b2; background:linear-gradient(135deg,#ecfeff,#cffafe); box-shadow:0 2px 8px rgba(8,145,178,0.15); }
.cr-siteselect-phase-card .phase-num { font-size:24px; font-weight:700; color:#0891b2; margin-bottom:4px; }
.cr-siteselect-phase-card.active .phase-num { color:#0e7490; }
.cr-siteselect-phase-card .phase-label { font-size:13px; font-weight:600; color:#374151; margin-bottom:6px; }
.cr-siteselect-phase-card .phase-desc { font-size:11px; color:#6b7280; line-height:1.5; }
.cr-siteselect-phase-card .phase-count { font-size:11px; color:#0891b2; margin-top:6px; font-weight:500; }
.cr-siteselect-phase-card.active .phase-count { color:#0e7490; }

/* 主体布局：左筛选 + 右推荐 */
.cr-siteselect-main { display:grid; grid-template-columns:30% 70%; gap:16px; min-height:500px; }
@media(max-width:900px) { .cr-siteselect-main { grid-template-columns:1fr; } }

/* 筛选条件区 */
.cr-siteselect-filter { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; display:flex; flex-direction:column; gap:14px; overflow-y:auto; max-height:620px; }
.cr-siteselect-filter-title { font-size:15px; font-weight:600; color:#1f2937; display:flex; align-items:center; gap:8px; padding-bottom:10px; border-bottom:1px solid #f3f4f6; }
.cr-siteselect-filter-title i { color:#0891b2; }
.cr-siteselect-field { display:flex; flex-direction:column; gap:4px; }
.cr-siteselect-field label { font-size:12px; font-weight:500; color:#6b7280; display:flex; align-items:center; gap:4px; }
.cr-siteselect-field label .required { color:#dc2626; }
.cr-siteselect-field input, .cr-siteselect-field select, .cr-siteselect-field textarea { width:100%; padding:8px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; outline:none; transition:all 0.2s; background:#fff; }
.cr-siteselect-field input:focus, .cr-siteselect-field select:focus, .cr-siteselect-field textarea:focus { border-color:#0891b2; box-shadow:0 0 0 3px rgba(8,145,178,0.1); }
.cr-siteselect-field textarea { resize:vertical; min-height:60px; }
.cr-siteselect-checkbox-group { display:flex; flex-wrap:wrap; gap:8px; }
.cr-siteselect-checkbox-item { display:flex; align-items:center; gap:4px; font-size:12px; color:#374151; cursor:pointer; }
.cr-siteselect-checkbox-item input[type="checkbox"] { width:auto; accent-color:#0891b2; }

/* AI推荐按钮 */
.cr-siteselect-ai-btn { width:100%; padding:12px 20px; border:none; border-radius:10px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.25s; display:flex; align-items:center; justify-content:center; gap:8px; background:linear-gradient(135deg,#0891b2,#0e7490); color:#fff; margin-top:4px; }
.cr-siteselect-ai-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(8,145,178,0.35); }
.cr-siteselect-ai-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; box-shadow:none; }
.cr-siteselect-ai-btn i { font-size:16px; }

/* 手动添加按钮 */
.cr-siteselect-manual-btn { width:100%; padding:10px 16px; border:1px dashed #d1d5db; border-radius:8px; font-size:13px; cursor:pointer; transition:all 0.2s; background:#f9fafb; color:#6b7280; display:flex; align-items:center; justify-content:center; gap:6px; }
.cr-siteselect-manual-btn:hover { border-color:#0891b2; color:#0891b2; background:#ecfeff; }

/* 推荐结果区 */
.cr-siteselect-results { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; display:flex; flex-direction:column; gap:14px; overflow-y:auto; max-height:620px; }
.cr-siteselect-results-title { font-size:15px; font-weight:600; color:#1f2937; display:flex; align-items:center; gap:8px; }
.cr-siteselect-results-title i { color:#7c3aed; }
.cr-siteselect-results-count { font-size:12px; color:#9ca3af; margin-left:auto; }

/* 推荐中心卡片 */
.cr-siteselect-card { border:1px solid #e5e7eb; border-radius:10px; padding:16px; transition:all 0.2s; background:#f9fafb; }
.cr-siteselect-card:hover { border-color:#0891b2; box-shadow:0 2px 8px rgba(8,145,178,0.1); }
.cr-siteselect-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.cr-siteselect-card-name { font-size:15px; font-weight:600; color:#1f2937; }
.cr-siteselect-card-match { font-size:22px; font-weight:700; color:#0891b2; }
.cr-siteselect-card-match span { font-size:12px; color:#6b7280; font-weight:400; margin-left:2px; }

/* 5维度评分条 */
.cr-siteselect-scores { display:grid; grid-template-columns:1fr 1fr; gap:6px 16px; margin-bottom:12px; }
.cr-siteselect-score-item { display:flex; align-items:center; gap:8px; }
.cr-siteselect-score-label { font-size:11px; color:#6b7280; width:56px; flex-shrink:0; text-align:right; }
.cr-siteselect-score-bar { flex:1; height:6px; background:#e5e7eb; border-radius:3px; overflow:hidden; }
.cr-siteselect-score-fill { height:100%; border-radius:3px; transition:width 0.6s ease; }
.cr-siteselect-score-val { font-size:11px; font-weight:600; color:#374151; width:28px; text-align:right; }

/* 推荐理由 */
.cr-siteselect-reasons { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.cr-siteselect-reason { font-size:12px; color:#4b5563; display:flex; align-items:flex-start; gap:6px; line-height:1.5; }
.cr-siteselect-reason i { color:#f59e0b; margin-top:2px; flex-shrink:0; }

/* 操作按钮 */
.cr-siteselect-card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.cr-siteselect-btn { padding:6px 14px; border:none; border-radius:6px; font-size:12px; font-weight:500; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:4px; }
.cr-siteselect-btn-detail { background:#f3f4f6; color:#374151; }
.cr-siteselect-btn-detail:hover { background:#e5e7eb; }
.cr-siteselect-btn-compare { background:#ede9fe; color:#7c3aed; }
.cr-siteselect-btn-compare:hover { background:#ddd6fe; }
.cr-siteselect-btn-compare.added { background:#7c3aed; color:#fff; }
.cr-siteselect-btn-select { background:#0891b2; color:#fff; }
.cr-siteselect-btn-select:hover { background:#0e7490; }
.cr-siteselect-btn-select.selected { background:#059669; }

/* 空状态 */
.cr-siteselect-empty { text-align:center; padding:60px 20px; color:#9ca3af; }
.cr-siteselect-empty i { font-size:48px; display:block; margin-bottom:16px; color:#d1d5db; }
.cr-siteselect-empty p { font-size:14px; margin:0; }
.cr-siteselect-empty small { font-size:12px; color:#d1d5db; }

/* 已选定中心区 */
.cr-siteselect-selected { background:#fff; border-radius:12px; border:1px solid #e5e7eb; padding:20px; }
.cr-siteselect-selected-title { font-size:15px; font-weight:600; color:#1f2937; display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.cr-siteselect-selected-title i { color:#059669; }
.cr-siteselect-selected-list { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.cr-siteselect-selected-item { display:flex; align-items:center; gap:8px; padding:8px 14px; border-radius:8px; border:1px solid #dcfce7; background:#f0fdf4; font-size:13px; }
.cr-siteselect-selected-item .site-id { font-weight:600; color:#059669; }
.cr-siteselect-selected-item .site-name { color:#1f2937; }
.cr-siteselect-selected-item .site-match { font-size:11px; color:#0891b2; }
.cr-siteselect-selected-item .site-remove { width:20px; height:20px; border:none; background:transparent; color:#9ca3af; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; border-radius:4px; transition:all 0.15s; }
.cr-siteselect-selected-item .site-remove:hover { background:#fef2f2; color:#dc2626; }
.cr-siteselect-push-btn { padding:10px 24px; border:none; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; background:linear-gradient(135deg,#059669,#047857); color:#fff; display:flex; align-items:center; gap:6px; transition:all 0.25s; }
.cr-siteselect-push-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(5,150,105,0.3); }

/* 对比弹窗 */
.cr-siteselect-compare-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:1000; display:flex; align-items:center; justify-content:center; }
.cr-siteselect-compare-modal { background:#fff; border-radius:16px; width:90%; max-width:1100px; max-height:85vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.cr-siteselect-compare-header { padding:20px 24px; background:linear-gradient(135deg,#f5f3ff,#ede9fe); border-bottom:1px solid #e5e7eb; display:flex; align-items:center; justify-content:space-between; }
.cr-siteselect-compare-header h3 { font-size:16px; font-weight:600; color:#4c1d95; display:flex; align-items:center; gap:8px; margin:0; }
.cr-siteselect-compare-close { width:32px; height:32px; border:none; background:#f3f4f6; border-radius:8px; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; color:#6b7280; transition:all 0.15s; }
.cr-siteselect-compare-close:hover { background:#e5e7eb; color:#1f2937; }
.cr-siteselect-compare-body { padding:20px 24px; }
.cr-siteselect-compare-table { width:100%; border-collapse:collapse; font-size:13px; }
.cr-siteselect-compare-table th, .cr-siteselect-compare-table td { padding:10px 12px; border:1px solid #e5e7eb; text-align:center; vertical-align:middle; }
.cr-siteselect-compare-table th { background:#f9fafb; font-weight:600; color:#374151; white-space:nowrap; }
.cr-siteselect-compare-table td.best { background:#f0fdf4; font-weight:600; color:#059669; }
.cr-siteselect-compare-table td:first-child { text-align:left; font-weight:500; color:#1f2937; background:#f9fafb; white-space:nowrap; }

/* 评分详情弹窗 */
.cr-siteselect-scoring-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:1001; display:flex; align-items:center; justify-content:center; }
.cr-siteselect-scoring-modal { background:#fff; border-radius:16px; width:90%; max-width:600px; max-height:80vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.cr-siteselect-scoring-header { padding:20px 24px; background:linear-gradient(135deg,#ecfeff,#cffafe); border-bottom:1px solid #e5e7eb; display:flex; align-items:center; justify-content:space-between; }
.cr-siteselect-scoring-header h3 { font-size:16px; font-weight:600; color:#0e7490; display:flex; align-items:center; gap:8px; margin:0; }
.cr-siteselect-scoring-close { width:32px; height:32px; border:none; background:#f3f4f6; border-radius:8px; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; color:#6b7280; transition:all 0.15s; }
.cr-siteselect-scoring-close:hover { background:#e5e7eb; color:#1f2937; }
.cr-siteselect-scoring-body { padding:24px; }
.cr-siteselect-scoring-total { text-align:center; margin-bottom:20px; }
.cr-siteselect-scoring-total .score-big { font-size:48px; font-weight:700; color:#0891b2; }
.cr-siteselect-scoring-total .score-max { font-size:16px; color:#9ca3af; }
.cr-siteselect-scoring-dim { display:flex; flex-direction:column; gap:14px; }
.cr-siteselect-scoring-dim-item { display:flex; align-items:center; gap:12px; }
.cr-siteselect-scoring-dim-label { font-size:13px; font-weight:500; color:#374151; width:80px; flex-shrink:0; }
.cr-siteselect-scoring-dim-bar { flex:1; height:10px; background:#e5e7eb; border-radius:5px; overflow:hidden; }
.cr-siteselect-scoring-dim-fill { height:100%; border-radius:5px; transition:width 0.6s ease; }
.cr-siteselect-scoring-dim-score { font-size:14px; font-weight:600; color:#374151; width:36px; text-align:right; }
.cr-siteselect-scoring-dim-desc { font-size:11px; color:#6b7280; width:100%; margin-top:2px; }

/* 手动添加弹窗 */
.cr-siteselect-manual-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:1002; display:flex; align-items:center; justify-content:center; }
.cr-siteselect-manual-modal { background:#fff; border-radius:16px; width:90%; max-width:420px; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.cr-siteselect-manual-header { padding:20px 24px; background:#f9fafb; border-bottom:1px solid #e5e7eb; border-radius:16px 16px 0 0; display:flex; align-items:center; justify-content:space-between; }
.cr-siteselect-manual-header h3 { font-size:15px; font-weight:600; color:#1f2937; margin:0; }
.cr-siteselect-manual-body { padding:24px; display:flex; flex-direction:column; gap:14px; }
.cr-siteselect-manual-footer { padding:16px 24px; border-top:1px solid #f3f4f6; display:flex; justify-content:flex-end; gap:10px; }
.cr-siteselect-manual-submit { padding:8px 20px; border:none; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; background:#0891b2; color:#fff; transition:all 0.2s; }
.cr-siteselect-manual-submit:hover { background:#0e7490; }
.cr-siteselect-manual-cancel { padding:8px 20px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; cursor:pointer; background:#fff; color:#6b7280; transition:all 0.2s; }
.cr-siteselect-manual-cancel:hover { background:#f3f4f6; }

/* 免责声明 */
.cr-siteselect-disclaimer { display:flex; align-items:center; gap:6px; padding:10px 20px; background:#fffbeb; border-top:1px solid #fef3c7; font-size:12px; color:#b45309; border-radius:0 0 12px 12px; }
.cr-siteselect-disclaimer i { font-size:14px; flex-shrink:0; }

/* 移动端适配 */
@media(max-width:768px) {
    .cr-siteselect-phase-switcher { flex-direction:column; }
    .cr-siteselect-main { grid-template-columns:1fr; }
    .cr-siteselect-scores { grid-template-columns:1fr; }
    .cr-siteselect-compare-modal { width:98%; }
}

/* ==================== END: V5.37.0 cr-siteselect CSS ==================== */


/* ==================== V5.52.0: 数据联动通知样式 ==================== */
@keyframes dl-badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
#dl-notification-badge { animation: dl-badge-pulse 2s ease-in-out infinite; }

/* V5.59.2: SSE打字效果 + 保存反馈 */
@keyframes cr-blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes cr-fadeIn { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
@keyframes cr-fadeOut { from{opacity:1} to{opacity:0;transform:translateY(-10px)} }
@keyframes cr-saveFlash { 0%{background:#10B981;color:#fff} 100%{background:#fff;color:#0891B2} }
.cr-ai-cursor { color: #3B82F6; font-weight: bold; animation: cr-blink 0.7s infinite; }
.cr-stop-btn { position:absolute; top:8px; right:8px; z-index:10; background:#EF4444; color:#fff; border:none; border-radius:4px; padding:4px 12px; cursor:pointer; font-size:12px; transition:background 0.2s; }
.cr-stop-btn:hover { background:#DC2626 !important; }
.cr-skip-btn { position:absolute; top:8px; right:80px; z-index:10; background:#8B5CF6; color:#fff; border:none; border-radius:4px; padding:4px 12px; cursor:pointer; font-size:12px; transition:background 0.2s; }
.cr-skip-btn:hover { background:#7C3AED !important; }
.cr-btn-save { transition: all 0.3s; }
.cr-btn-save.saving { background: #9CA3AF !important; color: #fff !important; pointer-events: none; border-color: #9CA3AF !important; }
.cr-btn-save.saved { background: #10B981 !important; color: #fff !important; border-color: #10B981 !important; animation: cr-saveFlash 2s ease; }
.cr-btn-save.save-fail { background: #EF4444 !important; color: #fff !important; border-color: #EF4444 !important; }
.cr-toast { position:fixed; top:20px; right:20px; z-index:10000; padding:12px 20px; border-radius:8px; color:#fff; font-size:14px; animation:cr-fadeIn 0.3s; max-width:400px; box-shadow:0 4px 12px rgba(0,0,0,0.15); }
.cr-toast-success { background:#10B981; }
.cr-toast-warning { background:#F59E0B; }
.cr-toast-error { background:#EF4444; }
.cr-toast-info { background:#3B82F6; }
.cr-confirm-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:9999; display:flex; align-items:center; justify-content:center; animation:cr-fadeIn 0.2s; }
.cr-confirm-dialog { background:#fff; border-radius:12px; padding:24px; max-width:400px; width:90%; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.cr-ai-saved-banner { margin:0 0 12px; padding:8px 12px; background:#ECFDF5; border:1px solid #A7F3D0; border-radius:8px; font-size:12px; color:#166534; display:flex; align-items:center; gap:6px; animation:cr-fadeIn 0.3s; }

/* === V8.0.0-0: 聊天面板 === */
.cr-chat-panel { display:flex; flex-direction:column; height:100%; align-self:stretch; }
.cr-chat-tabs { display:flex; border-bottom:2px solid #E5E7EB; padding:0 12px; background:#fff; }
.cr-chat-tab { padding:8px 16px; font-size:13px; font-weight:500; cursor:pointer;
               border-bottom:2px solid transparent; color:#6B7280; transition:all 0.2s; background:none; border-left:none; border-right:none; border-top:none; }
.cr-chat-tab.active { color:#10B981; border-bottom-color:#10B981; }
.cr-chat-tab:hover { color:#374151; }
.cr-chat-tab-body { flex:1; overflow:hidden; display:flex; flex-direction:column; }
.cr-chat-tab-pane { display:none; flex:1; overflow:hidden; flex-direction:column; }
.cr-chat-tab-pane.active { display:flex; }

/* === 消息流 === */
.cr-chat-messages { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; }
.cr-chat-msg { max-width:90%; animation:crChatFadeIn 0.3s ease; }
.cr-chat-msg-ai { align-self:flex-start; background:#F9FAFB; border:1px solid #E5E7EB;
                  border-radius:12px; padding:12px 16px; max-width:95%; position:relative; }
.cr-chat-msg-user { align-self:flex-end; background:#EFF6FF; border:1px solid #BFDBFE;
                    border-radius:12px; padding:10px 14px; max-width:70%; text-align:right; }
.cr-chat-msg-system { align-self:center; color:#9CA3AF; font-size:12px; }
.cr-chat-msg-loading .cr-chat-typing { color:#6B7280; }
.cr-chat-msg-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; font-size:12px; color:#6B7280; }
.cr-chat-msg-title { font-weight:600; color:#1f2937; font-size:14px; flex:1; }
.cr-chat-msg-time { margin-left:auto; }
.cr-chat-msg-content { font-size:13px; color:#374151; line-height:1.8; overflow-x:auto; }
.cr-chat-msg-actions { display:flex; gap:8px; margin-top:8px; padding-top:8px;
                       border-top:1px solid #f3f4f6; }
.cr-chat-msg-actions button { padding:4px 10px; font-size:11px; background:#fff;
                               border:1px solid #E5E7EB; border-radius:6px; cursor:pointer; }
.cr-chat-msg-actions button:hover { background:#f9fafb; }

/* === 操作栏 === */
.cr-chat-action-bar { display:flex; align-items:center; justify-content:space-between;
                      padding:8px 12px; border-top:1px solid #E5E7EB; background:#F9FAFB; min-height:40px; }
.cr-chat-action-btns { display:flex; gap:6px; }
.cr-chat-action-btns button { padding:4px 10px; font-size:11px; background:#fff;
                               border:1px solid #E5E7EB; border-radius:6px; cursor:pointer; }
.cr-chat-action-btns button:disabled { background:#f3f4f6; color:#9CA3AF; cursor:not-allowed; }

/* === 输入栏 === */
.cr-chat-input-bar { padding:8px 12px; border-top:1px solid #E5E7EB; background:#FAFBFC; }
.cr-chat-input-wrap { display:flex; gap:8px; align-items:flex-end; }
.cr-chat-input { flex:1; min-height:40px; max-height:120px; resize:none; padding:8px 12px;
                 border:1px solid #E5E7EB; border-radius:8px; font-size:13px; line-height:1.5; overflow-y:auto; }
.cr-chat-input:focus { border-color:#10B981; outline:none; }
.cr-chat-send-btn { padding:8px 16px; background:#10B981; color:white; border:none; border-radius:8px; cursor:pointer; font-size:16px; }
.cr-chat-send-btn:disabled { background:#D1D5DB; cursor:not-allowed; }
.cr-chat-attach-btn { padding:8px 12px; background:none; border:1px solid #E5E7EB; border-radius:8px; cursor:pointer; font-size:16px; }
.cr-chat-attach-btn:hover { background:#f9fafb; }

/* === 空状态 === */
.cr-chat-empty { text-align:center; padding:60px 20px; color:#9CA3AF; }
.cr-chat-empty-icon { font-size:48px; margin-bottom:16px; }
.cr-chat-empty-text { font-size:14px; margin-bottom:4px; }
.cr-chat-empty-hint { font-size:12px; color:#D1D5DB; }

/* === 动画 === */
@keyframes crChatFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes crChatTyping { 0%,100% { opacity:0.3; } 50% { opacity:1; } }
.cr-chat-typing { animation: crChatTyping 1.4s infinite; }

        /* === V11.0 Micro-interaction Keyframes === */
        @keyframes cardEnter {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-16px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @keyframes scaleIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        /* Card entrance animation */
        .quick-card { animation: cardEnter 0.5s ease-out both; }
        .quick-card:nth-child(2) { animation-delay: 0.08s; }
        .quick-card:nth-child(3) { animation-delay: 0.16s; }
        .quick-card:nth-child(4) { animation-delay: 0.24s; }
        .quick-card:nth-child(5) { animation-delay: 0.32s; }
        .quick-card:nth-child(6) { animation-delay: 0.40s; }

        /* Pipeline stage entrance */
        .pipeline-stage { animation: scaleIn 0.4s ease-out both; }
        .pipeline-stage:nth-child(1) { animation-delay: 0.05s; }
        .pipeline-stage:nth-child(2) { animation-delay: 0.1s; }
        .pipeline-stage:nth-child(3) { animation-delay: 0.15s; }
        .pipeline-stage:nth-child(4) { animation-delay: 0.2s; }
        .pipeline-stage:nth-child(5) { animation-delay: 0.25s; }
        .pipeline-stage:nth-child(6) { animation-delay: 0.3s; }

        /* Sidebar nav entrance */
        .sidebar-nav-item { animation: slideInLeft 0.3s ease-out both; }

        /* Skeleton loading */
        .skeleton-pulse {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
        }

        /* Button press feedback */
        .btn-primary:active, .cr-detail-ai-btn-v2:active {
            transform: scale(0.97);
            transition: transform 0.1s;
        }

        /* Smooth focus rings */
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--primary-color) !important;
            box-shadow: 0 0 0 3px rgba(8,145,178,0.12) !important;
            transition: all 0.2s;
        }

        /* ================================================================
           V11.0 MOBILE RESPONSIVE - Full Site Overhaul
           Soft UI Evolution + Healthcare SaaS
           ================================================================ */

        /* === Mobile Sidebar - Dark overlay drawer === */
        @media (max-width: 768px) {
            .sidebar {
                width: 0 !important;
                overflow: hidden;
                box-shadow: none;
                transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
            }
            .sidebar.mobile-open {
                width: 260px !important;
                z-index: 1100;
                box-shadow: 8px 0 32px rgba(0,0,0,0.3);
            }
            .sidebar.mobile-open .sidebar-logo-mark { display: flex; }
            .sidebar.mobile-open .sidebar-title { display: inline; color: #E2E8F0; }
            .sidebar.mobile-open .sidebar-collapse-btn { display: flex; }
            .sidebar.mobile-open .sidebar-sub-nav { display: block !important; }
            .sidebar.mobile-open .sidebar-arrow { display: inline !important; }
            .sidebar.mobile-open .sidebar-nav-item {
                padding: 12px 16px;
                font-size: 14px;
                justify-content: flex-start;
            }
            .sidebar.mobile-open .sidebar-nav-item span { display: inline !important; font-size: 14px; }
            .sidebar.mobile-open .sidebar-nav-item i { margin-right: 10px; font-size: 15px; }
            .sidebar.mobile-open .sidebar-footer { display: flex; }

            /* Sidebar overlay backdrop */
            .sidebar-overlay {
                display: none;
                position: fixed;
                top: 0; left: 0; right: 0; bottom: 0;
                background: rgba(0,0,0,0.4);
                backdrop-filter: blur(2px);
                z-index: 1050;
                animation: fadeIn 0.2s ease;
            }
            .sidebar-overlay.active { display: block; }

            .topbar { left: 0 !important; height: var(--app-topbar-height); }
            .main-container { margin-left: 0 !important; }

            /* Hero area compact */
            .hero { padding: 80px 16px 32px !important; }
            .hero h1 { font-size: 24px !important; letter-spacing: -0.3px; }
            .hero p { font-size: 14px !important; margin-bottom: 20px; }
            .hero-search { flex-direction: column; gap: 8px; }
            .hero-search input { padding: 12px 16px; font-size: 15px; border-radius: 12px; }
            .hero-search button { padding: 12px 20px; border-radius: 12px; }

            /* Pipeline stages - horizontal scroll */
            .pipeline-flow {
                grid-template-columns: repeat(6, 120px) !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: x mandatory;
                padding-bottom: 8px;
                scrollbar-width: none;
            }
            .pipeline-flow::-webkit-scrollbar { display: none; }
            .pipeline-stage {
                scroll-snap-align: start;
                padding: 14px 12px 12px;
                font-size: 13px;
                min-width: 100px;
            }

            /* Quick cards - single column */
            .quick-nav {
                grid-template-columns: 1fr !important;
                gap: 12px !important;
                padding: 0 16px 32px !important;
            }
            .quick-card {
                padding: 16px !important;
                border-radius: 12px !important;
            }
            .quick-card h3 { font-size: 15px; margin-bottom: 8px; }
            .quick-card p { font-size: 13px; margin-bottom: 10px; }

            /* Section titles compact */
            .section-title { font-size: 20px !important; margin-bottom: 24px; }

            /* Module detail pages - full stack layout */
            .cr-detail-layout-v2 {
                grid-template-columns: 1fr !important;
                gap: 12px !important;
                padding: 0 12px;
            }
            .cr-detail-input-v2 {
                border-radius: 14px !important;
                padding: 16px !important;
                position: static !important;
                height: auto !important;
                max-height: none !important;
            }
            .cr-detail-ai-panel {
                border-radius: 14px !important;
                min-height: 280px !important;
            }
            .cr-form-toggle-btn { display: flex !important; }

            /* Form overlay mode for mobile editing */
            .cr-detail-layout-v2.form-collapsed {
                grid-template-columns: 1fr !important;
            }
            .cr-detail-layout-v2.form-collapsed .cr-detail-input-v2 {
                display: none !important;
            }
            .cr-detail-layout-v2.form-overlay .cr-detail-input-v2 {
                position: fixed !important;
                top: 0; left: 0; right: 0; bottom: 0;
                z-index: 500 !important;
                border-radius: 0 !important;
                padding: 16px !important;
                overflow-y: auto !important;
                height: 100vh !important;
                max-height: 100vh !important;
                background: rgba(255,255,255,0.97) !important;
                backdrop-filter: blur(12px) !important;
            }
            .cr-detail-layout-v2.form-overlay .cr-detail-ai-panel {
                display: none !important;
            }

            /* AI panel tabs - scrollable horizontal */
            .cr-ai-panel-tabs {
                padding: 0 12px !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .cr-ai-panel-tabs::-webkit-scrollbar { display: none; }
            .cr-ai-panel-tab {
                padding: 10px 14px !important;
                font-size: 12px !important;
                white-space: nowrap;
                flex-shrink: 0;
            }

            /* AI panel body compact */
            .cr-ai-panel-body {
                padding: 14px !important;
                font-size: 13px;
            }

            /* Smart Selector mobile */
            .cr-selector-input {
                padding: 11px 32px 11px 36px !important;
                font-size: 15px !important;  /* prevent iOS zoom */
                border-radius: 10px !important;
            }
            .cr-selector-dropdown {
                max-height: 200px !important;
            }

            /* AI button mobile - full width */
            .cr-detail-ai-btn-v2 {
                width: 100%;
                justify-content: center;
                padding: 12px 20px !important;
                font-size: 14px !important;
                border-radius: 12px !important;
            }

            /* Module cards grid - 2 columns */
            .module-cards {
                grid-template-columns: 1fr 1fr !important;
                gap: 10px !important;
                padding: 0 12px;
            }
            .clinical-module-card {
                padding: 14px !important;
                min-height: 120px !important;
                border-radius: 12px !important;
            }
            .clinical-module-card-icon {
                width: 38px !important;
                height: 38px !important;
                border-radius: 10px !important;
                font-size: 16px !important;
            }
            .clinical-module-card-name { font-size: 13px !important; }
            .clinical-module-card-desc { font-size: 11px !important; }

            /* Pre-analysis framework mobile */
            .cr-preanalysis-framework {
                padding: 12px !important;
                border-radius: 12px !important;
            }
            .cr-preanalysis-items {
                grid-template-columns: 1fr 1fr !important;
                gap: 8px !important;
            }
            .cr-preanalysis-item {
                padding: 8px 10px !important;
                border-radius: 8px !important;
            }
            .cr-preanalysis-num { font-size: 16px !important; }
            .cr-preanalysis-text { font-size: 11px !important; }

            /* Bottom action bar mobile */
            .cr-detail-ai-panel .action-bar,
            .clinical-module-bottom-bar {
                padding: 8px 12px !important;
                gap: 6px !important;
                flex-wrap: wrap;
            }

            /* Form groups mobile */
            .cr-detail-input-v2 .form-group label { font-size: 12px !important; }
            .cr-detail-input-v2 .form-group input,
            .cr-detail-input-v2 .form-group select,
            .cr-detail-input-v2 .form-group textarea {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
                padding: 11px 14px !important;
                font-size: 15px !important; /* prevent iOS zoom */
                border-radius: 10px !important;
            }
            .cr-detail-input-v2 .form-group textarea {
                min-height: 86px !important;
                resize: vertical !important;
            }

            /* Breadcrumb compact */
            .breadcrumb { padding: 8px 12px !important; font-size: 12px !important; }

            /* Topbar compact */
            .topbar { padding: 8px 12px 0 !important; background: transparent !important; border-bottom: 0 !important; backdrop-filter: none !important; }
            .topbar-logo { height: 16px; display: none !important; }

            /* Overview cards mobile */
            .cr-overview-cards { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
            .cr-overview-card { padding: 12px !important; border-radius: 10px !important; }

            /* Home hero compact */
            .home-hero { padding: 76px 14px 16px !important; }
            .home-hero-title { font-size: 20px !important; }
            .home-hero-sub { font-size: 12px !important; }

            /* Home KPI grid */
            .home-kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

            /* AI Insights grid */
            .cr-ai-insights-grid { grid-template-columns: 1fr !important; }

            /* Phase bar mobile */
            .cr-phase-bar { flex-direction: column !important; height: auto !important; padding: 12px; gap: 10px; }
            .cr-phase-search { width: 100% !important; }

            /* Module hero compact */
            .module-hero { padding: 72px 14px 14px !important; }
            .module-hero h1 { font-size: 18px !important; }

            /* Clinical module form groups mobile */
            .clinical-module-form-group input,
            .clinical-module-form-group select,
            .clinical-module-form-group textarea {
                font-size: 15px !important;
                padding: 9px 12px !important;
            }

            /* Clinical module output tabs - scrollable */
            .clinical-module-output-tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .clinical-module-output-tabs::-webkit-scrollbar { display: none; }
            .clinical-module-output-tab {
                padding: 8px 12px !important;
                font-size: 12px !important;
                white-space: nowrap;
                flex-shrink: 0;
            }

            /* Table responsive - horizontal scroll wrapper */
            .clinical-mini-table { font-size: 11px !important; }
            .clinical-mini-table th,
            .clinical-mini-table td { padding: 5px 6px !important; }

            /* File upload zone mobile */
            .file-upload-zone {
                padding: 16px 12px !important;
                border-radius: 10px !important;
            }

            /* RBAC mobile */
            .rbac-manage-bar { padding: 6px 10px !important; font-size: 11px !important; }

            /* Toast mobile */
            .cr-toast {
                left: 12px !important;
                right: 12px !important;
                top: 12px !important;
                max-width: none !important;
                font-size: 13px;
                padding: 10px 16px;
            }

            /* Confirm dialog mobile */
            .cr-confirm-dialog {
                padding: 18px !important;
                max-width: 320px !important;
                border-radius: 14px !important;
            }
        }

        /* === Extra small screens (480px) === */
        @media (max-width: 480px) {
            .hero h1 { font-size: 20px !important; }
            .quick-card h3 { font-size: 14px; }
            .quick-card .enter-btn { font-size: 12px; padding: 6px 12px; }

            /* Module cards single column */
            .module-cards { grid-template-columns: 1fr !important; }

            /* Pre-analysis single column */
            .cr-preanalysis-items { grid-template-columns: 1fr !important; }

            /* Overview cards single column */
            .cr-overview-cards { grid-template-columns: 1fr !important; }

            /* Home flow cards */
            .home-flow-card { flex: 1 1 calc(50% - 4px); min-width: 0; }
            .home-flow-name { font-size: 12px; }

            /* Home KPI */
            .home-kpi-grid { grid-template-columns: 1fr 1fr !important; }
            .home-kpi-value { font-size: 16px !important; }

            /* AI workbench mobile */
            .cr-ai-workbench-grid { grid-template-columns: 1fr !important; }
        }

        /* === Touch-specific enhancements === */
        @media (hover: none) and (pointer: coarse) {
            /* Larger touch targets */
            .sidebar-nav-item { min-height: 48px; }
            .sidebar-sub-item { min-height: 40px; padding: 10px 20px 10px 52px; }
            .cr-ai-panel-tab { min-height: 44px; }
            .clinical-module-output-tab { min-height: 40px; }

            /* No hover transforms on touch */
            .quick-card:hover { transform: none; }
            .clinical-module-card:hover { transform: none; }
            .pipeline-stage:hover { transform: none; }

            /* Active state instead */
            .quick-card:active {
                transform: scale(0.98);
                background: rgba(255,255,255,0.95);
            }
            .clinical-module-card:active {
                transform: scale(0.98);
                background: rgba(255,255,255,0.95);
            }

            /* Remove backdrop-filter for performance */
            .quick-card,
            .clinical-module-card,
            .cr-detail-input-v2,
            .cr-detail-ai-panel {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(255,255,255,0.97);
            }
        }

        /* === Safe area for notched phones === */
        @supports (padding: env(safe-area-inset-bottom)) {
            .sidebar-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
            .cr-detail-ai-panel .action-bar,
            .clinical-module-bottom-bar {
                padding-bottom: calc(10px + env(safe-area-inset-bottom));
            }
        }

        /* === Landscape mobile === */
        @media (max-height: 500px) and (orientation: landscape) {
            .hero { padding: 40px 16px 20px !important; }
            .hero h1 { font-size: 20px !important; }
            .module-hero { padding: 52px 14px 10px !important; }
            .sidebar.mobile-open { width: 220px !important; }
        }

        /* ================================================================
           V11.0 SUB-PAGE REFINEMENTS
           ================================================================ */

        /* Module hero gradient - per-stage colors */
        .module-hero {
            padding: 96px 24px 20px;
            position: relative;
            overflow: hidden;
        }
        .module-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 80%;
            height: 200%;
            background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 60%);
            pointer-events: none;
        }

        /* Module hero with phase-specific colors */
        .module-hero[data-phase="discovery"] { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); }
        .module-hero[data-phase="preclinical"] { background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%); }
        .module-hero[data-phase="clinical"] { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
        .module-hero[data-phase="registration"] { background: linear-gradient(135deg, #D97706 0%, #B45309 100%); }
        .module-hero[data-phase="postmarket"] { background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%); }
        .module-hero[data-phase="operation"] { background: linear-gradient(135deg, #475569 0%, #334155 100%); }

        /* Subtle pattern overlay for module hero */
        .module-hero::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image:
                radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
            pointer-events: none;
        }

        /* Overview cards enhancement */
        .cr-overview-card {
            background: rgba(255,255,255,0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border-light);
            border-radius: 14px;
            padding: 16px;
            box-shadow: var(--shadow);
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
        }
        .cr-overview-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
            border-color: var(--primary-light);
        }

        /* AI insights cards */
        .cr-ai-insight-card {
            background: rgba(255,255,255,0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            padding: 16px;
            box-shadow: var(--shadow-xs);
            transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
        }
        .cr-ai-insight-card:hover {
            box-shadow: var(--shadow);
            border-color: var(--primary-light);
        }

        /* Form section headers in detail view */
        .cr-detail-input-v2 h3 {
            font-family: 'Poppins', 'PingFang SC', sans-serif;
            font-size: 15px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .cr-detail-input-v2 h3 i {
            color: var(--primary-color);
            font-size: 14px;
        }

        /* Pre-analysis framework - refined */
        .cr-preanalysis-framework {
            background: rgba(240,253,250,0.5);
            border: 1px solid var(--border-light);
            border-radius: 14px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .cr-preanalysis-title {
            font-family: 'Poppins', 'PingFang SC', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .cr-preanalysis-title i { font-size: 12px; }
        .cr-preanalysis-items {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        .cr-preanalysis-item {
            text-align: center;
            padding: 12px 8px;
            border-radius: 10px;
            background: rgba(255,255,255,0.8);
            border: 1px solid rgba(8,145,178,0.06);
            box-sizing: border-box;
            transform: none !important;
            transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
        }
        .cr-preanalysis-item:hover {
            background: rgba(255,255,255,0.95);
            border-color: var(--primary-light);
            transform: none !important;
        }
        .cr-preanalysis-num {
            font-family: 'Poppins', sans-serif;
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-color);
            line-height: 1.2;
        }
        .cr-preanalysis-text {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Smart Selector refined */
        .cr-selector-input {
            border-radius: 10px;
            border: 1px solid rgba(8,145,178,0.15);
            transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
            background: rgba(255,255,255,0.9);
        }
        .cr-selector-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
            background: #fff;
        }
        .cr-selector-dropdown {
            border: 1px solid var(--border-light);
            border-radius: 10px;
            box-shadow: var(--shadow-md);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            background: rgba(255,255,255,0.97);
        }
        .cr-selector-item {
            padding: 10px 14px;
            border-radius: 6px;
            transition: all 0.15s;
        }
        .cr-selector-item:hover {
            background: rgba(8,145,178,0.06);
        }

        /* AI Badge refined */
        .cr-ai-badge {
            font-size: 10px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(8,145,178,0.08);
            color: var(--primary-color);
            letter-spacing: 0.3px;
        }

        /* Knowledge hub cards */
        .knowledge-category-card {
            background: rgba(255,255,255,0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border-light);
            border-radius: 14px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
        }
        .knowledge-category-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
            border-color: var(--primary-light);
        }

        /* Ops module cards */
        .ops-card {
            background: rgba(255,255,255,0.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            padding: 16px;
            box-shadow: var(--shadow-xs);
            transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
        }
        .ops-card:hover {
            box-shadow: var(--shadow);
            border-color: var(--primary-light);
        }

        /* Bottom action bar refined */
        .clinical-module-bottom-bar {
            flex-shrink: 0;
            padding: 10px 16px;
            border-top: 1px solid var(--border-light);
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* Progress bar refined */
        .clinical-progress-bar {
            height: 6px;
            background: rgba(8,145,178,0.08);
            border-radius: 3px;
            overflow: hidden;
        }
        .clinical-progress-bar-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
        }

        /* Data table refined */
        .clinical-mini-table th {
            background: rgba(8,145,178,0.04);
            color: var(--text-dark);
            font-weight: 600;
        }
        .clinical-mini-table tr:hover td {
            background: rgba(8,145,178,0.02);
        }

        /* File upload refined */
        .file-upload-zone {
            border: 2px dashed rgba(8,145,178,0.2);
            border-radius: 14px;
            background: rgba(240,253,250,0.3);
            transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
        }
        .file-upload-zone:hover {
            border-color: var(--primary-color);
            background: rgba(8,145,178,0.04);
        }
        .file-upload-zone.drag-over {
            border-color: var(--primary-color);
            background: rgba(8,145,178,0.08);
        }

        /* Role badge refined */
        .rbac-role-badge.edit { background: rgba(8,145,178,0.08); color: var(--primary-color); }
        .rbac-manage-bar {
            background: linear-gradient(90deg, rgba(240,253,250,0.8), rgba(236,254,255,0.8));
            border-color: var(--border-light);
            color: var(--primary-color);
        }
        .rbac-manage-bar i { color: var(--primary-color); }

        /* Module card entrance animations */
        .clinical-module-card {
            animation: cardEnter 0.5s ease-out both;
        }
        .clinical-module-card:nth-child(1) { animation-delay: 0.02s; }
        .clinical-module-card:nth-child(2) { animation-delay: 0.06s; }
        .clinical-module-card:nth-child(3) { animation-delay: 0.10s; }
        .clinical-module-card:nth-child(4) { animation-delay: 0.14s; }
        .clinical-module-card:nth-child(5) { animation-delay: 0.18s; }
        .clinical-module-card:nth-child(6) { animation-delay: 0.22s; }
        .clinical-module-card:nth-child(7) { animation-delay: 0.26s; }
        .clinical-module-card:nth-child(8) { animation-delay: 0.30s; }

        /* Overview card entrance */
        .cr-overview-card {
            animation: cardEnter 0.4s ease-out both;
        }
        .cr-overview-card:nth-child(2) { animation-delay: 0.06s; }
        .cr-overview-card:nth-child(3) { animation-delay: 0.12s; }
        .cr-overview-card:nth-child(4) { animation-delay: 0.18s; }
        .cr-overview-card:nth-child(5) { animation-delay: 0.24s; }
        .cr-overview-card:nth-child(6) { animation-delay: 0.30s; }

        /* Tab indicator animation */
        .cr-ai-panel-tab.active {
            position: relative;
        }
        .cr-ai-panel-tab.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary-color);
            border-radius: 2px;
            animation: tabSlide 0.3s ease-out;
        }
        @keyframes tabSlide {
            from { transform: scaleX(0); }
            to { transform: scaleX(1); }
        }

        /* ================================================================
           V11.0 GLOBAL COMPONENT UPLIFT
           ================================================================ */

        /* All inputs unified */
        input:not([type="checkbox"]):not([type="radio"]):not(.cr-selector-input),
        select,
        textarea {
            border-color: rgba(8,145,178,0.15) !important;
            border-radius: var(--radius-sm) !important;
            transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
        }

        /* Buttons refined */
        .btn-primary, button[class*="primary"] {
            background: var(--primary-color);
            border-radius: var(--radius-md);
            font-weight: 600;
            transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
            box-shadow: 0 2px 8px rgba(8,145,178,0.2);
        }
        .btn-primary:hover, button[class*="primary"]:hover {
            box-shadow: 0 4px 16px rgba(8,145,178,0.3);
            transform: translateY(-1px);
        }
        .btn-primary:active, button[class*="primary"]:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 1px 4px rgba(8,145,178,0.2);
            transition: all 0.1s;
        }

        /* Scrollbars refined */
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb {
            background: rgba(8,145,178,0.12);
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(8,145,178,0.2);
        }

        /* Selection color */
        ::selection {
            background: rgba(8,145,178,0.15);
            color: var(--text-dark);
        }

        /* V10.2: app shell hierarchy and light sidebar refresh */
        .sidebar {
            background: #F8FAFC;
            border-right: 1px solid #E2E8F0;
            box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
        }
        .sidebar::-webkit-scrollbar-thumb { background: rgba(8,145,178,0.18); }
        .sidebar-logo {
            height: 68px;
            border-bottom: 1px solid #E2E8F0;
            background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
        }
        .sidebar-logo-mark {
            background: linear-gradient(135deg, #0891B2, #14B8A6);
            box-shadow: 0 8px 20px rgba(8,145,178,0.22);
        }
        .sidebar-logo .sidebar-title {
            color: #0F172A;
            font-size: 14px;
            font-weight: 700;
        }
        .sidebar-collapse-btn { color: #64748B; }
        .sidebar-collapse-btn:hover {
            background: #E0F2FE;
            color: #0E7490;
        }
        .sidebar-section-label {
            padding: 14px 18px 6px;
            color: #94A3B8;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            user-select: none;
        }
        .sidebar-nav { padding: 10px 0 14px; }
        .sidebar-nav-item {
            color: #334155;
            border-radius: 9px;
        }
        .sidebar-nav-item:hover {
            background: #ECFEFF;
            color: #0F766E;
        }
        .sidebar-nav-item.active {
            background: #E0F2FE;
            color: #0E7490;
        }
        .sidebar-nav-item.active::before {
            background: #0891B2;
        }
        .sidebar-expandable.open > .sidebar-nav-item.has-sub {
            color: #0E7490;
            background: #E0F2FE;
        }
        .sidebar-sub-item {
            color: #64748B;
        }
        .sidebar-sub-item:hover {
            color: #0F766E;
            background: #F0FDFA;
        }
        .sidebar-sub-item.active {
            color: #0E7490;
            background: #E0F2FE;
        }
        .sidebar-sub-divider { color: #94A3B8; }
        .sidebar-ops-group { margin: 2px 10px; }
        .sidebar-ops-group-toggle {
            width: 100%;
            border: 0;
            background: transparent;
            color: #64748B;
            padding: 8px 24px 6px 46px;
            font-size: 12px;
            font-weight: 700;
            text-align: left;
            cursor: pointer;
            position: relative;
            border-radius: 8px;
        }
        .sidebar-ops-group-toggle:hover {
            color: #0F766E;
            background: #F0FDFA;
        }
        .sidebar-ops-group-toggle::after {
            content: "\f107";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            transition: transform 0.16s ease;
        }
        .sidebar-ops-group.is-open .sidebar-ops-group-toggle {
            color: #0E7490;
            background: #ECFEFF;
        }
        .sidebar-ops-group.is-open .sidebar-ops-group-toggle::after {
            transform: translateY(-50%) rotate(180deg);
        }
        .sidebar-ops-group-panel { display: none; padding: 2px 0 4px; }
        .sidebar-ops-group.is-open .sidebar-ops-group-panel { display: block; }
        .sidebar-ops-group-panel .sidebar-sub-item {
            position: relative;
            margin: 2px 0;
            padding: 6px 12px 6px 62px;
            min-height: 30px;
            box-sizing: border-box;
            font-size: 12px;
            font-weight: 500;
            color: #64748B;
        }
        .sidebar-ops-group-panel .sidebar-sub-item::before {
            content: "";
            position: absolute;
            left: 50px;
            top: 50%;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: #94A3B8;
            transform: translateY(-50%);
            opacity: 0.7;
        }
        .sidebar-ops-group-panel .sidebar-sub-item.active {
            font-weight: 700;
            color: #0E7490;
        }
        .sidebar-ops-group-panel .sidebar-sub-item.active::before {
            background: #0891B2;
            opacity: 1;
        }
        .sidebar-context-card {
            margin: 8px 12px 10px;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid #DCEDEE;
            background: linear-gradient(135deg, #FFFFFF 0%, #F0FDFA 100%);
        }
        .sidebar-context-kicker {
            color: #0891B2;
            font-size: 11px;
            font-weight: 700;
            margin-bottom: 4px;
        }
        .sidebar-context-title {
            color: #0F172A;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.35;
        }
        .sidebar-context-note {
            margin-top: 6px;
            color: #64748B;
            font-size: 11px;
            line-height: 1.45;
        }
        body.kh-active-page .sidebar-context-card { display: none; }
        .sidebar-footer {
            border-top: 1px solid #E2E8F0;
            background: #FFFFFF;
        }
        .sidebar-user-row .user-name { color: #334155; }
        .sidebar-user-row .user-avatar { border-color: rgba(8,145,178,0.18); }
        .sidebar-bell { color: #64748B; }
        .sidebar-bell:hover {
            background: #ECFEFF;
            color: #0E7490;
        }
        .sidebar.collapsed .sidebar-section-label,
        .sidebar.collapsed .sidebar-context-card { display: none; }
        .sidebar.collapsed {
            width: 72px;
        }
        body.sidebar-collapsed .topbar {
            left: 72px;
        }
        body.sidebar-collapsed .main-container {
            margin-left: 72px;
        }
        .sidebar.collapsed .sidebar-nav {
            padding: 12px 0 14px;
        }
        .sidebar.collapsed .sidebar-nav-item {
            min-height: 66px;
            margin: 4px 8px;
            padding: 7px 4px;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            border-radius: 12px;
            font-size: 10px;
            line-height: 1.1;
        }
        .sidebar.collapsed .sidebar-nav-item i:not(.sidebar-arrow) {
            width: 20px;
            height: 20px;
            margin: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
        }
        .sidebar.collapsed .sidebar-nav-item span {
            display: block;
            max-width: 58px;
            color: #64748B;
            font-size: 10px;
            font-weight: 700;
            line-height: 1.1;
            text-align: center;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            word-break: keep-all;
            line-break: anywhere;
        }
        .sidebar.collapsed .sidebar-nav-item.active span,
        .sidebar.collapsed .sidebar-expandable.open > .sidebar-nav-item.has-sub span {
            color: #0E7490;
        }
        .sidebar.collapsed .sidebar-expandable {
            margin: 2px 0;
        }
        .sidebar.collapsed .sidebar-logo {
            height: 66px;
        }
        .sidebar.collapsed .sidebar-collapse-btn {
            width: 32px;
            height: 32px;
            border-radius: 10px;
        }
        @media (max-width: 1024px) and (min-width: 769px) {
            .sidebar {
                width: 72px !important;
            }
            .topbar {
                left: 72px !important;
            }
            .main-container {
                margin-left: 72px !important;
            }
            .sidebar .sidebar-title,
            .sidebar .sidebar-section-label,
            .sidebar .sidebar-context-card,
            .sidebar .sidebar-sub-nav,
            .sidebar .sidebar-sub-item,
            .sidebar .sidebar-ops-group,
            .sidebar .sidebar-nav-item .sidebar-arrow,
            .sidebar .sidebar-footer,
            .sidebar .sidebar-collapse-btn {
                display: none !important;
            }
            .sidebar .sidebar-logo {
                height: 66px !important;
                justify-content: center !important;
                padding: 14px 0 !important;
            }
            .sidebar .sidebar-logo-mark {
                display: flex !important;
                width: 32px !important;
                height: 32px !important;
                margin: 0 !important;
            }
            .sidebar .sidebar-nav {
                padding: 12px 0 14px !important;
            }
            .sidebar .sidebar-nav-item {
                width: 52px !important;
                min-height: 66px !important;
                margin: 5px auto !important;
                padding: 7px 4px !important;
                justify-content: center !important;
                align-items: center !important;
                flex-direction: column !important;
                gap: 5px !important;
                border-radius: 14px !important;
            }
            .sidebar .sidebar-nav-item i:not(.sidebar-arrow) {
                width: 22px !important;
                height: 22px !important;
                margin: 0 !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                font-size: 17px !important;
            }
            .sidebar .sidebar-nav-item span {
                display: block !important;
                max-width: 58px !important;
                color: #64748B !important;
                font-size: 11px !important;
                font-weight: 700 !important;
                line-height: 1.15 !important;
                text-align: center !important;
                white-space: normal !important;
                overflow: visible !important;
                text-overflow: clip !important;
                word-break: keep-all !important;
                line-break: anywhere !important;
            }
            .sidebar .sidebar-nav-item.active span,
            .sidebar .sidebar-expandable.open > .sidebar-nav-item.has-sub span {
                color: #0E7490 !important;
            }
            .sidebar .sidebar-expandable {
                margin: 0 !important;
            }
            .sidebar .sidebar-expandable .has-sub {
                justify-content: center !important;
            }
        }
        .sidebar.mobile-open .sidebar-title { color: #0F172A; }

        /* Unified SINOCRO avatar/logo asset */
        .login-card .login-logo img {
            content: url("../assets/apple-touch-icon.png?v=sinocro-avatar-20260610");
        }
        .topbar-logo {
            content: url("../assets/sinocro-avatar-64.png?v=sinocro-avatar-20260610");
        }
        .login-card .login-logo img {
            width: 156px;
            max-width: 48vw;
            border-radius: 24px;
        }
        .sidebar-logo-mark,
        .sidebar-user-row .user-avatar,
        .navbar-user .user-avatar,
        .navbar-user .dropdown-header .dd-avatar-sm,
        #topbarUserIcon {
            background: #fff url("../assets/sinocro-avatar-64.png?v=sinocro-avatar-20260610") center / cover no-repeat !important;
            color: transparent !important;
            font-size: 0 !important;
            overflow: hidden;
        }
        .sidebar-logo-mark,
        .sidebar-user-row .user-avatar,
        .navbar-user .user-avatar,
        .navbar-user .dropdown-header .dd-avatar-sm {
            border: 1px solid rgba(8,145,178,0.18);
        }
        .topbar-logo {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            object-fit: cover;
        }
        #topbarUserIcon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
        }
        #topbarUserIcon::before { content: ""; }

        /* V10.5.300: let the home hero background attach to the top chrome. */
        .main-container > #page-home.page.active {
            margin-top: calc(var(--app-topbar-height) * -1);
        }
        .main-container > #page-home.page.active > .home-hero:first-child {
            padding-top: calc(var(--app-topbar-height) + 32px);
        }
        @media (max-width: 768px) {
            .main-container > #page-home.page.active > .home-hero:first-child {
                padding-top: calc(var(--app-topbar-height) + 24px) !important;
            }
        }

        /* Focus visible for accessibility */
        :focus-visible {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        /* V10.5.304: 项目运营进度台账表格可读性优化 */
        .pm-progress-ledger-table-wrap { background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; touch-action:pan-y pinch-zoom; box-shadow:0 8px 24px rgba(15,23,42,.04); }
        .pm-progress-ledger-table-canvas { width:max-content; min-width:100%; will-change:transform; transition:transform .02s linear; }
        .pm-progress-ledger-table { width:100%; min-width:1180px; border-collapse:separate; border-spacing:0; table-layout:fixed; }
        .pm-progress-ledger-table th { position:sticky; top:0; z-index:2; height:44px; padding:10px 12px; background:#f8fafc; color:#4b5563; font-size:12px; font-weight:600; text-align:left; border-bottom:1px solid #e5e7eb; white-space:nowrap; }
        .pm-progress-ledger-table td { padding:10px 12px; border-bottom:1px solid #f3f4f6; vertical-align:top; background:#fff; }
        .pm-progress-ledger-table th:nth-child(1), .pm-progress-ledger-table td:nth-child(1) { width:118px; }
        .pm-progress-ledger-table th:nth-child(2), .pm-progress-ledger-table td:nth-child(2) { width:250px; }
        .pm-progress-ledger-table th:nth-child(3), .pm-progress-ledger-table td:nth-child(3),
        .pm-progress-ledger-table th:nth-child(4), .pm-progress-ledger-table td:nth-child(4) { width:168px; }
        .pm-progress-ledger-table th:nth-child(5), .pm-progress-ledger-table td:nth-child(5) { width:172px; }
        .pm-progress-ledger-table th:nth-child(6), .pm-progress-ledger-table td:nth-child(6) { width:92px; }
        .pm-progress-ledger-table th:nth-child(7), .pm-progress-ledger-table td:nth-child(7) { width:150px; }
        .pm-progress-ledger-table th:nth-child(8), .pm-progress-ledger-table td:nth-child(8) { width:82px; }
        .pm-progress-ledger-table th:nth-child(1), .pm-progress-ledger-table td:nth-child(1) { position:sticky; left:0; z-index:3; background:#fff; }
        .pm-progress-ledger-table th:nth-child(2), .pm-progress-ledger-table td:nth-child(2) { position:sticky; left:118px; z-index:3; background:#fff; box-shadow:8px 0 16px rgba(15,23,42,.04); }
        .pm-progress-ledger-table th:nth-child(1), .pm-progress-ledger-table th:nth-child(2) { z-index:5; background:#f8fafc; }
        .pm-progress-ledger-table th:nth-child(8), .pm-progress-ledger-table td:nth-child(8) { position:sticky; right:0; z-index:4; background:#fff; box-shadow:-8px 0 16px rgba(15,23,42,.04); }
        .pm-progress-ledger-table th:nth-child(8) { z-index:6; background:#f8fafc; }
        .pm-progress-ledger-row:hover td,
        .pm-progress-ledger-row:hover td:nth-child(1),
        .pm-progress-ledger-row:hover td:nth-child(2),
        .pm-progress-ledger-row:hover td:nth-child(8) { background:#f8fffe; }
        .pm-progress-ledger-row.is-placeholder-row td,
        .pm-progress-ledger-row.is-placeholder-row td:nth-child(1),
        .pm-progress-ledger-row.is-placeholder-row td:nth-child(2),
        .pm-progress-ledger-row.is-placeholder-row td:nth-child(8) { background:#f9fffd; }
        .pm-progress-ledger-category-cell { display:flex; flex-direction:column; gap:7px; }
        .pm-progress-ledger-seq-label { width:max-content; padding:3px 8px; border-radius:999px; background:#eff6ff; color:#2563eb; font-size:11px; font-weight:700; line-height:1; }
        .pm-progress-ledger-name-cell { display:flex; flex-direction:column; gap:7px; min-width:0; }
        .pm-progress-ledger-row-meta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12px; color:#6b7280; }
        .pm-progress-ledger-row-meta span { display:inline-flex; max-width:100%; padding:2px 7px; border:1px solid #e2e8f0; border-radius:999px; background:#f8fafc; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
        .pm-progress-ledger-input { width:100%; min-height:34px; border:1px solid #dbeafe; border-radius:8px; padding:5px 8px; font-size:12px; color:#111827; background:#fbfdff; outline:none; transition:all .15s ease; box-sizing:border-box; }
        .pm-progress-ledger-textarea { overflow:hidden; resize:none; }
        .pm-progress-ledger-input:focus { border-color:#2aacba; box-shadow:0 0 0 3px rgba(42,172,186,.1); }
        .pm-progress-ledger-input.is-placeholder { border-style:dashed; color:#6b7280; }
        .pm-progress-ledger-date-group { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
        .pm-progress-ledger-date-group label { display:flex; flex-direction:column; gap:3px; min-width:0; }
        .pm-progress-ledger-date-group label span { font-size:11px; font-weight:700; color:#64748b; }
        .pm-progress-ledger-date { min-width:0; padding-left:7px; padding-right:5px; font-size:12px; }
        .pm-progress-ledger-status-stack { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
        .pm-progress-ledger-status-line { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:24px; padding:3px 7px; border-radius:8px; background:#f8fafc; color:#64748b; font-size:11px; box-sizing:border-box; }
        .pm-progress-ledger-status-line strong { color:#334155; font-weight:700; text-align:right; }
        .pm-progress-ledger-status { display:inline-flex; align-items:center; justify-content:center; min-height:26px; padding:4px 9px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
        .pm-progress-ledger-status.is-neutral { background:#eef2ff; color:#4b5563; }
        .pm-progress-ledger-status.is-today { background:#fff7ed; color:#c2410c; }
        .pm-progress-ledger-status.is-danger { background:#fef2f2; color:#dc2626; }
        .pm-progress-ledger-status.is-info { background:#dbeafe; color:#2563eb; }
        .pm-progress-ledger-status.is-success { background:#dcfce7; color:#16a34a; }
        .pm-progress-ledger-status.is-warning { background:#fef3c7; color:#d97706; }
        .pm-progress-ledger-risk { display:inline-flex; align-items:center; min-height:26px; padding:3px 8px; border-radius:999px; background:#fff7ed; color:#c2410c; font-size:12px; font-weight:600; white-space:nowrap; }
        .pm-progress-ledger-muted { color:#9ca3af; font-size:12px; }
        .pm-progress-ledger-note-preview { color:#374151; font-size:12px; line-height:1.5; max-height:42px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
        .pm-progress-ledger-actions { display:flex; flex-direction:column; align-items:stretch; gap:6px; }
        .pm-progress-ledger-actions button { border:1px solid #d1d5db; background:#fff; color:#374151; border-radius:8px; min-height:30px; padding:0 9px; font-size:12px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
        .pm-progress-ledger-actions button:hover { border-color:#2aacba; color:#0f766e; background:#f0fdfa; }
        .pm-progress-ledger-actions button.danger { width:100%; padding:0; color:#dc2626; }
        @media(max-width:768px) {
            .pm-progress-ledger-table-wrap { display:none; }
        }

        /* V10.5.352: 临床研究卡片 hover 稳定层，避免卡片位移造成鼠标边缘反复闪烁 */
        #page-clinical .clinical-module-card,
        [id^="page-clinical-"] .clinical-module-card,
        [id^="page-clinical-"] .cr-overview-card,
        [id^="page-clinical-"] .cr-ai-insight-card,
        [id^="page-clinical-"] .cr-preanalysis-item,
        [id^="page-clinical-"] .cr-ai-filler-doc,
        [id^="page-clinical-"] .cr-ai-filler-ref,
        [id^="page-clinical-"] .cr-siteselect-card,
        [id^="page-clinical-"] .cr-proto-ai-ref-item,
        [id^="clinical-"] .clinical-module-card,
        [id^="clinical-"] .cr-overview-card,
        [id^="clinical-"] .cr-ai-insight-card,
        [id^="clinical-"] .cr-preanalysis-item,
        [id^="clinical-"] .cr-ai-filler-doc,
        [id^="clinical-"] .cr-ai-filler-ref,
        [id^="clinical-"] .cr-siteselect-card,
        [id^="clinical-"] .cr-proto-ai-ref-item {
            transform: none !important;
            will-change: auto;
            transition-property: background-color, border-color, box-shadow, color !important;
            transition-duration: 0.18s !important;
            transition-timing-function: ease !important;
        }

        #page-clinical .clinical-module-card:hover,
        [id^="page-clinical-"] .clinical-module-card:hover,
        [id^="page-clinical-"] .cr-overview-card:hover,
        [id^="page-clinical-"] .cr-ai-insight-card:hover,
        [id^="page-clinical-"] .cr-preanalysis-item:hover,
        [id^="page-clinical-"] .cr-ai-filler-doc:hover,
        [id^="page-clinical-"] .cr-ai-filler-ref:hover,
        [id^="page-clinical-"] .cr-siteselect-card:hover,
        [id^="page-clinical-"] .cr-proto-ai-ref-item:hover,
        [id^="clinical-"] .clinical-module-card:hover,
        [id^="clinical-"] .cr-overview-card:hover,
        [id^="clinical-"] .cr-ai-insight-card:hover,
        [id^="clinical-"] .cr-preanalysis-item:hover,
        [id^="clinical-"] .cr-ai-filler-doc:hover,
        [id^="clinical-"] .cr-ai-filler-ref:hover,
        [id^="clinical-"] .cr-siteselect-card:hover,
        [id^="clinical-"] .cr-proto-ai-ref-item:hover {
            transform: none !important;
        }

        /* V10.5.353: 卡片内部文字/编号不再抢占 hover 命中，避免父子目标切换闪烁 */
        #page-clinical .clinical-module-card > *,
        [id^="page-clinical-"] .clinical-module-card > *,
        [id^="page-clinical-"] .cr-preanalysis-item > *,
        [id^="page-clinical-"] .cr-ai-filler-doc > *,
        [id^="page-clinical-"] .cr-proto-ai-ref-item > *,
        [id^="clinical-"] .clinical-module-card > *,
        [id^="clinical-"] .cr-preanalysis-item > *,
        [id^="clinical-"] .cr-ai-filler-doc > *,
        [id^="clinical-"] .cr-proto-ai-ref-item > * {
            pointer-events: none;
        }

        /* V10.5.387: compact clinical AI preview cards across all module tabs */
        [id^="page-clinical-"] .cr-ai-panel-body,
        [id^="clinical-"] .cr-ai-panel-body {
            padding: 16px 20px !important;
        }

        [id^="page-clinical-"] .cr-preanalysis-framework,
        [id^="clinical-"] .cr-preanalysis-framework {
            padding: 14px 16px !important;
            border-radius: 10px !important;
            background: linear-gradient(180deg, #f8fffc 0%, #f3fbfa 100%) !important;
            border: 1px solid rgba(20, 184, 166, 0.22) !important;
            box-shadow: none !important;
        }

        [id^="page-clinical-"] .cr-preanalysis-title,
        [id^="clinical-"] .cr-preanalysis-title {
            margin: 0 0 10px !important;
            padding-bottom: 8px !important;
            border-bottom: 1px solid rgba(20, 184, 166, 0.2) !important;
            color: #0f766e !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            line-height: 1.35 !important;
            letter-spacing: 0 !important;
        }

        [id^="page-clinical-"] .cr-preanalysis-items,
        [id^="clinical-"] .cr-preanalysis-items {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 8px !important;
            margin: 0 !important;
        }

        [id^="page-clinical-"] .cr-preanalysis-item,
        [id^="clinical-"] .cr-preanalysis-item {
            display: grid !important;
            grid-template-columns: 22px minmax(0, 1fr) !important;
            align-items: start !important;
            gap: 8px !important;
            min-height: 0 !important;
            padding: 8px 9px !important;
            border-radius: 8px !important;
            background: #ffffff !important;
            border: 1px solid rgba(148, 163, 184, 0.28) !important;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
            text-align: left !important;
        }

        [id^="page-clinical-"] .cr-preanalysis-num,
        [id^="clinical-"] .cr-preanalysis-num {
            width: 22px !important;
            height: 22px !important;
            min-width: 22px !important;
            margin: 0 !important;
            border-radius: 7px !important;
            background: #0891b2 !important;
            color: #ffffff !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            line-height: 22px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        [id^="page-clinical-"] .cr-preanalysis-text,
        [id^="clinical-"] .cr-preanalysis-text {
            margin: 0 !important;
            color: #334155 !important;
            font-size: 12px !important;
            line-height: 1.45 !important;
            letter-spacing: 0 !important;
            overflow-wrap: anywhere !important;
            word-break: break-word !important;
        }

        @media (max-width: 980px) {
            [id^="page-clinical-"] .cr-preanalysis-items,
            [id^="clinical-"] .cr-preanalysis-items {
                grid-template-columns: 1fr !important;
            }
        }

        [id^="page-clinical-"] .cr-customer-actions,
        [id^="clinical-"] .cr-customer-actions {
            margin-top: 8px !important;
        }

        [id^="page-clinical-"] .cr-customer-action-card,
        [id^="clinical-"] .cr-customer-action-card {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 10px !important;
            padding: 10px 12px !important;
            border: 1px solid #bae6fd !important;
            border-radius: 10px !important;
            background: #f0f9ff !important;
            color: #0f172a !important;
            font-size: 12px !important;
            line-height: 1.45 !important;
        }

        [id^="page-clinical-"] .cr-customer-action-card.is-linked,
        [id^="clinical-"] .cr-customer-action-card.is-linked {
            background: #f0fdf4 !important;
            border-color: #bbf7d0 !important;
            color: #14532d !important;
        }

        [id^="page-clinical-"] .cr-customer-action-card.is-muted,
        [id^="clinical-"] .cr-customer-action-card.is-muted {
            background: #f8fafc !important;
            border-color: #e2e8f0 !important;
            color: #475569 !important;
        }

        [id^="page-clinical-"] .cr-customer-action-card strong,
        [id^="clinical-"] .cr-customer-action-card strong {
            display: block !important;
            margin-bottom: 2px !important;
            font-size: 12px !important;
            font-weight: 700 !important;
        }

        [id^="page-clinical-"] .cr-customer-action-card span,
        [id^="clinical-"] .cr-customer-action-card span {
            display: block !important;
            color: #64748b !important;
            overflow-wrap: anywhere !important;
        }

        [id^="page-clinical-"] .cr-customer-action-card button,
        [id^="clinical-"] .cr-customer-action-card button {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 5px !important;
            flex: 0 0 auto !important;
            border: 1px solid #bae6fd !important;
            border-radius: 8px !important;
            padding: 7px 10px !important;
            background: #ffffff !important;
            color: #0369a1 !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            white-space: nowrap !important;
            cursor: pointer !important;
        }

        [id^="page-clinical-"] .cr-customer-action-card button.primary,
        [id^="clinical-"] .cr-customer-action-card button.primary {
            background: #0891B2 !important;
            border-color: #0891B2 !important;
            color: #ffffff !important;
        }

        [id^="page-clinical-"] .cr-customer-action-card button:disabled,
        [id^="clinical-"] .cr-customer-action-card button:disabled {
            cursor: not-allowed !important;
            opacity: 0.55 !important;
            color: #94a3b8 !important;
        }

        @media (max-width: 768px) {
            [id^="page-clinical-"] .cr-customer-action-card,
            [id^="clinical-"] .cr-customer-action-card {
                align-items: stretch !important;
                flex-direction: column !important;
            }

            [id^="page-clinical-"] .cr-customer-action-card button,
            [id^="clinical-"] .cr-customer-action-card button {
                width: 100% !important;
            }
        }

/* V10.5.572: 首页入口图标模式最终覆盖，避免后续卡片样式回写 */
@media (max-width: 520px) {
    .module-cards,
    .ops-module-group-grid,
    #page-clinical .cr-overview-cards,
    .smart-scenario-grid,
    .dash-scenario-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 22px 14px !important;
        align-items: start !important;
        justify-content: stretch !important;
    }
    .module-overview {
        background: #eaf7fb !important;
    }
    .module-card,
    #page-clinical .clinical-module-card,
    .smart-scenario-card {
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: center !important;
        overflow: visible !important;
    }
    .module-card:hover,
    #page-clinical .clinical-module-card:hover,
    .smart-scenario-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }
    #page-clinical .clinical-module-card-top {
        display: block !important;
        margin: 0 !important;
    }
    .module-card .card-icon,
    #page-clinical .clinical-module-card-icon,
    .smart-scenario-card .card-icon {
        width: 54px !important;
        height: 54px !important;
        margin: 0 auto 8px !important;
        border-radius: 12px !important;
        color: #fff !important;
        font-size: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: inset -8px -8px 0 rgba(0,0,0,.08) !important;
    }
    .module-card .card-title,
    #page-clinical .clinical-module-card-name,
    .smart-scenario-card h4 {
        max-width: 76px !important;
        margin: 0 auto !important;
        color: #0f172a !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }
    .module-card .card-desc,
    .module-card .card-link,
    #page-clinical .clinical-module-card-desc,
    #page-clinical .clinical-module-card-tags,
    #page-clinical .cr-ai-badge,
    .smart-scenario-card .card-role,
    .smart-scenario-card .card-desc,
    .smart-scenario-card .card-flow {
        display: none !important;
    }
    .module-sub-header h3,
    .ops-module-group-head h4,
    .home-flow-header h3 {
        color: #334155 !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }
    .module-sub-header .sub-count,
    .ops-module-group-head p,
    .ops-module-group-head span,
    .home-flow-header .home-flow-sub {
        display: none !important;
    }
    .ops-module-group {
        padding: 14px 12px 18px !important;
        border: 1px solid #cfe3ee !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 18px rgba(15,118,150,.08) !important;
    }
    .home-flow-section {
        background: #eaf7fb !important;
        padding: 18px 16px 20px !important;
        border-top: 1px solid #d7ecf3 !important;
        border-bottom: 1px solid #d7ecf3 !important;
    }
    .home-flow-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }
    .home-flow-card {
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 12px 10px !important;
        border: 1px solid #cfe3ee !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 18px rgba(15, 118, 150, .08) !important;
        text-align: center !important;
        overflow: hidden !important;
    }
    .home-flow-card::before,
    .home-flow-card .rbac-entry-badge,
    .home-flow-desc,
    .home-flow-seq,
    .home-flow-arrow,
    .home-flow-stats {
        display: none !important;
    }
    .home-flow-card:hover {
        transform: none !important;
        box-shadow: 0 8px 18px rgba(15, 118, 150, .08) !important;
        border-color: #cfe3ee !important;
    }
    .home-flow-icon {
        width: 54px !important;
        height: 54px !important;
        margin: 0 auto 8px !important;
        border-radius: 14px !important;
        color: #fff !important;
        font-size: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: inset -8px -8px 0 rgba(15,23,42,.08), 0 8px 16px rgba(14,116,144,.12) !important;
    }
    .home-flow-name {
        max-width: 92px !important;
        margin: 0 auto !important;
        color: #0f172a !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        word-break: keep-all !important;
    }
    .home-flow-card.fc-clinical .home-flow-icon {
        background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
    }
    .home-flow-card.fc-operations .home-flow-icon {
        background: linear-gradient(135deg, #0891b2, #14b8a6) !important;
    }
    .home-flow-card.fc-project .home-flow-icon {
        background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
    }
    .home-flow-card.fc-knowledge .home-flow-icon {
        background: linear-gradient(135deg, #0f766e, #67e8f9) !important;
    }
}

/* V10.5.672 final bottom override: 全站标题、仪表盘和台账字号收敛 */
.main-container,
.page.active {
    font-size: 13px;
}
.module-hero {
    padding: 72px 24px 16px !important;
}
.module-hero .hero-main {
    gap: 14px !important;
}
.module-hero .hero-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
}
.module-hero .hero-text h1,
.module-hero h1,
.hero h1,
.workspace-title-block h1 {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin-bottom: 3px !important;
}
.module-hero .hero-en,
.module-hero .hero-desc,
.module-header p,
.pm-sub-header small,
.pm-progress-ledger-hint,
.pm-progress-ledger-section-head span {
    font-size: 12px !important;
    line-height: 1.45 !important;
}
.module-hero-side {
    gap: 10px !important;
}
.module-hero-stat {
    min-height: 76px !important;
    padding: 12px 14px !important;
}
.module-hero-stat label,
.module-hero-stat span {
    font-size: 11px !important;
    line-height: 1.35 !important;
}
.module-hero-stat strong {
    font-size: 20px !important;
    line-height: 1.05 !important;
}
.module-header h1,
.section-title,
.pm-cockpit-title-bar h2,
.pm-ov-info-title,
.pm-progress-ledger-context-main h3,
.pm-sub-header h3,
.doc-mgmt-hero h1,
.ops2-input-panel .input-header h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
}
.pm-list-header h3,
.column-title,
.quick-card h3,
.pm-ai-modal-title,
.modal-title,
.form-section-title,
.ops-finance-modal h3 {
    font-size: 15px !important;
    line-height: 1.35 !important;
}
.pm-dash-zone-name,
.pm-dash-card-text h5,
.pm-card-header-text h4,
.ops2-module-card .ops2-card-title,
.dense-section-title strong,
.pm-progress-ledger-section-head strong,
.pm-progress-ledger-status-group-head h4 {
    font-size: 13px !important;
    line-height: 1.35 !important;
}
.pm-dash-kpi .kpi-num,
.pm-stat-item .num,
.pm-project-stat strong,
.workspace-ai-summary strong,
.widget-metrics strong,
.finance-metrics strong,
.center-status-main strong,
.risk-status-kpis strong,
.pm-progress-ledger-status-metric strong {
    font-size: 18px !important;
    line-height: 1.1 !important;
}
.summary-card-value,
.summary-metric-card strong,
.pm-project-card-name {
    font-size: 16px !important;
    line-height: 1.25 !important;
}
.pm-progress-ledger-toolbar,
.pm-list-toolbar,
.doc-mgmt-toolbar,
.ops2-output-tab,
.tab-btn,
.phase-tab,
.pm-cockpit-btn,
.pm-add-btn,
.pm-dash-action-btn,
.pm-progress-ledger-chip,
.pm-progress-ledger-tool-btn,
.pm-progress-ledger-view-entry,
.pm-progress-ledger-toolbar-note {
    font-size: 12px !important;
}
.pm-progress-ledger-search input,
.pm-progress-ledger-filter,
.pm-list-search input,
.pm-list-filters select,
.form-group input,
.form-group select,
.form-group textarea,
.pm-form-group input,
.pm-form-group select,
.pm-form-group textarea,
.ops2-input-panel input,
.ops2-input-panel select,
.ops2-input-panel textarea {
    font-size: 12px !important;
}
.pm-progress-ledger-table th,
.pm-progress-ledger-table td,
.pm-progress-ledger-input,
.pm-progress-ledger-date,
.pm-progress-ledger-note-preview,
.pm-progress-ledger-status,
.pm-progress-ledger-risk,
.pm-data-table th,
.pm-data-table td,
thead th,
tbody td {
    font-size: 12px !important;
}
.pm-progress-ledger-status-line,
.pm-progress-ledger-row-meta,
.pm-progress-ledger-muted,
.pm-project-card-meta,
.pm-project-card-footer,
.pm-card-header-text small,
.pm-info-row,
.pm-dash-kpi .kpi-label,
.pm-dash-kpi .kpi-sub,
.pm-dash-card-text small {
    font-size: 11px !important;
}
@media (max-width: 768px) {
    .module-hero {
        padding: 64px 14px 12px !important;
    }
    .module-hero .hero-text h1,
    .module-hero h1,
    .workspace-title-block h1 {
        font-size: 18px !important;
    }
    .module-hero-stat strong,
    .pm-dash-kpi .kpi-num,
    .pm-stat-item .num,
    .pm-project-stat strong {
        font-size: 17px !important;
    }
}

/* V10.5.674: 第二批全界面密度治理，收敛入口卡、对象详情、审批流程和知识治理页 */
.module-hero .hero-en {
    display: none !important;
}
.module-hero .hero-desc {
    max-width: min(720px, 58vw) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.module-hero-stat {
    min-height: 68px !important;
    border-radius: 8px !important;
}
.module-hero-stat strong {
    font-size: 18px !important;
}

.ops-home-shell,
.ops-home-config,
.ops-home-group,
.kh-body,
.kh-workbench-hero-main,
.kh-panel,
.cr-home-main,
.cr-home-category {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
.ops-home-hero,
.ops-home-config-head,
.ops-home-group-head,
.kh-workbench-hero,
.kh-governance-workbench,
.kh-workbench-grid,
.cr-home-hero,
.cr-home-category-header,
.salary-head,
.qwb-head {
    margin-bottom: 10px !important;
}
.ops-home-desc,
.ops-home-section,
.ops-home-count,
.ops-home-config-head p,
.ops-home-group-head p,
.ops-home-group-head span,
.ops-home-entry-desc,
.ops-home-entry-action,
.ops-home-entry-title p,
.cr-home-hero-text p,
.cr-home-card-desc,
.cr-home-card-order,
.cr-home-card-ai,
.cr-home-card-tags,
.kh-home-entry span,
.kh-home-entry em,
.kh-home-dept-card p,
.kh-home-dept-tags,
.ops-finance-guide span,
.ops-finance-flow-meta,
.pm-dash-card-text small {
    display: none !important;
}
.ops-home-entry,
.ops-home-config .ops-home-entry,
.cr-home-card,
.kh-home-entry,
.kh-home-dept-card,
.module-card,
.smart-scenario-card,
.dash-scenario-card {
    min-height: 68px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
}
.ops-home-entry-grid,
.ops-home-config-grid,
.cr-home-cards,
.kh-home-entry-grid,
.kh-home-entry-grid-nature,
.kh-home-dept-grid,
.module-cards,
.smart-scenario-grid,
.dash-scenario-grid {
    gap: 8px !important;
}
.ops-home-entry-top,
.cr-home-card-top,
.kh-home-dept-top {
    gap: 8px !important;
    align-items: center !important;
}
.ops-home-entry-icon,
.cr-home-card-icon,
.kh-home-entry-mark,
.kh-home-dept-mark,
.module-card .card-icon,
.smart-scenario-card .card-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    flex: 0 0 30px !important;
}
.ops-home-entry-title h4,
.cr-home-card-name,
.kh-home-entry strong,
.kh-home-dept-top strong,
.module-card .card-title,
.smart-scenario-card h4,
.dash-scenario-card h4 {
    font-size: 13px !important;
    line-height: 1.28 !important;
    margin: 0 !important;
}
.kh-home-entry b,
.kh-home-dept-card b,
.ops-home-config-head h3,
.ops-home-group-head h3,
.cr-home-category-header h3,
.kh-section-title,
.kh-panel-heading {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.ops-finance-detail-hero,
.ops-finance-flow-source,
.contract-detail-hero,
.contract-node-summary,
.approval-workbench-hero,
.flow-center-hero,
.qwb-hero,
.salary-kpi,
.salary-panel-head,
.pm-ov-info-card {
    padding: 10px 12px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}
.ops-finance-detail-hero strong,
.contract-detail-hero strong,
.approval-workbench-hero strong,
.flow-center-hero strong,
.qwb-hero strong,
.salary-kpi strong,
.kh-pd-kpi-grid strong {
    font-size: 16px !important;
    line-height: 1.2 !important;
}
.ops-finance-detail-hero span,
.ops-finance-flow-source span,
.contract-detail-hero span,
.approval-workbench-hero span,
.flow-center-hero span,
.qwb-hero span,
.salary-kpi span {
    font-size: 11px !important;
    line-height: 1.4 !important;
}
.ops-finance-guide,
.salary-kpis,
.kh-pd-kpi-grid {
    gap: 8px !important;
}
.ops-finance-guide > div,
.kh-pd-kpi-grid div,
.salary-kpi {
    min-height: 58px !important;
    padding: 9px 10px !important;
    border-radius: 8px !important;
}

.ops-finance-modal > .ops-finance-modal-header,
.salary-dialog-head,
.kh-preview-head,
.kh-modal-title,
.modal-header,
.approval-modal-header,
.flow-center-modal-header {
    padding: 12px 14px !important;
}
.ops-finance-modal > .ops-finance-modal-header h3,
.salary-dialog-head h4,
.kh-modal-title,
.kh-preview-title,
.modal-title,
.approval-modal-header h3,
.flow-center-modal-header h3 {
    font-size: 15px !important;
    line-height: 1.3 !important;
}
.ops-finance-detail-section,
.salary-panel,
.kh-panel,
.qwb-panel,
.approval-panel,
.flow-center-panel {
    border-radius: 8px !important;
    margin-bottom: 10px !important;
}
.ops-finance-detail-section h4,
.salary-panel-head h4,
.qwb-panel h3,
.approval-panel h3,
.flow-center-panel h3,
[id^="page-clinical-"] h2,
[id^="page-clinical-"] h3 {
    font-size: 13px !important;
    line-height: 1.35 !important;
}
.ops-finance-detail-grid,
.salary-panel-body,
.kh-panel-body,
.qwb-panel-body,
.approval-panel-body,
.flow-center-panel-body {
    padding: 10px 12px !important;
}
.ops-finance-detail-modal .ops-finance-detail-grid {
    padding: 0 !important;
    gap: 0 !important;
}
.ops-finance-detail-modal .ops-finance-detail-field div {
    min-height: 0 !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 11px !important;
}
.ops-finance-detail-modal .ops-finance-detail-section h4 {
    padding: 7px 10px !important;
    font-size: 12px !important;
}
.ops-finance-detail-modal .ops-finance-detail-field label {
    font-size: 11px !important;
    padding: 6px 8px !important;
}

@media (min-width: 1180px) {
    .ops-home-entry-grid,
    .ops-home-config-grid,
    .cr-home-cards,
    .kh-home-entry-grid-nature,
    .kh-home-dept-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    }
    .ops-home-entry,
    .cr-home-card,
    .kh-home-entry,
    .kh-home-dept-card {
        min-height: 64px !important;
    }
}

/* V10.5.674b: 补齐独立模块的英文眉标和内联大标题 */
.kh-browse-home-head > div > span,
.kh-governance-kicker,
.kh-panel-eyebrow,
.ops-budget-eyebrow,
.pm-budget-context-eyebrow {
    display: none !important;
}
.kh-browse-home-head p,
.kh-home-section-head em,
.ops-budget-hero p,
#pm-finance-page p[style],
.pm-site-object-panel-head p {
    display: none !important;
}
.kh-browse-home-head h2,
.kh-governance-title,
.ops-budget-hero h3,
#pm-finance-page h3,
.pm-site-object-panel-head h4 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}
.kh-browse-home-head,
.kh-home-section,
.ops-budget-hero,
.pm-site-object-panel-head {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    margin-bottom: 10px !important;
}
.ops-budget-kpi strong,
.ops-budget-scope-card strong,
.ops-budget-flow-step b,
.ops-budget-object-card b,
.pm-finance-approval-head strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
}

/* V10.5.677: 普通模式保留入口卡信息，功能页内部继续降噪压缩 */
html:not([data-entry-mode="minimal"]) #page-clinical .cr-home-card {
    min-height: 96px !important;
    padding: 12px 14px !important;
    align-items: flex-start !important;
}
html:not([data-entry-mode="minimal"]) #page-clinical .cr-home-card-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 5px 0 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
html:not([data-entry-mode="minimal"]) #page-clinical .cr-home-card-order {
    display: flex !important;
}
html:not([data-entry-mode="minimal"]) #page-clinical .cr-home-hero-text p,
html:not([data-entry-mode="minimal"]) #page-clinical .cr-cat-desc,
html:not([data-entry-mode="minimal"]) #page-clinical .cr-cat-count {
    display: inline-flex !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
html:not([data-entry-mode="minimal"]) #page-operations .ops-home-entry {
    min-height: 88px !important;
    padding: 12px 14px !important;
}
html:not([data-entry-mode="minimal"]) #page-operations .ops-home-entry-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
html:not([data-entry-mode="minimal"]) #page-operations .ops-home-entry-action {
    display: flex !important;
    margin-top: auto !important;
}
html:not([data-entry-mode="minimal"]) #page-operations .ops-home-config-head p,
html:not([data-entry-mode="minimal"]) #page-operations .ops-home-group-head p,
html:not([data-entry-mode="minimal"]) #page-operations .ops-home-group-head span {
    display: inline-flex !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
html:not([data-entry-mode="minimal"]) #page-knowledge-hub .kh-home-entry,
html:not([data-entry-mode="minimal"]) #page-knowledge-hub .kh-home-dept-card {
    min-height: 96px !important;
    padding: 12px 14px !important;
}
html:not([data-entry-mode="minimal"]) #page-knowledge-hub .kh-home-entry span,
html:not([data-entry-mode="minimal"]) #page-knowledge-hub .kh-home-entry em,
html:not([data-entry-mode="minimal"]) #page-knowledge-hub .kh-home-dept-card p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.module-hero-stat,
.ops-budget-kpi,
.ops-budget-scope-card,
.pm-budget-stat,
.pm-budget-kpi,
.pm-dashboard-kpi,
.approval-stat-card,
.flow-center-stat,
.kh-stat-card,
.qwb-stat-card,
.salary-kpi {
    min-height: 58px !important;
    padding: 9px 11px !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.045) !important;
}
.module-hero-stat strong,
.ops-budget-kpi strong,
.ops-budget-scope-card strong,
.pm-budget-stat strong,
.pm-budget-kpi strong,
.pm-dashboard-kpi strong,
.approval-stat-card strong,
.flow-center-stat strong,
.kh-stat-card strong,
.qwb-stat-card strong,
.salary-kpi strong {
    font-size: 16px !important;
    line-height: 1.15 !important;
}
.module-hero-stat label,
.module-hero-stat span,
.ops-budget-kpi span,
.ops-budget-scope-card span,
.pm-budget-stat span,
.pm-budget-kpi span,
.pm-dashboard-kpi span,
.approval-stat-card span,
.flow-center-stat span,
.kh-stat-card span,
.qwb-stat-card span,
.salary-kpi span {
    font-size: 11px !important;
    line-height: 1.35 !important;
}
.module-header p,
.pm-sub-header small,
.approval-workbench-hero span,
.flow-center-hero span,
.contract-detail-hero span,
.ops-finance-detail-hero span,
.qwb-hero span,
.salary-kpi span {
    max-width: 760px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* V10.5.678: 客户/申办方管理功能页 KPI 与表格密度收敛 */
#operations-content .ops-sponsor .pm-vendors-kpi-row,
#page-operations .ops-sponsor .pm-vendors-kpi-row {
    gap: 8px !important;
}
#operations-content .ops-sponsor .pm-vendors-kpi,
#page-operations .ops-sponsor .pm-vendors-kpi {
    min-height: 58px !important;
    padding: 9px 12px !important;
    gap: 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035) !important;
}
#operations-content .ops-sponsor .pm-vendors-kpi:hover,
#page-operations .ops-sponsor .pm-vendors-kpi:hover {
    transform: none !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
}
#operations-content .ops-sponsor .pm-vendors-kpi .hkpi-icon,
#page-operations .ops-sponsor .pm-vendors-kpi .hkpi-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}
#operations-content .ops-sponsor .pm-vendors-kpi .hkpi-value,
#page-operations .ops-sponsor .pm-vendors-kpi .hkpi-value {
    font-size: 15px !important;
    line-height: 1.12 !important;
    font-weight: 750 !important;
}
#operations-content .ops-sponsor .pm-vendors-kpi .hkpi-label,
#page-operations .ops-sponsor .pm-vendors-kpi .hkpi-label {
    font-size: 11px !important;
    line-height: 1.3 !important;
}
#operations-content .ops-sponsor .pm-vendors-toolbar,
#page-operations .ops-sponsor .pm-vendors-toolbar,
#operations-content .ops-sponsor .ops-sponsor-bulkbar,
#page-operations .ops-sponsor .ops-sponsor-bulkbar {
    padding: 10px 12px !important;
    border-radius: 8px !important;
}
#operations-content .ops-sponsor .pm-vendors-search input,
#page-operations .ops-sponsor .pm-vendors-search input,
#operations-content .ops-sponsor .pm-vendors-filter,
#page-operations .ops-sponsor .pm-vendors-filter,
#operations-content .ops-sponsor .pm-site-scope-link,
#page-operations .ops-sponsor .pm-site-scope-link {
    height: 34px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
}
#operations-content .ops-sponsor .pm-data-table th,
#operations-content .ops-sponsor .pm-data-table td,
#page-operations .ops-sponsor .pm-data-table th,
#page-operations .ops-sponsor .pm-data-table td {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
}
#operations-content .ops-sponsor .pm-status-tag,
#page-operations .ops-sponsor .pm-status-tag,
#operations-content .ops-sponsor .pm-vendors-action-btn,
#page-operations .ops-sponsor .pm-vendors-action-btn {
    font-size: 11px !important;
}

/* V10.5.680: 平台级合同管理顶部重复标题与 KPI 密度收敛 */
#operations-content .ops-flow-bridge,
#page-operations .ops-flow-bridge {
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
}
#operations-content .ops-flow-bridge > div:first-child,
#page-operations .ops-flow-bridge > div:first-child {
    gap: 8px !important;
}
#operations-content .ops-flow-bridge > div:first-child > div:first-child,
#page-operations .ops-flow-bridge > div:first-child > div:first-child {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}
#operations-content .ops-flow-bridge > div:first-child > div:last-child > div:first-child,
#page-operations .ops-flow-bridge > div:first-child > div:last-child > div:first-child {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
}
#operations-content .ops-flow-bridge > div:first-child > div:last-child > div:last-child,
#page-operations .ops-flow-bridge > div:first-child > div:last-child > div:last-child {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
}
#operations-content .ctw-root,
#page-operations .ctw-root {
    padding-top: 10px !important;
}
#operations-content .ctw-head,
#page-operations .ctw-head {
    justify-content: flex-end !important;
    align-items: center !important;
    min-height: 0 !important;
    margin: 0 0 6px !important;
}
#operations-content .ctw-head h2,
#page-operations .ctw-head h2 {
    display: none !important;
}
#operations-content .ctw-head button,
#page-operations .ctw-head button {
    height: 32px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}
#operations-content .ctw-kpis,
#page-operations .ctw-kpis {
    gap: 8px !important;
    margin-bottom: 10px !important;
}
#operations-content .ctw-kpi,
#page-operations .ctw-kpi {
    min-height: 58px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035) !important;
}
#operations-content .ctw-kpi i,
#page-operations .ctw-kpi i {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}
#operations-content .ctw-kpi strong,
#page-operations .ctw-kpi strong {
    font-size: 14.5px !important;
    line-height: 1.12 !important;
    font-weight: 750 !important;
}
#operations-content .ctw-kpi span,
#page-operations .ctw-kpi span {
    font-size: 11px !important;
    line-height: 1.3 !important;
}
#operations-content .ctw-progress,
#page-operations .ctw-progress {
    grid-template-columns: 220px 1fr 58px !important;
    padding: 9px 10px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
}
#operations-content .ctw-progress strong,
#page-operations .ctw-progress strong {
    font-size: 12.5px !important;
    line-height: 1.25 !important;
}
#operations-content .ctw-progress span,
#page-operations .ctw-progress span,
#operations-content .ctw-progress em,
#page-operations .ctw-progress em {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

/* V10.5.684: 审批、项目运营、人员成本顶部重复标题与 KPI 密度收敛 */
#operations-content .apv-top,
#page-operations .apv-top {
    padding: 8px 10px !important;
    margin: 0 0 8px !important;
    border-radius: 8px !important;
}
#operations-content .apv-title,
#page-operations .apv-title {
    display: none !important;
}
#operations-content .apv-sub,
#page-operations .apv-sub {
    max-width: 680px !important;
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
#operations-content .apv-collab-strip,
#page-operations .apv-collab-strip {
    gap: 8px !important;
    margin-bottom: 8px !important;
}
#operations-content .apv-collab-card,
#page-operations .apv-collab-card {
    min-height: 58px !important;
    padding: 9px 11px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035) !important;
}
#operations-content .apv-collab-card span,
#operations-content .apv-collab-card small,
#page-operations .apv-collab-card span,
#page-operations .apv-collab-card small {
    font-size: 11px !important;
    line-height: 1.3 !important;
}
#operations-content .apv-collab-card strong,
#page-operations .apv-collab-card strong {
    font-size: 14.5px !important;
    line-height: 1.15 !important;
    margin: 4px 0 !important;
}
#operations-content .apv-tabbar,
#page-operations .apv-tabbar {
    min-height: 34px !important;
    gap: 4px !important;
    margin-top: 4px !important;
}
#operations-content .apv-tab,
#page-operations .apv-tab {
    padding: 7px 10px !important;
    font-size: 12px !important;
}
#operations-content .apv-count,
#page-operations .apv-count {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 10.5px !important;
}
#operations-content .apv-panel,
#operations-content .apv-filter,
#operations-content .apv-object-bulkbar,
#page-operations .apv-panel,
#page-operations .apv-filter,
#page-operations .apv-object-bulkbar {
    border-radius: 8px !important;
}
#operations-content .apv-panel-head,
#operations-content .apv-filter,
#page-operations .apv-panel-head,
#page-operations .apv-filter {
    padding: 10px 12px !important;
}
#page-project-management .pm-dash-context-strip {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 8px !important;
}
#page-project-management .pm-dash-context-label {
    display: none !important;
}
#page-project-management .pm-dash-context-title {
    gap: 6px !important;
}
#page-project-management .pm-dash-context-title strong {
    font-size: 14px !important;
    line-height: 1.35 !important;
}
#page-project-management .pm-dash-context-title code,
#page-project-management .pm-dash-category-tag,
#page-project-management .pm-dash-context-meta span,
#page-project-management .pm-dash-context-meta button {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    border-radius: 7px !important;
}
#page-project-management .pm-dash-context-title code,
#page-project-management .pm-dash-category-tag {
    padding: 3px 6px !important;
}
#page-project-management .pm-dash-context-flow {
    max-width: 680px !important;
    margin-top: 4px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
#page-project-management .pm-dash-context-meta {
    gap: 6px !important;
}
#page-project-management .pm-dash-context-meta span,
#page-project-management .pm-dash-context-meta button {
    padding: 4px 7px !important;
}
#page-project-management .pm-dash-kpis {
    gap: 8px !important;
}
#page-project-management .pm-dash-kpi-row {
    gap: 8px !important;
    margin: 8px 0 10px !important;
}
#page-project-management .pm-dash-kpi {
    min-height: 0 !important;
    height: 92px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035) !important;
}
#page-project-management .pm-dash-kpi.kpi-count {
    grid-template-columns: minmax(0, 1fr) 28px !important;
}
#page-project-management .pm-dash-kpi .kpi-main {
    gap: 3px !important;
}
#page-project-management .pm-dash-kpi strong,
#page-project-management .pm-dash-kpi .kpi-num {
    font-size: 15px !important;
    line-height: 1.15 !important;
}
#page-project-management .pm-dash-kpi span,
#page-project-management .pm-dash-kpi small {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}
#page-project-management .pm-dash-kpi svg,
#page-project-management .pm-dash-kpi .kpi-ring {
    width: 30px !important;
    height: 30px !important;
}
#page-project-management .pm-dash-kpi .kpi-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
}
#page-project-management .module-hero {
    padding-top: calc(var(--app-topbar-height) + 18px) !important;
    padding-bottom: 18px !important;
}
#page-project-management .module-hero-side {
    gap: 8px !important;
}
#page-project-management .module-hero-stat {
    min-height: 58px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
}
#page-project-management .module-hero-stat strong {
    font-size: 16px !important;
    line-height: 1.15 !important;
}
#page-project-management .module-hero-stat span,
#page-project-management .module-hero-stat small {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}

/* V10.5.717: prevent compact module heroes from colliding with the fixed topbar. */
.main-container > .page.active > .module-hero:first-child {
    padding-top: calc(var(--app-topbar-height) + 18px) !important;
}
.main-container > .page.active > .module-hero:first-child .hero-main {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    min-width: 0;
}
.main-container > .page.active > .module-hero:first-child .hero-icon {
    grid-column: 1;
    flex: 0 0 44px !important;
}
.main-container > .page.active > .module-hero:first-child .hero-text {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
}
.main-container > .page.active > .module-hero:first-child .hero-text h1,
.main-container > .page.active > .module-hero:first-child h1 {
    white-space: normal;
    overflow-wrap: anywhere;
}
.main-container > .page.active > .module-hero:first-child .hero-desc {
    max-width: 100% !important;
}
#operations-content .opc-wrap,
#page-operations .opc-wrap {
    padding: 0 12px 22px !important;
}
#operations-content .opc-head,
#page-operations .opc-head {
    justify-content: flex-end !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
}
#operations-content .opc-head h2,
#operations-content .opc-head p,
#page-operations .opc-head h2,
#page-operations .opc-head p {
    display: none !important;
}
#operations-content .opc-actions,
#page-operations .opc-actions {
    gap: 8px !important;
}
#operations-content .opc-actions button,
#operations-content .opc-filter button,
#page-operations .opc-actions button,
#page-operations .opc-filter button {
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}
#operations-content .opc-batch,
#operations-content .opc-quality,
#operations-content .opc-filter,
#operations-content .opc-panel,
#page-operations .opc-batch,
#page-operations .opc-quality,
#page-operations .opc-filter,
#page-operations .opc-panel {
    padding: 9px 10px !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
}
#operations-content .opc-batch,
#operations-content .opc-quality,
#page-operations .opc-batch,
#page-operations .opc-quality {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
}
#operations-content .opc-filter,
#page-operations .opc-filter {
    align-items: center !important;
    gap: 8px !important;
}
#operations-content .opc-filter input,
#page-operations .opc-filter input {
    height: 32px !important;
    padding: 0 9px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}
#operations-content .opc-tabs,
#page-operations .opc-tabs {
    gap: 6px !important;
    margin-bottom: 8px !important;
}
#operations-content .opc-tabs button,
#page-operations .opc-tabs button {
    padding: 8px 10px !important;
    font-size: 12px !important;
}
#operations-content .opc-grid,
#page-operations .opc-grid {
    gap: 8px !important;
    margin-bottom: 8px !important;
}
#operations-content .opc-card,
#page-operations .opc-card {
    min-height: 70px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
}
#operations-content .opc-card strong,
#page-operations .opc-card strong {
    font-size: 16px !important;
    line-height: 1.15 !important;
    margin: 5px 0 !important;
}
#operations-content .opc-card span,
#operations-content .opc-card small,
#page-operations .opc-card span,
#page-operations .opc-card small {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}
#operations-content .opc-panel h3,
#page-operations .opc-panel h3 {
    margin-bottom: 8px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

/* V10.5.699: business modal compact density */
.ops-finance-modal,
.apv-dialog {
    font-size: 12px !important;
    line-height: 1.42 !important;
}
.ops-finance-modal {
    padding: 18px 20px !important;
    border-radius: 10px !important;
}
.ops-finance-modal.ops-finance-detail-modal,
.ops-finance-modal.ops-finance-manage-modal,
.ops-finance-modal.ops-finance-expense-detail-modal,
.ops-finance-modal.ops-finance-vendor-payment-modal,
.ops-finance-modal.ops-finance-line-detail-modal,
.ops-finance-modal.ops-finance-expense-modal {
    padding: 0 !important;
}
.ops-finance-modal > .ops-finance-modal-header,
.apv-dialog-head {
    padding: 11px 16px !important;
    min-height: 42px !important;
}
.ops-finance-modal > .ops-finance-modal-header h3,
.ops-finance-modal h3,
.apv-dialog-title {
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}
.ops-finance-modal > .ops-finance-modal-header > button,
.apv-close {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}
.ops-finance-modal label,
.ops-finance-form-field label,
.ops-finance-form-section label,
.apv-dialog label,
.apv-field,
.apv-form label {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
}
.ops-finance-modal input,
.ops-finance-modal select,
.ops-finance-modal textarea,
.ops-finance-expense-modal .ops-finance-form-field input,
.ops-finance-expense-modal .ops-finance-form-field select,
.ops-finance-expense-modal .ops-finance-form-field textarea,
.apv-input,
.apv-select,
.apv-textarea {
    min-height: 30px !important;
    padding: 6px 8px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
}
.ops-finance-modal textarea,
.apv-textarea {
    min-height: 56px !important;
}
.ops-finance-form-section,
.ops-finance-detail-section,
.apv-modal-section,
.apv-contract-form-card {
    margin: 10px 16px !important;
    border-radius: 8px !important;
}
.ops-finance-form-section h4,
.ops-finance-detail-section h4,
.apv-modal-section h3,
.apv-contract-form-card h3 {
    padding: 8px 11px !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
}
.ops-finance-form-grid,
.ops-finance-detail-grid,
.apv-form {
    gap: 8px 10px !important;
    padding: 10px !important;
}
.ops-finance-form-section .ops-finance-add-item-btn,
.ops-finance-modal-cancel,
.ops-finance-modal-save,
.ops-finance-modal-delete,
.apv-btn {
    min-height: 30px !important;
    padding: 5px 10px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}
.ops-finance-modal-actions,
.ops-finance-modal-footer,
.apv-actions {
    gap: 8px !important;
    margin-top: 10px !important;
}
.ops-finance-detail-table,
.ops-finance-modal .pm-data-table,
.apv-dialog .apv-table {
    font-size: 11.5px !important;
}
.ops-finance-detail-table th,
.ops-finance-detail-table td,
.ops-finance-modal .pm-data-table th,
.ops-finance-modal .pm-data-table td,
.apv-dialog .apv-table th,
.apv-dialog .apv-table td {
    padding: 6px 8px !important;
}
.ops-finance-expense-line-attachment-panel,
.ops-finance-expense-line-attachment-card,
.ops-finance-expense-line-attachment-row,
.apv-kv-item,
.apv-compact-checkitem,
.apv-writeback-compact {
    font-size: 11.5px !important;
    padding: 7px 8px !important;
    border-radius: 7px !important;
}

/* V10.5.702: expense create modal extra compact typography */
.ops-finance-expense-modal {
    font-size: 11px !important;
    line-height: 1.34 !important;
}
.ops-finance-expense-modal > .ops-finance-modal-header {
    padding: 9px 14px !important;
    min-height: 38px !important;
}
.ops-finance-expense-modal > .ops-finance-modal-header h3 {
    font-size: 13px !important;
    line-height: 1.2 !important;
}
.ops-finance-expense-modal > .ops-finance-modal-header > button {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
}
.ops-finance-expense-modal .ops-finance-expense-form-note {
    margin: 10px 14px 0 !important;
    padding: 8px 10px !important;
    gap: 2px !important;
}
.ops-finance-expense-modal .ops-finance-expense-form-note strong {
    font-size: 12px !important;
    line-height: 1.25 !important;
}
.ops-finance-expense-modal .ops-finance-expense-form-note span {
    font-size: 10.5px !important;
    line-height: 1.4 !important;
}
.ops-finance-expense-modal .ops-finance-form-section {
    margin: 8px 14px !important;
    border-radius: 7px !important;
}
.ops-finance-expense-modal .ops-finance-form-section h4 {
    padding: 7px 10px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    gap: 6px !important;
}
.ops-finance-expense-modal .ops-finance-form-grid {
    gap: 7px 9px !important;
    padding: 9px 10px !important;
}
.ops-finance-expense-modal .ops-finance-form-field label,
.ops-finance-expense-modal .ops-finance-expense-line-head,
.ops-finance-expense-modal .ops-finance-expense-line-attachment-label {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
}
.ops-finance-expense-modal input,
.ops-finance-expense-modal select,
.ops-finance-expense-modal textarea,
.ops-finance-expense-modal .ops-finance-form-field input,
.ops-finance-expense-modal .ops-finance-form-field select,
.ops-finance-expense-modal .ops-finance-form-field textarea {
    min-height: 28px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    border-radius: 6px !important;
}
.ops-finance-expense-modal textarea {
    min-height: 46px !important;
}
.ops-finance-expense-modal .ops-finance-project-toggle {
    top: 3px !important;
    width: 26px !important;
    height: 26px !important;
}
.ops-finance-expense-modal .ops-finance-project-option {
    min-height: 34px !important;
    padding: 5px 7px !important;
}
.ops-finance-expense-modal .ops-finance-project-option strong {
    font-size: 11px !important;
    line-height: 1.18 !important;
}
.ops-finance-expense-modal .ops-finance-project-option span {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-head,
.ops-finance-expense-modal .ops-finance-expense-line-main,
.ops-finance-expense-modal .ops-finance-expense-line-attachments-row {
    gap: 7px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 8px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-head {
    padding-top: 10px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-main button,
.ops-finance-expense-modal .ops-finance-expense-line-file,
.ops-finance-expense-modal .ops-finance-form-section .ops-finance-add-item-btn {
    min-height: 28px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-main button {
    width: 32px !important;
    height: 28px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-file {
    padding: 0 8px !important;
}
.ops-finance-expense-modal .ops-finance-attachment-list {
    font-size: 10.5px !important;
    margin-top: 5px !important;
}
.ops-finance-expense-modal .ops-finance-expense-approval-preview {
    margin: 10px !important;
}
.ops-finance-expense-modal .ops-finance-modal-footer {
    padding: 8px 14px !important;
}

/* V10.5.703: expense detail row follows the old OA compact one-line table */
.ops-finance-expense-modal {
    width: min(1080px, calc(100vw - 64px)) !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-head,
.ops-finance-expense-modal .ops-finance-expense-line-main {
    grid-template-columns: 112px minmax(200px, 1.35fr) 90px 88px minmax(128px, .75fr) minmax(140px, .9fr) 82px 28px !important;
    gap: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 6px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-head {
    padding-top: 9px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-main > * {
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-main input,
.ops-finance-expense-modal .ops-finance-expense-line-main select,
.ops-finance-expense-modal .ops-finance-expense-line-main label,
.ops-finance-expense-modal .ops-finance-expense-line-main button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-desc,
.ops-finance-expense-modal .ops-finance-expense-line-invoice-no,
.ops-finance-expense-modal .ops-finance-expense-line-attachment-note {
    overflow: hidden;
    text-overflow: ellipsis;
}
.ops-finance-expense-modal .ops-finance-expense-line-attachment-note {
    min-height: 28px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-file {
    width: 82px !important;
    max-width: 82px !important;
    padding: 0 6px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-main button {
    width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-attachment-list {
    grid-column: 2 / -2 !important;
    margin: 0 10px 6px 122px !important;
    max-height: 46px !important;
    min-height: 0 !important;
    overflow: auto !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-attachment-list:empty {
    display: none !important;
}
.ops-finance-expense-modal .ops-finance-attachment-list span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* V10.5.704: constrain expense modal controls to their own grid cells */
.ops-finance-expense-modal,
.ops-finance-expense-modal * {
    box-sizing: border-box;
}
.ops-finance-expense-modal .ops-finance-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}
.ops-finance-expense-modal .ops-finance-form-field,
.ops-finance-expense-modal .ops-finance-project-picker {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.ops-finance-expense-modal input,
.ops-finance-expense-modal select,
.ops-finance-expense-modal textarea,
.ops-finance-expense-modal .ops-finance-project-combobox {
    width: 100% !important;
    max-width: 100% !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-main input,
.ops-finance-expense-modal .ops-finance-expense-line-main select,
.ops-finance-expense-modal .ops-finance-expense-line-main label,
.ops-finance-expense-modal .ops-finance-expense-line-main button {
    margin-bottom: 0 !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-head,
.ops-finance-expense-modal .ops-finance-expense-line-main {
    grid-template-columns: 118px minmax(190px, 1.35fr) 94px 92px minmax(130px, .75fr) minmax(150px, .9fr) 150px 32px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-file {
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
    min-height: 28px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    overflow: visible !important;
    padding: 0 6px 5px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-file > span:first-child {
    min-height: 28px !important;
    justify-content: center !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-file .ops-finance-expense-line-attachment-list {
    grid-column: auto !important;
    width: 100% !important;
    max-height: 72px !important;
    min-height: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 3px !important;
    overflow: auto !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-file .ops-finance-expense-line-attachment-list:empty {
    display: none !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-file .ops-finance-attachment-list span {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
}
.ops-finance-expense-modal .ops-finance-expense-line-main button {
    width: 32px !important;
    max-width: 32px !important;
}
.ops-finance-expense-form-feedback {
    display: none;
    margin: 0 14px 8px;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 11px;
    line-height: 1.35;
    align-items: center;
    gap: 7px;
}
.ops-finance-expense-form-feedback.is-visible {
    display: flex;
}
.ops-finance-expense-form-feedback.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}
.ops-finance-expense-form-feedback.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
.ops-finance-expense-form-feedback.is-success {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}
.ops-finance-expense-field-invalid {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, .16) !important;
}
.ops-finance-expense-modal .ops-finance-modal-save:disabled {
    opacity: .68;
    cursor: not-allowed;
}

/* V10.5.705: SinoFormModal v1 shared standard for finance payment and approval creation forms */
.sino-form-modal,
.sino-form-modal * {
    box-sizing: border-box;
}
.sino-form-modal {
    width: min(1080px, calc(100vw - 64px));
    max-height: 90vh;
    padding: 0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 11.5px;
    line-height: 1.35;
}
.sino-form-modal--large {
    width: min(1180px, calc(100vw - 64px));
}
.sino-form-modal--small {
    width: min(640px, calc(100vw - 48px));
}
.sino-form-modal__header {
    min-height: 38px;
    padding: 9px 14px;
    border-bottom: 1px solid #e5edf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}
.sino-form-modal__header h3,
.sino-form-modal__title {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}
.sino-form-modal__close {
    width: 28px;
    height: 28px;
    min-height: 28px;
    border: 1px solid #dbe5ef;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.sino-form-modal__body {
    overflow: auto;
    padding: 0;
    min-height: 0;
}
.sino-form-modal__footer {
    padding: 8px 14px;
    border-top: 1px solid #e5edf5;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.sino-form-section {
    margin: 8px 14px;
    border: 1px solid #e5edf5;
    border-radius: 7px;
    overflow: visible;
    background: #fff;
}
.sino-form-section > h4 {
    margin: 0;
    padding: 7px 10px;
    border-bottom: 1px solid #e5edf5;
    background: #f8fafc;
    color: #334155;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sino-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 9px;
    padding: 9px 10px;
}
.sino-form-field {
    min-width: 0;
    max-width: 100%;
}
.sino-form-field--full {
    grid-column: 1 / -1;
}
.sino-form-field > span,
.sino-form-field label,
.sino-form-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 700;
    color: #475569;
}
.sino-form-control,
.sino-form-modal input,
.sino-form-modal select,
.sino-form-modal textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid #cfe5ef;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-size: 11px;
    line-height: 1.25;
    outline: none;
}
.sino-form-modal textarea,
textarea.sino-form-control {
    min-height: 46px;
    resize: vertical;
}
.sino-line-table {
    width: 100%;
    overflow: visible;
}
.sino-line-table__head,
.sino-line-table__row {
    display: grid;
    gap: 6px;
    align-items: center;
    padding: 0 10px 6px;
}
.sino-line-table__head {
    padding-top: 9px;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 800;
}
.sino-line-table__row > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.sino-line-table--finance-detail .sino-line-table__head,
.sino-line-table--finance-detail .sino-line-table__row {
    grid-template-columns: 118px minmax(230px, 1.6fr) 96px 96px minmax(148px, .9fr) minmax(180px, 1.05fr) 86px 32px;
}
.sino-attachment-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 46px;
    overflow: auto;
    min-height: 0;
    font-size: 10.5px;
}
.sino-attachment-summary:empty {
    display: none;
}
.sino-attachment-summary span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px solid #dbe8e2;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
}
.sino-form-modal .ops-finance-project-picker,
.sino-form-modal .ops-finance-project-combobox {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.ops-finance-modal.ops-finance-vendor-payment-modal,
.ops-finance-modal.ops-finance-expense-modal,
.apv-dialog {
    box-sizing: border-box;
}
.ops-finance-modal.ops-finance-vendor-payment-modal input,
.ops-finance-modal.ops-finance-vendor-payment-modal select,
.ops-finance-modal.ops-finance-vendor-payment-modal textarea,
.apv-dialog .apv-input,
.apv-dialog .apv-select,
.apv-dialog .apv-textarea,
.apv-dialog input,
.apv-dialog select,
.apv-dialog textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.apv-dialog .apv-form,
.ops-finance-modal.ops-finance-vendor-payment-modal .ops-finance-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}
.apv-dialog .apv-form > *,
.ops-finance-modal.ops-finance-vendor-payment-modal .ops-finance-form-field {
    min-width: 0 !important;
    max-width: 100% !important;
}
@media (max-width: 720px) {
    .sino-form-modal,
    .sino-form-modal--large,
    .sino-form-modal--small {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    .sino-form-grid,
    .apv-dialog .apv-form,
    .ops-finance-modal.ops-finance-vendor-payment-modal .ops-finance-form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .sino-line-table__head {
        display: none;
    }
    .sino-line-table--finance-detail .sino-line-table__row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* V10.5.718: Knowledge Hub homepage icons should remain clean and readable after global density overrides. */
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-entry-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-dept-mark,
#page-knowledge-hub .kh-page.kh-home-flat .kh-home-project-mark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 0 0 8px !important;
    border-radius: 9px !important;
    font-family: "Font Awesome 6 Free" !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1 !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
