/* ========================================
 * MMGJ 主样式表
 * 模块索引：
 *   1. 基础变量与重置
 *   2. 布局框架 (Layout)
 *   3. 导航与侧边栏 (Navigation)
 *   4. 通用表单组件 (Forms)
 *   5. 通用按钮 (Buttons)
 *   6. 通用弹窗 (Modal)
 *   7. 状态标签与徽章 (Badge)
 *   8. 通用分页 (Pagination)
 *   9. 数据表格 (DataTable)
 *  10. 空状态 (EmptyState)
 *  11. 认证/登录模块 (Auth.Login)
 *  12. 用户信息模块 (User)
 *  13. 首页模块 (Home)
 *  14. 组织管理模块 (Organization)
 *  15. 权限配置模块 (Auth.Permission)
 *  16. 排课表模块 (Schedule)
 *  17. 统计卡片模块 (Stats)
 *  18. 进度指标模块 (Progress)
 *  19. 通知与待办模块 (Notification)
 *  20. 个人信息模块 (Profile)
 *  21. 课程卡片模块 (Course)
 *  22. Tab 切换组件 (Tab)
 *  23. 打印样式 (Print)
 *  24. 工具类 (Utilities)
 *  25. 响应式 (Responsive)
 * ======================================== */


/* ========================================
 * 1. 基础变量与重置
 * ======================================== */
:root {
    --primary-color: #1890ff;
    --primary-light: #e6f7ff;
    --primary-dark: #096dd9;
    --success-color: #52c41a;
    --success-light: #f6ffed;
    --warning-color: #faad14;
    --warning-light: #fffbe6;
    --danger-color: #f5222d;
    --danger-light: #fff1f0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #999;
    --border-color: #eee;
    --bg-color: #f5f7fa;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.05);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    padding: 2px;
}


/* ========================================
 * 2. 布局框架 (Layout)
 * ======================================== */

.app-wrapper {
    display: flex;
    min-height: calc(100vh - 4px);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 4px);
    background-color: var(--bg-color);
    overflow: hidden;
}

.main-nav {
    width: 100%;
    height: 60px;
    padding: 0px 100px 0px 0px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-content {
    flex: 1;
    height: calc(100vh - 80px);
    padding: 0;
    overflow-y: auto;
}

.main-nav a,
.main-nav button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

    .main-nav a:hover,
    .main-nav button:hover {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }

    .main-nav a.active {
        background-color: var(--primary-light);
        color: var(--primary-color);
        font-weight: 500;
    }

.main-nav form {
    margin: 0;
}

.main-nav button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    margin-bottom: 1px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.section-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

    .section-title:before {
        content: "";
        width: 4px;
        height: 18px;
        background-color: var(--primary-color);
        border-radius: 2px;
        margin-right: 10px;
    }

.class-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary-color);
}

/* 页面卡片容器 - 替代双 section 内联 border-radius 模式 */
.page-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.page-card-header {
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-card-body {
    padding: 20px;
}


/* ========================================
 * 3. 导航与侧边栏 (Navigation)
 * ======================================== */

/* 品牌区域 */
.nav-brand-wrap {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

    .nav-brand.brand-logo {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: #fff;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.95rem;
    }

    .nav-brand:hover,
    .nav-brand:focus {
        background: var(--primary-light);
        color: var(--primary-dark);
        outline: none;
    }

/* 侧边栏 */
.sidebar {
    width: 200px;
    height: calc(100vh - 4px);
    overflow: hidden;
    position: relative;
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    box-sizing: border-box;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

    .sidebar-menu .sidebar-menu {
        padding-left: 24px;
        width: 100%;
        box-sizing: border-box;
    }

.sidebar-menu-scroll-container {
    height: calc(100vh - 100px);
    width: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .sidebar-menu-scroll-container::-webkit-scrollbar {
        display: none;
    }

.sidebar-item {
    position: relative;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

    .sidebar-link:hover {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }

    .sidebar-link.active {
        background-color: var(--primary-light);
        color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
    }

.sidebar-icon {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-caret {
    margin-left: auto;
    transition: transform 0.2s;
}

.sidebar-item.open .sidebar-caret {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    background-color: #f9f9f9;
    display: none;
}

.sidebar-item.open .sidebar-submenu {
    display: block;
}

.sidebar-submenu .sidebar-link {
    padding-left: 45px;
    font-size: 13px;
}


/* ========================================
 * 4. 通用表单组件 (Forms)
 * ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 2px rgba(24,144,255,0.2);
    }

.input-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .input-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 2px rgba(24,144,255,0.2);
    }

.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-input {
    margin-right: 5px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    margin-right: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: var(--primary-color);
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.text-danger {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
}


/* ========================================
 * 5. 通用按钮 (Buttons)
 * ======================================== */

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
    }

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--text-primary);
}

    .btn-secondary:hover {
        background-color: #e8e8e8;
    }

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

    .btn-danger:hover {
        background-color: #d9111c;
    }

.btn-disabled {
    background-color: #e9ecef !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.7;
}

/* 红色文字按钮（无背景色） */
.btn-text-danger {
    color: #dc3545 !important;
    background: none !important;
    border: none;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

    .btn-text-danger:hover {
        color: #a71d2a !important;
        text-decoration: underline;
    }

/* 表格内操作按钮 */
.table-btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
}

    .table-btn.view {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }

    .table-btn.edit {
        background-color: var(--warning-light);
        color: var(--warning-color);
    }

    .table-btn.delete {
        background-color: var(--danger-light);
        color: var(--danger-color);
    }

    .table-btn.receive {
        background-color: var(--success-light);
        color: var(--success-color);
    }

    .table-btn.success {
        background: #d1fae5;
        color: #065f46;
    }

    .table-btn.warning {
        background: #fef3c7;
        color: #92400e;
    }

    .table-btn.follow {
        background-color: var(--primary-light);
        color: var(--primary-dark);
    }

    .table-btn.lock {
        background-color: #f0f0f0;
        color: var(--text-secondary);
    }

    .table-btn.success {
        background-color: var(--success-light);
        color: var(--success-color);
    }

    .table-btn.primary {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }

    .table-btn.warning {
        background-color: var(--warning-light);
        color: var(--warning-color);
    }

    .table-btn.secondary {
        background-color: #f0f0f0;
        color: var(--text-secondary);
    }

.table-operation {
    display: flex;
    gap: 8px;
}


/* ========================================
 * 6. 通用弹窗 (Modal)
 * ======================================== */

/* 遮罩层 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* 弹窗外层居中 */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: auto;
}

/* 弹窗容器 */
.modal-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 90vw;
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.25rem;
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

    .modal-close-btn:hover {
        color: #333;
    }

.modal-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    min-height: 0;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* 🔥 修复：Bootstrap 隐藏模态框必须 display:none，否则会覆盖页面拦截所有点击 */
.modal.fade:not(.show) {
    display: none;
}

/* ========================================
 * 7. 状态标签与徽章 (Badge)
 * ======================================== */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success-color);
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

.badge-secondary {
    background-color: #f0f0f0;
    color: var(--text-secondary);
}

.badge-info {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* Bootstrap bg-* 兼容层 */
.bg-gray {
    background-color: #6c757d !important;
    color: #fff !important;
}


/* ========================================
 * 8. 通用分页 (Pagination)
 * ======================================== */

.paginate-btn {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

    .paginate-btn:focus,
    .paginate-btn:active,
    .paginate-btn:hover {
        outline: none !important;
        box-shadow: none !important;
    }

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    font-size: 14px;
}

.pagination-info {
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

    .pagination-btn:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .pagination-btn.active {
        background-color: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
    }

    .pagination-btn.disabled {
        color: var(--text-tertiary);
        cursor: not-allowed;
    }

        .pagination-btn.disabled:hover {
            border-color: var(--border-color);
            color: var(--text-tertiary);
        }


/* ========================================
 * 9. 数据表格 (DataTable)
 * ======================================== */

.table-container {
    overflow-x: auto;
}

.table-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 100px;
}

    .data-table th,
    .data-table td {
        padding: 6px 12px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .data-table th {
        background-color: var(--bg-color);
        font-weight: bold;
        color: var(--text-secondary);
        white-space: nowrap;
    }

        .data-table th.sortable {
            cursor: pointer;
            position: relative;
            padding-right: 25px;
        }

            .data-table th.sortable:after {
                content: "";
                position: absolute;
                right: 10px;
                top: 50%;
                transform: translateY(-50%);
                width: 0;
                height: 0;
                border-left: 4px solid transparent;
                border-right: 4px solid transparent;
            }

            .data-table th.sortable.asc:after {
                border-bottom: 4px solid var(--text-tertiary);
            }

            .data-table th.sortable.desc:after {
                border-top: 4px solid var(--text-tertiary);
            }

    .data-table tr:hover {
        background-color: #f9f9f9;
    }

    .data-table.table-row-selected {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }

.table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    overflow: hidden;
    text-align: center;
    line-height: 36px;
    color: var(--primary-color);
    font-weight: bold;
}

/* 表格行状态 */
.table-warning td {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
}

.table-expired td {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}


/* ========================================
 * 10. 空状态 (EmptyState)
 * ======================================== */

.empty-state {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
    background-color: #f9f9f9;
    border-radius: var(--radius);
    padding: 20px 0;
    box-sizing: border-box;
    margin: 8px 0;
    text-align: center;
}


/* ========================================
 * 11. 认证/登录模块 (Auth.Login)
 * ======================================== */

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

    .login-logo img {
        max-width: 120px;
    }

.login-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.login-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

    .login-form .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 2px rgba(24,144,255,0.2);
    }

.login-form .form-hint {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.login-form .form-checkbox {
    display: flex;
    align-items: center;
}

    .login-form .form-checkbox input {
        margin-right: 5px;
    }

.login-form .form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.login-form .form-actions {
    display: flex;
    gap: 10px;
}

    .login-form .form-actions button {
        flex: 1;
        padding: 10px;
        font-size: 15px;
    }


/* ========================================
 * 12. 用户信息模块 (User)
 * ======================================== */

.user-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    background-color: #fff;
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .user-info:hover {
        background-color: var(--bg-color);
    }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.user-details {
    text-align: left;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-menu {
    margin-left: 15px;
}

.user-menu-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .user-menu-btn:hover {
        background-color: var(--bg-color);
        color: var(--primary-color);
        text-decoration: none;
    }


/* ========================================
 * 13. 首页模块 (Home)
 * ======================================== */

.quick-card {
    cursor: pointer;
    padding: 1.2rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    text-align: center;
}

    .quick-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .quick-card .text {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
    }

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.icon-box.primary { background: linear-gradient(135deg, #4096ff, #66b1ff); }
.icon-box.purple { background: linear-gradient(135deg, #9333ea, #a855f7); }
.icon-box.green { background: linear-gradient(135deg, #22c55e, #4ade80); }
.icon-box.blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.icon-box.red { background: linear-gradient(135deg, #ef4444, #f87171); }
.icon-box.yellow { background: linear-gradient(135deg, #eab308, #facc15); }
.icon-box.gray { background: linear-gradient(135deg, #6b7280, #9ca3af); }
.icon-box.purple-light { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }


/* ========================================
 * 14. 组织管理模块 (Organization)
 * ======================================== */

.campus-form-container {
    width: 100%;
}

.campus-form-row {
    display: flex;
    gap: 20px;
}

.campus-form-column {
    flex: 1;
}

.campus-form-group {
    margin-bottom: 16px;
}

.campus-form-group-hidden {
    visibility: hidden;
    height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.campus-form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.campus-form-required {
    color: var(--danger-color);
    margin-left: 2px;
}

.campus-form-input,
.campus-form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

    .campus-form-input:focus,
    .campus-form-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    }

.campus-form-validation-message {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 4px;
}

.campus-form-validation-summary {
    color: var(--danger-color);
    background-color: var(--danger-light);
    border: 1px solid rgba(245, 34, 45, 0.2);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.campus-form-hint {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

.campus-form-placeholder {
    height: 56px;
    margin-bottom: 16px;
}


/* ========================================
 * 15. 权限配置模块 (Auth.Permission)
 * ======================================== */

.permission-config-container {
    font-size: 14px;
    line-height: 1.5;
}

.comp-name {
    width: 200px;
    flex-shrink: 0;
}

.perm-item {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

    .perm-item input {
        margin-right: 4px;
    }

    .perm-item label {
        margin: 0;
        cursor: pointer;
    }


/* ========================================
 * 16. 排课表模块 (Schedule)
 * ======================================== */

.schedule-wrapper {
    overflow-x: auto;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.schedule-title {
    font-size: 16px;
    font-weight: 500;
}

.schedule-actions {
    display: flex;
    gap: 10px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

    .schedule-table th,
    .schedule-table td {
        border: 1px solid var(--border-color);
        padding: 8px;
        text-align: center;
        font-size: 14px;
    }

    .schedule-table th {
        background-color: var(--bg-color);
        font-weight: bold;
        color: var(--text-secondary);
        white-space: nowrap;
    }

.schedule-time {
    background-color: #f0f2f5;
    font-weight: bold;
    width: 120px;
}

.schedule-cell {
    min-height: 80px;
    vertical-align: top;
    padding: 5px;
}

.schedule-item {
    background-color: var(--primary-light);
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
    text-align: left;
}

    .schedule-item:hover {
        background-color: #bae7ff;
    }

    .schedule-item.course-name {
        font-weight: 500;
        color: var(--primary-color);
        margin-bottom: 3px;
        display: block;
    }

    .schedule-item.teacher-name {
        font-size: 12px;
        color: var(--text-secondary);
    }

.schedule-empty {
    color: var(--text-tertiary);
    font-size: 12px;
    padding: 5px;
}


/* ========================================
 * 17. 统计卡片模块 (Stats)
 * ======================================== */

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

    .stat-card:hover {
        transform: translateY(-3px);
    }

    .stat-card.success {
        border-left-color: var(--success-color);
    }

    .stat-card.warning {
        border-left-color: var(--warning-color);
    }

    .stat-card.danger {
        border-left-color: var(--danger-color);
    }

.stat-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--danger-color);
}

.trend-icon {
    margin-right: 3px;
}


/* ========================================
 * 18. 进度指标模块 (Progress)
 * ======================================== */

.progress-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.progress-card {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: #fff;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.progress-value {
    font-size: 16px;
    font-weight: bold;
}

.progress-bar-container {
    height: 8px;
    background-color: #f0f2f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

    .progress-bar.primary {
        background-color: var(--primary-color);
    }

    .progress-bar.success {
        background-color: var(--success-color);
    }

    .progress-bar.warning {
        background-color: var(--warning-color);
    }

    .progress-bar.danger {
        background-color: var(--danger-color);
    }

.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}


/* ========================================
 * 19. 通知与待办模块 (Notification)
 * ======================================== */

.notification-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.notification-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #fff;
}

.notification-header {
    padding: 15px 20px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.notification-count {
    background-color: var(--danger-color);
    color: #fff;
    border-radius: 12px;
    padding: 0 6px;
    font-size: 12px;
    margin-left: 5px;
}

.notification-more {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .notification-item:hover {
        background-color: #f9f9f9;
    }

    .notification-item.unread {
        background-color: var(--primary-light);
    }

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 16px;
}

    .notification-icon.notice {
        color: var(--primary-color);
        background-color: rgba(24,144,255,0.1);
    }

    .notification-icon.alert {
        color: var(--warning-color);
        background-color: rgba(250,173,20,0.1);
    }

    .notification-icon.task {
        color: var(--success-color);
        background-color: rgba(82,196,26,0.1);
    }

.notification-content {
    flex-grow: 1;
}

.notification-text {
    font-size: 14px;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 任务列表 */
.task-container {
    background-color: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.task-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.task-filter {
    display: flex;
    gap: 10px;
}

.task-filter-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

    .task-filter-btn.active {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }

.task-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

    .task-item:hover {
        background-color: #f9f9f9;
    }

    .task-item:last-child {
        border-bottom: none;
    }

.task-checkbox {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.task-content {
    flex-grow: 1;
}

.task-name {
    font-size: 14px;
    margin-bottom: 3px;
    transition: color 0.2s, text-decoration 0.2s;
}

.task-item.completed .task-name {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.task-meta {
    display: flex;
    font-size: 12px;
    color: var(--text-secondary);
    gap: 15px;
}

.task-date {
    display: flex;
    align-items: center;
}

.task-priority {
    display: flex;
    align-items: center;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.task-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .task-btn:hover {
        background-color: #f0f2f5;
        color: var(--primary-color);
    }


/* ========================================
 * 20. 个人信息模块 (Profile)
 * ======================================== */

.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-light);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 40px;
    font-weight: bold;
}

.profile-name {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.profile-role {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-info-list {
    list-style: none;
}

.profile-info-item {
    margin-bottom: 15px;
    font-size: 14px;
}

.profile-info-label {
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: block;
}

.profile-info-value {
    color: var(--text-primary);
}

.profile-content {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.profile-section-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-form-group {
    margin-bottom: 15px;
}

.profile-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.profile-form-actions {
    grid-column: span 2;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* ========================================
 * 21. 课程卡片模块 (Course)
 * ======================================== */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.course-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

    .course-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        transform: translateY(-3px);
    }

.course-img {
    height: 160px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.course-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.course-teacher {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.teacher-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #eee;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    overflow: hidden;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.course-price {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 15px;
}


/* ========================================
 * 22. Tab 切换组件 (Tab)
 * ======================================== */

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

    .tab-btn:hover {
        color: var(--primary-color);
    }

    .tab-btn.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
        background-color: var(--primary-light);
    }

.tab-show {
    display: block;
}

.tab-hide {
    display: none !important;
    pointer-events: none;
}


/* ========================================
 * 23. 打印样式 (Print)
 * ======================================== */

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    body * {
        visibility: hidden !important;
    }

    .a4-container,
    .a4-container * {
        visibility: visible !important;
    }

    .a4-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 210mm !important;
        max-width: 210mm !important;
        min-height: 297mm !important;
        padding: 20mm !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: white !important;
    }

    .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-right: calc(-1 * 0.75rem / 2) !important;
        margin-left: calc(-1 * 0.75rem / 2) !important;
    }

    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        flex: 0 0 auto !important;
        padding-right: calc(0.75rem / 2) !important;
        padding-left: calc(0.75rem / 2) !important;
    }

    .col-md-12 { width: 100% !important; }
    .col-md-11 { width: 91.66666667% !important; }
    .col-md-10 { width: 83.33333333% !important; }
    .col-md-9 { width: 75% !important; }
    .col-md-8 { width: 66.66666667% !important; }
    .col-md-7 { width: 58.33333333% !important; }
    .col-md-6 { width: 50% !important; }
    .col-md-5 { width: 41.66666667% !important; }
    .col-md-4 { width: 33.33333333% !important; }
    .col-md-3 { width: 25% !important; }
    .col-md-2 { width: 16.66666667% !important; }
    .col-md-1 { width: 8.33333333% !important; }

    input.form-control, select.form-select, textarea.form-control {
        width: 100% !important;
        box-sizing: border-box !important;
        border: 1px solid #ced4da !important;
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .photo-box {
        border: 1px solid #ccc !important;
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact !important;
    }

    .block-title {
        border-left: 4px solid #0d6efd !important;
        -webkit-print-color-adjust: exact !important;
    }

    .btn {
        display: none !important;
    }

    .info-block, .card-sm {
        page-break-inside: avoid !important;
    }
}


/* ========================================
 * 24. 工具类 (Utilities)
 * ======================================== */

.hover-bg-light:hover {
    background: #f8f9fa;
}

.cursor-pointer {
    cursor: pointer;
}

.user-select-none {
    user-select: none;
}

.z-9999 {
    z-index: 9999 !important;
}

.scrollbar-hidden::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 内容区域网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.content-col-5 {
    grid-column: span 1;
}

.content-col-7 {
    grid-column: span 1;
}


/* ========================================
 * 25. 响应式 (Responsive)
 * ======================================== */

/* 小屏幕导航 */
@media (max-width: 768px) {
    .main-nav {
        padding: 10px 15px;
        font-size: 13px;
    }

    .main-nav a,
    .main-nav button {
        padding: 5px 10px;
    }

    .main-nav span:not(.bi) {
        display: none;
    }

    .main-nav a,
    .main-nav button {
        gap: 0;
    }
}

/* 小屏幕品牌区 */
@media (max-width: 767px) {
    .nav-brand {
        padding: 6px;
        font-size: 1rem;
    }

    .nav-brand.brand-logo {
        width: 30px;
        height: 30px;
    }
}

/* 响应式内容网格 */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .content-col-5 {
        grid-column: span 5;
    }

    .content-col-7 {
        grid-column: span 7;
    }
}

/* 响应式校区表单 */
@media (max-width: 768px) {
    .campus-form-row {
        flex-direction: column;
    }
}

/* 响应式 Blazor 错误提示 */
@media (max-width: 768px) {
    #blazor-error-ui {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    #blazor-error-ui .actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    #blazor-error-ui a {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* 响应式跟追弹窗 */
@media (max-width: 576px) {
    .follow-container {
        padding: 12px;
    }

    .timeline {
        max-height: 300px;
    }

    .timeline-item {
        padding: 12px;
    }
}


/* ========================================
 * 客资跟踪弹窗 (Timeline)
 * （临时候补，待迁移至 CRM 模块）
 * ======================================== */

.follow-container {
    padding: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.follow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.follow-title {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

    .timeline::-webkit-scrollbar {
        width: 8px;
    }

    .timeline::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.08);
        border-radius: 8px;
    }

.timeline-item {
    position: relative;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}

.timeline-line {
    position: absolute;
    left: -26px;
    top: 20px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 6px rgba(24,144,255,0.06);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.timeline-time {
    font-size: 13px;
    color: var(--text-tertiary);
}

.timeline-user {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.timeline-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    margin-bottom: 6px;
    font-weight: 600;
}

.timeline-content,
.timeline-feedback {
    font-size: 14px;
    color: var(--text-primary);
    padding: 10px;
    background: #fafbfd;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.03);
    line-height: 1.6;
}

.show-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}

.show-all-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: all .15s ease-in-out;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.06);
}

    .show-all-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.06);
        border-color: rgba(0,0,0,0.12);
    }


/* ========================================
 * Blazor 错误提示框
 * ======================================== */

#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--danger-color);
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 5000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(100%);
    opacity: 0;
}

    #blazor-error-ui.active {
        transform: translateY(0);
        opacity: 1;
    }

    #blazor-error-ui a {
        color: #fff;
        text-decoration: none;
        margin-left: 15px;
        font-weight: 500;
    }

        #blazor-error-ui a:hover {
            text-decoration: underline;
        }

    #blazor-error-ui .dismiss {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        font-size: 1.2em;
        padding: 0 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }


/* ========================================
 * 表单组件展示页 (Form Showcase)
 * ======================================== */

.form-components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 500;
}


/* ========================================
 * 26. 入职进度时间线 (OnboardingProgress)
 * ======================================== */

.progress-timeline {
    position: relative;
    padding: 8px 0;
}

/* 左侧竖线 */
.progress-timeline::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: #e0e0e0;
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    position: relative;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.step-content {
    flex: 1;
    min-width: 0;
    padding-top: 10px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 已完成 */
.step-done .step-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}

.step-done .step-title {
    color: var(--success-color);
}

/* 进行中 */
.step-current .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.15);
}

.step-current .step-title {
    color: var(--primary-color);
}

.step-current .step-desc {
    color: var(--primary-dark);
}

/* 已驳回 */
.step-rejected .step-icon {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

.step-rejected .step-title {
    color: var(--danger-color);
}

/* 待处理（默认状态） */
.step-pending .step-icon {
    background: #fff;
    border-color: #e0e0e0;
    color: var(--text-tertiary);
}

.step-pending .step-title {
    color: var(--text-tertiary);
}


/* ========================================
 * 27. 管理后台 UI 升级 (Dashboard v2)
 *    新增于 2026-06-13，与旧样式完全兼容
 * ======================================== */

/* ---------- CSS 变量增强 ---------- */
:root {
    --sidebar-width: 220px;
    --header-height: 60px;
    --shadow-hover: 0 8px 25px rgba(24,144,255,0.12);
}

/* ---------- 新布局容器 ---------- */
.app-layout {
    display: flex;
    height: calc(100vh - 4px);
    overflow: hidden;
}

.app-layout .sidebar {
    height: calc(100vh - 4px);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    border-radius: var(--radius) 0 0 var(--radius);
}

.app-layout .sidebar .nav-brand-wrap {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    flex-shrink: 0;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-color);
}

.app-layout .sidebar .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0;
    transition: none;
}

.app-layout .sidebar .nav-brand:hover,
.app-layout .sidebar .nav-brand:focus {
    background: transparent;
    color: var(--text-primary);
    outline: none;
}

.nav-brand-logo {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-brand-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}
.nav-brand-text span {
    color: var(--primary-color);
}

/* ---------- 侧边栏菜单分组标签 ---------- */
.menu-label,
.menu-label-item {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    user-select: none;
    list-style: none;
}
.menu-label {
    padding: 16px 16px 6px;
}
.menu-label-item {
    padding: 0;
}
.menu-label-item span {
    display: block;
    padding: 16px 16px 6px;
}

/* ---------- 导航项图标支持 ---------- */
.sidebar-link i,
.nav-item i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.app-layout .sidebar .sidebar-link {
    gap: 10px;
}

/* active 左侧指示条 */
.app-layout .sidebar .sidebar-link.active {
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}

/* 新布局下滚动容器用 flex:1 填充 */
.app-layout .sidebar .sidebar-menu-scroll-container {
    flex: 1;
    height: auto;
}

/* Badge 小红点脉冲 */
.badge-dot {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger-color);
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}

/* Badge 数字气泡 */
.badge-count {
    margin-left: auto;
    background: var(--danger-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.5;
}

/* ---------- 顶部导航栏 (Header) ---------- */
.top-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-left h1 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ---------- 页面标题区域（TitleBar） ---------- */
.header-title-area {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
}
.header-title-area .header-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
}
.header-title-area .header-desc {
    font-size: 12.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-right-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s;
}

/* ---------- 顶部操作按钮（通知/待办） ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
    padding-right: 12px;
    border-right: 1px solid #e2e8f0;
}
.header-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}
.header-icon-btn:hover {
    background: #f1f5f9;
    color: #6366f1;
}
.header-icon-btn .badge-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #fff;
}
.header-icon-btn .badge-num {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
    border: 1.5px solid #fff;
}

/* ---------- 用户头像下拉菜单 ---------- */
/* ---------- 用户头像下拉菜单 ---------- */
.user-dropdown {
    position: relative;
}
.user-dropdown .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 4px;
    border-radius: 8px;
    transition: background 0.15s;
}
.user-dropdown:hover .user-info {
    background: #f1f5f9;
}
.user-dropdown .dropdown-arrow {
    color: #94a3b8;
    transition: transform 0.2s;
}
.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #6366f1;
}
.user-dropdown .user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    z-index: 9999;
    padding: 6px;
}
.user-dropdown:hover .user-dropdown-menu {
    display: block;
}
.user-dropdown-menu .dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}
.user-dropdown-menu .dropdown-user-info .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
    flex-shrink: 0;
}
.user-dropdown-menu .dropdown-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}
.user-dropdown-menu .dropdown-menu-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.user-dropdown-menu .dropdown-item {
    display: block;
    padding: 8px 10px;
    font-size: 0.83rem;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s;
}
.user-dropdown-menu .dropdown-item:hover {
    background: #f1f5f9;
}
.user-dropdown-menu .dropdown-item.logout {
    color: #ef4444;
}
.user-dropdown-menu .dropdown-item.logout:hover {
    background: #fef2f2;
}
.user-dropdown-menu .dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

.header-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 19px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}
.header-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.header-btn .notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger-color);
    border: 2px solid #fff;
}

.header-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
    margin: 0 8px;
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.user-profile:hover {
    background: var(--bg-color);
}
.user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.user-info-text {
    text-align: left;
    line-height: 1.3;
}
.user-info-text .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.user-info-text .role {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ---------- 主内容区适配 ---------- */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.content-area-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 32px;
    background: #f8fafc;
}

/* ---------- 统计卡片 (Stats Grid) ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card-new {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}
.stat-card-new:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-card-new .stat-bg-icon {
    position: absolute;
    right: -8px;
    bottom: -8px;
    font-size: 68px;
    opacity: 0.06;
    color: var(--text-primary);
    pointer-events: none;
}

/* ====================================================================
   AI 中心主题样式 v2
   ==================================================================== */

/* ---- Tabs 导航 ---- */
.ai-tabs {
    display: flex; gap: 2px; padding: 3px;
    background: #fff; border-radius: 10px; margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ai-tab {
    flex: 1; padding: 9px 14px; border: none; background: transparent;
    border-radius: 8px; color: #64748b; font-size: 0.85rem;
    font-weight: 500; cursor: pointer; transition: all 0.2s ease;
    text-align: center; white-space: nowrap;
}
.ai-tab:hover { background: #f1f5f9; color: #475569; }
.ai-tab.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff; font-weight: 600;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

/* ---- 统计卡片 ---- */
.ai-stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px;
}
.ai-stat-card {
    border-radius: 12px; padding: 20px 24px;
    position: relative; overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.ai-stat-card .icon-wrap {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; font-size: 1.3rem;
}
.ai-stat-card .stat-label { font-size: 0.8rem; font-weight: 500; opacity: 0.8; margin-bottom: 4px; }
.ai-stat-card .stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.ai-stat-card .stat-footer { font-size: 0.75rem; opacity: 0.6; margin-top: 4px; }

/* ---- 业务卡片 ---- */
.ai-card {
    background: #fff; border-radius: 12px;
    border: 1px solid #f0f1f3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px; overflow: hidden;
    transition: box-shadow 0.2s;
}
.ai-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.ai-card-header {
    padding: 14px 20px; border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
    background: #fafbfc;
}
.ai-card-header h6 {
    margin: 0; font-size: 0.9rem; font-weight: 600; color: #1e293b;
    display: flex; align-items: center; gap: 6px;
}
.ai-card-body { padding: 20px; }
.ai-card-body.p-0 { padding: 0; }
.ai-card-footer {
    padding: 10px 20px; border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

/* ---- 表格 ---- */
.ai-table { width: 100%; border-collapse: collapse; }
.ai-table th {
    padding: 10px 16px; font-size: 0.75rem; font-weight: 600;
    color: #64748b; text-transform: uppercase; letter-spacing: 0.4px;
    text-align: left; border-bottom: 1px solid #e8ecf0; background: #f8f9fb;
}
.ai-table td { padding: 11px 16px; font-size: 0.85rem; color: #334155; border-bottom: 1px solid #f1f5f9; }
.ai-table tr:last-child td { border-bottom: none; }
.ai-table tr:hover td { background: #f8fafc; }
.ai-actions { display: flex; gap: 4px; }
.ai-table-scroll { overflow-x: auto; }

/* ---- 按钮 ---- */
.ai-btn {
    padding: 6px 14px; border-radius: 7px; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; font-size: 0.8rem;
    cursor: pointer; transition: all 0.15s ease;
    display: inline-flex; align-items: center; gap: 4px;
}
.ai-btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.ai-btn.primary { background: #6366f1; color: #fff; border-color: #6366f1; }
.ai-btn.primary:hover { background: #4f46e5; border-color: #4f46e5; }
.ai-btn.success { color: #059669; } .ai-btn.success:hover { background: #ecfdf5; border-color: #a7f3d0; }
.ai-btn.warning { color: #d97706; } .ai-btn.warning:hover { background: #fffbeb; border-color: #fde68a; }
.ai-btn.danger { color: #dc2626; } .ai-btn.danger:hover { background: #fef2f2; border-color: #fecaca; }
.ai-btn.sm { padding: 4px 10px; font-size: 0.76rem; }

/* ---- Badge 标签 ---- */
.ai-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 500;
}
.ai-badge-success { background: #ecfdf5; color: #059669; }
.ai-badge-warning { background: #fffbeb; color: #d97706; }
.ai-badge-danger { background: #fef2f2; color: #dc2626; }
.ai-badge-info { background: #eff6ff; color: #3b82f6; }
.ai-badge-secondary { background: #f1f5f9; color: #94a3b8; }
.ai-badge-purple { background: #f5f3ff; color: #7c3aed; }

/* ---- 空状态 ---- */
.ai-empty { text-align: center; padding: 36px 20px; color: #94a3b8; }
.ai-empty .empty-icon { font-size: 2.4rem; margin-bottom: 8px; opacity: 0.45; }
.ai-empty p { margin: 0; font-size: 0.88rem; }

/* ---- 输入框 ---- */
.ai-input-enhanced {
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    padding: 7px 12px; font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-input-enhanced:focus {
    border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    outline: none;
}
.ai-field-label { font-size: 0.82rem; font-weight: 500; margin-bottom: 3px; }
.ai-check-label { font-size: 0.85rem; }
.ai-check-input { width: 16px; height: 16px; }

/* ---- 提示 ---- */
.ai-info-tip {
    background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px;
    padding: 7px 12px; color: #0369a1; font-size: 0.8rem;
}

.ai-table-enhanced th { position: sticky; top: 0; z-index: 1; }

.stat-card-new .stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.stat-card-new .stat-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}
.stat-icon-blue { background: #eff6ff; color: #3b82f6; }
.stat-icon-green { background: #f0fdf4; color: #22c55e; }
.stat-icon-orange { background: #fff7ed; color: #f97316; }
.stat-icon-purple { background: #faf5ff; color: #a855f7; }

.stat-card-new .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-card-new .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 2px 10px;
    border-radius: 20px;
}
.stat-change.up { color: var(--success-color); background: #f0fdf4; }
.stat-change.down { color: var(--danger-color); background: #fef2f2; }

.stat-top-badge {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.stats-grid .stat-card-new:nth-child(1) { animation-delay: 0.05s; }
.stats-grid .stat-card-new:nth-child(2) { animation-delay: 0.1s; }
.stats-grid .stat-card-new:nth-child(3) { animation-delay: 0.15s; }
.stats-grid .stat-card-new:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 卡片面板 (Card Panel) ---------- */
.card-panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease both;
}
.card-panel:nth-child(1) { animation-delay: 0.15s; }
.card-panel:nth-child(2) { animation-delay: 0.2s; }

/* ---------- 员工档案三列布局 ---------- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-column .card-panel {
    margin-bottom: 0;
    animation: fadeInUp 0.5s ease both;
}

.profile-column:nth-child(1) .card-panel:nth-child(1) { animation-delay: 0.05s; }
.profile-column:nth-child(1) .card-panel:nth-child(2) { animation-delay: 0.1s; }
.profile-column:nth-child(1) .card-panel:nth-child(3) { animation-delay: 0.15s; }
.profile-column:nth-child(2) .card-panel:nth-child(1) { animation-delay: 0.1s; }
.profile-column:nth-child(3) .card-panel:nth-child(1) { animation-delay: 0.15s; }
.profile-column:nth-child(3) .card-panel:nth-child(2) { animation-delay: 0.2s; }

/* 照片区域 */
.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
}

.profile-photo-wrapper {
    flex-shrink: 0;
}

.profile-photo {
    width: 120px;
    height: 168px;
    border-radius: 10px;
    border: 2px dashed #d0d5dd;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-photo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.profile-photo-upload {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: scale(0.9);
}

.profile-photo:hover .profile-photo-upload {
    opacity: 1;
    transform: scale(1);
}

.profile-photo-upload:hover {
    background: var(--primary-dark, #096dd9);
}

.profile-photo-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* 字段网格（2 列） */
.profile-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-field-label {
    font-size: 11px;
    font-weight: 500;
    color: #8c8c8c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-field-input {
    font-size: 13px;
    padding: 5px 10px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    outline: none;
}

.profile-field-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
}

.profile-field-input:disabled,
.profile-field-input[readonly] {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
    cursor: default;
}

/* 工作经历卡片组 */
.work-exp-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-exp-item {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fafbfc;
}

.work-exp-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.work-exp-field-date {
    flex-shrink: 0;
}

.work-exp-field-company {
    flex: 2;
    min-width: 0;
}

.work-exp-field-company .profile-field-input {
    width: 100%;
}

.work-exp-field-position {
    flex: 0 0 100px;
    min-width: 0;
}

.work-exp-date-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.work-exp-date-group .profile-field-input {
    width: 120px;
    height: 30px;
    font-size: 12px;
    padding: 2px 6px;
}

.work-exp-date-group .profile-field-input:disabled {
    display: none;
}

.work-exp-tilde {
    color: #9ca3af;
    font-size: 12px;
    padding: 0 2px;
    flex-shrink: 0;
}

.work-exp-text {
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    height: 32px;
    line-height: 32px;
    padding: 0 10px 0 0;
}

.work-exp-date-group .profile-field-input:disabled,
.work-exp-date-group .profile-field-input[readonly] {
    background: transparent;
    border-color: transparent;
    color: #374151;
    padding-left: 0;
}

.work-exp-field-company .profile-field-input:disabled,
.work-exp-field-company .profile-field-input[readonly],
.work-exp-field-position .profile-field-input:disabled,
.work-exp-field-position .profile-field-input[readonly] {
    background: transparent;
    border-color: transparent;
    color: #374151;
    padding-left: 0;
}

.work-exp-delete {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    margin-bottom: 2px;
    transition: all 0.15s;
}

.work-exp-delete:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* 空状态 */
.profile-empty {
    text-align: center;
    padding: 20px 0;
}

.profile-empty i {
    font-size: 2rem;
    color: #d0d5dd;
    display: block;
    margin-bottom: 8px;
}

.profile-empty p {
    color: #9ca3af;
    font-size: 13px;
    margin: 0;
}

/* 底部操作按钮 */
.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease both;
    animation-delay: 0.3s;
}

/* ---------- 打印版本增强 ---------- */
@media print {
    .profile-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }
    .profile-column {
        gap: 12px;
    }
    .profile-photo-section {
        padding: 14px;
    }
    .profile-photo {
        width: 80px;
        height: 100px;
    }
    .profile-name {
        font-size: 16px;
    }
    .card-body {
        padding: 12px 16px;
    }
}

.card-header {
    padding: 15px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-header h3 small {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-tertiary);
}

.card-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    transition: color 0.2s;
}
.card-link:hover {
    color: var(--primary-dark);
}

.card-body {
    padding: 18px 22px;
}

/* ---------- 两栏网格 ---------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* ---------- 状态徽章 (Status Badge) ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-badge.success { background: #f0fdf4; color: #16a34a; }
.status-badge.success .status-dot { background: #22c55e; }
.status-badge.warning { background: #fff7ed; color: #d97706; }
.status-badge.warning .status-dot { background: #f97316; }
.status-badge.pending { background: #f3f4f6; color: #6b7280; }
.status-badge.pending .status-dot { background: #9ca3af; }
.status-badge.danger { background: #fef2f2; color: #dc2626; }
.status-badge.danger .status-dot { background: #ef4444; }
.status-badge.primary { background: #eff6ff; color: #2563eb; }
.status-badge.primary .status-dot { background: #3b82f6; }

/* ---------- 表格操作按钮 ---------- */
.table-action-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-tertiary);
}
.table-action-btn:hover { background: var(--primary-light); color: var(--primary-color); }
.table-action-btn.edit:hover { background: #fef3c7; color: #d97706; }
.table-action-btn.del:hover { background: #fef2f2; color: #dc2626; }

/* ---------- DemoTables (在 dashboard 中使用) ---------- */
.demo-table {
    width: 100%;
    border-collapse: collapse;
}
.demo-table th,
.demo-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}
.demo-table th {
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
    padding-top: 0;
}
.demo-table tr:last-child td { border-bottom: none; }
.demo-table tr:hover td { background: #fafbfc; }
.demo-table .order-id {
    font-weight: 600;
    color: var(--primary-color);
}
.demo-table .amount {
    font-weight: 600;
}

/* ---------- 图表 - 纯CSS柱状图 ---------- */
.chart-legend {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
}
.chart-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.chart-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 190px;
    padding: 0 4px;
}
.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}
.bar-group .bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    height: 100%;
    justify-content: center;
}
.bar-group .bar {
    width: 14px;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 2px;
}
.bar.blue { background: linear-gradient(to top, #3b82f6, #60a5fa); }
.bar.green { background: linear-gradient(to top, #22c55e, #4ade80); }
.bar-group .bar-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* ---------- 动态时间线 ---------- */
.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.activity-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.activity-item:last-child { border-bottom: none; }

.activity-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}
.activity-dot.blue { background: #3b82f6; }
.activity-dot.green { background: #22c55e; }
.activity-dot.orange { background: #f97316; }
.activity-dot.purple { background: #a855f7; }
.activity-dot-wrap .activity-line {
    width: 2px;
    flex: 1;
    min-height: 8px;
    background: var(--border-color);
}
.activity-item:last-child .activity-line { display: none; }

.activity-content { flex: 1; min-width: 0; }
.activity-content .activity-text { font-size: 14px; color: var(--text-primary); }
.activity-content .activity-text strong { font-weight: 600; }
.activity-content .activity-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- 快捷入口网格 ---------- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-secondary);
}
.quick-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}
.quick-item .quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.quick-item .quick-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* ---------- 用户下拉菜单 ---------- */
.user-profile {
    position: relative;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    padding: 6px;
    z-index: 9999;
    animation: fadeInUp 0.15s ease;
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    cursor: pointer;
}
.user-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}
.user-dropdown-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 8px;
}

/* ---------- 页面底部 ---------- */
.page-footer {
    text-align: center;
    padding: 20px 0 4px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .app-layout .sidebar {
        width: 56px;
    }
    .app-layout .sidebar .nav-brand-text,
    .app-layout .sidebar .menu-label,
    .app-layout .sidebar .menu-label-item,
    .app-layout .sidebar .sidebar-link span,
    .app-layout .sidebar .badge-count,
    .sidebar-footer .nav-item span {
        display: none;
    }
    .app-layout .sidebar .sidebar-link {
        justify-content: center;
        padding: 12px 8px;
    }
    .app-layout .sidebar .sidebar-link.active {
        border-left: none;
        padding-left: 8px;
    }
    .app-layout .sidebar .sidebar-link i {
        margin: 0;
    }
    .app-layout .sidebar .nav-brand-wrap {
        justify-content: center;
        padding: 0 8px;
    }
    .app-layout .sidebar .nav-brand-wrap .nav-brand-text {
        display: none;
    }
    .nav-brand-logo {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .stats-grid { grid-template-columns: 1fr; }
    .content-area-scroll { padding: 14px 14px 24px; }
    .top-header { padding: 0 12px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .header-title-area .header-title { font-size: 14px; }
    .header-title-area .header-desc { display: none; }
    .header-actions { border-right: none; padding-right: 0; margin-right: 0; }
    .header-actions .header-icon-btn:last-child { display: none; }
    .user-dropdown .user-details { display: none; }
    .user-dropdown .dropdown-arrow { display: none; }
    .header-left h1 { font-size: 15px; }
}

@media (max-width: 576px) {
    .top-header .header-divider { display: none; }
    .top-header .header-btn:not(:first-child):not(:nth-child(2)) { display: none; }
}


/* ========================================
 * 28. 工具类补充
 * ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 首页原本的 hub-card 样式增强(如果首页改为 dashboard 后仍需要保留) */
.home-hub {
    max-width: 800px;
    margin: 0 auto;
}
.hub-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.hub-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border-color: var(--primary-color);
}
.hub-card-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.hub-card-text h5 { margin: 0; font-size: 1rem; font-weight: 600; }


/* ========================================
 * 29. AI Center Enhanced Styles
 *    新增于 2026-06-15，与现有 .ai-* 样式完全兼容
 * ======================================== */

/* ----- Table Scroll Container ----- */
.ai-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ----- Enhanced Table (全表视觉升级) ----- */
.ai-table-enhanced {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ai-table-enhanced thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.ai-table-enhanced tbody td {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.ai-table-enhanced tbody tr {
    transition: background-color 0.15s ease;
}

.ai-table-enhanced tbody tr:hover td {
    background-color: #f1f5f9;
}

.ai-table-enhanced tbody tr:last-child td {
    border-bottom: none;
}

/* ----- Action Button Group (紧凑操作按钮区) ----- */
.ai-action-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* 操作按钮变体增强 — 浅色背景 + 明确语义色 */
.ai-btn.sm.danger,
.ai-btn.sm.warning,
.ai-btn.sm.success,
.ai-btn.sm.primary {
    font-weight: 500;
    box-shadow: none;
    transition: all 0.15s ease;
}

/* 编辑按钮（默认白色） */
.ai-btn.sm {
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.ai-btn.sm:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #4f46e5;
}

/* 测试按钮 */
.ai-btn.sm.primary {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #e0e7ff;
}
.ai-btn.sm.primary:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.15);
}

/* 停用按钮 */
.ai-btn.sm.warning {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}
.ai-btn.sm.warning:hover {
    background: #fef3c7;
    border-color: #fcd34d;
}

/* 启用按钮 */
.ai-btn.sm.success {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}
.ai-btn.sm.success:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
}

/* 删除按钮 */
.ai-btn.sm.danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}
.ai-btn.sm.danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* 禁用状态（测试中） */
.ai-btn.sm:disabled,
.ai-btn.sm.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* 卡片头部主按钮增强 */
.ai-card-header .ai-btn.primary {
    padding: 6px 16px;
    font-size: 0.82rem;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.15);
    font-weight: 500;
}
.ai-card-header .ai-btn.primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

/* ----- Test Result Feedback (测试结果动画反馈) ----- */
.ai-test-result {
    margin-top: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: aiResultSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-test-success {
    color: #059669;
    background: #ecfdf5;
    border-left: 3px solid #10b981;
}

.ai-test-fail {
    color: #dc2626;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}

@keyframes aiResultSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ----- Enhanced Form Fields (弹窗表单视觉升级) ----- */
.ai-field-label.form-label.text-muted {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569 !important;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.ai-input-enhanced.form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    background: #fff;
    color: #1e293b;
}

.ai-input-enhanced.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.ai-input-enhanced.form-control:hover:not(:focus):not(:disabled) {
    border-color: #94a3b8;
}

textarea.ai-input-enhanced.form-control {
    min-height: 80px;
    line-height: 1.6;
}

select.ai-input-enhanced.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
}

/* ----- Checkbox Label Enhancement (复选框美化) ----- */
.ai-check-label {
    cursor: pointer;
    user-select: none;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
    background: #fafbfc;
    font-size: 0.88rem;
    color: #475569;
}

.ai-check-label:hover {
    border-color: #a5b4fc;
    background: #eef2ff;
    color: #4f46e5;
}

.ai-check-input.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6366f1;
    border-radius: 4px;
    margin-top: 0;
}

/* ----- Info Tip (弹窗提示条) ----- */
.ai-info-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #1e40af;
    line-height: 1.5;
}

.ai-info-tip code {
    display: inline-block;
    padding: 1px 6px;
    background: #dbeafe;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #1d4ed8;
    font-weight: 600;
}

/* ----- Tab Active Enhancement (当前 Tab 突出) ----- */
.ai-tab.active {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px rgba(99,102,241,0.08);
    font-weight: 600;
    position: relative;
}

.ai-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 40px;
    height: 3px;
    background: #6366f1;
    border-radius: 3px 3px 0 0;
}

/* ----- Modal Footer Button Enhancement (弹窗底部按钮) ----- */
.modal-footer .btn-primary {
    background: #6366f1;
    border-color: #6366f1;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-footer .btn-primary:hover:not(:disabled) {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.modal-footer .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-footer .btn-outline-secondary {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    transition: all 0.15s ease;
}

.modal-footer .btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
}

/* ----- Subtle row animation for all ai-tables ----- */
.ai-table tbody tr {
    transition: background-color 0.15s ease;
}

/* ----- Empty state enhancement ----- */
.ai-empty {
    animation: aiFadeIn 0.3s ease;
}

@keyframes aiFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
