/* ============================================================
   biz-form.css  业务表单通用样式
   适用于：财务报销、采购申请等业务录入/详情页面
   包含：卡片容器、表单网格、表格、文件列表、时间轴、空数据、移动端
   ============================================================ */

/* box-sizing 仅作用于本样式表中的组件，避免全局污染 */
.fin-card,
.fin-card *,
.progress-wrap,
.progress-wrap *,
.form-grid,
.form-grid *,
.radio-group,
.radio-group *,
.check-group,
.check-group *,
.commit-box,
.commit-box *,
.upload-row,
.upload-row *,
.fin-gv,
.fin-gv *,
.file-list,
.file-list *,
.zt-list,
.zt-list *,
.tab-bar,
.tab-bar *,
.op-btn,
.search-bar,
.search-bar *,
.pagination,
.pagination *,
.modal-overlay,
.modal-overlay *,
.alert,
.alert *,
.loading-mask,
.loading-mask *,
.date-range,
.date-range *,
.data-list,
.data-list *,
.stat-card,
.stat-card *,
.desc-list,
.desc-list *,
.notice-list,
.notice-list *,
.todo-list,
.todo-list *,
.file-card,
.file-card *,
.toolbar,
.toolbar *,
.number-input,
.number-input *,
.back-top,
.back-top * {
    box-sizing: border-box;
}

/* ============= 卡片容器 ============= */
.fin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
}
.fin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    flex-wrap: wrap;
}
.fin-card-header .fin-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2332;
    white-space: nowrap;
}
.fin-card-header .fin-title .fa {
    margin-right: 6px !important;
}
.fin-card-header .fin-title .liushui-badge {
    color: #165DFF;
    font-family: Consolas, 'Courier New', monospace;
    font-weight: 600;
    font-size: 14px;
    margin-left: 6px;
}
.fin-card-header .fin-title .total-badge {
    color: #C9151E;
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 15px;
    margin-left: 6px;
}
.fin-card-header .fin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.fin-card-header .fin-actions .btn { padding: 5px 14px; font-size: 13px; border-radius: 4px; }
.fin-card-body { padding: 16px; }

/* ============= 进度条 ============= */
.progress-wrap {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
}
.progress-wrap .step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}
.progress-wrap .step.done { color: #67c23a; background: rgba(103,194,58,0.08); }
.progress-wrap .step.cur  { color: #165DFF; background: #f0f5ff; font-weight: 700; }
.progress-wrap .step.todo { color: #b0b8c4; }
.progress-wrap .sep { color: #d0d7de; margin: 0 2px; }

/* ============= 表单网格 ============= */
.form-grid {
    display: grid;
    grid-template-columns: 120px 1fr 120px 1fr;
    gap: 12px 14px;
    align-items: center;
}
.form-grid .form-label {
    color: #5a6473;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}
.form-grid .form-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.form-grid .form-field-full { grid-column: 2 / -1; min-width: 0; }

/* ============= 静态文字字段（只读 Label 显示） ============= */
/* 用于 form-field 内纯文字 Label，视觉上与输入框协调，避免裸文字突兀 */
.form-field-static {
    display: inline-block;
    min-width: 0;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    padding: 5px 0;
    margin-right: 6px;
    font-size: 13px;
    color: #1a2332;
    line-height: 1.5;
    word-break: break-all;
}
/* 最后一个静态字段不留右边距，避免整组末尾多出空隙 */
.form-field-static:last-child {
    margin-right: 0;
}
/* 单位文本（万元、㎡、kW 等）：不换行、固定宽度、浅灰色小字号 */
.form-unit {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    color: #8492a6;
    padding-left: 2px;
    font-weight: normal;
    flex-shrink: 0;
}
.form-grid .textbox {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 32px;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    background: #f7f9fc;
    color: #1a2332;
    transition: background 0.2s, box-shadow 0.2s;
}
.form-grid .textbox:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.15);
}
.form-grid .textbox:hover {
    background: #f0f4f9;
}
.form-grid select.textbox {
    height: 32px;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    background: #f7f9fc;
    color: #1a2332;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.form-grid select.textbox:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.15);
}
.form-grid select.textbox:hover {
    background-color: #f0f4f9;
}
.form-grid textarea.textbox,
.form-grid .form-field textarea {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 90px;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.6;
    box-sizing: border-box;
    background: #f7f9fc;
    color: #1a2332;
    resize: vertical;
    transition: background 0.2s, box-shadow 0.2s;
}
.form-grid textarea.textbox:hover,
.form-grid .form-field textarea:hover {
    background: #f0f4f9;
}
.form-grid .form-field textarea:focus,
.form-grid textarea.textbox:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.15);
}
.form-grid .form-field-full .textbox,
.form-grid .form-field-full textarea { width: 100%; }
/* 标题旁的小字提示（如"单位：万元"、"（系统试运行…）"） */
.tip-text {
    font-size: 12px;
    color: #8492a6;
    font-weight: 400;
    margin-left: 8px;
    opacity: 0.9;
}

/* ============= 单选/复选按钮组 ============= */
.radio-group, .check-group {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    flex-wrap: wrap;
}
/* 隐藏 ASP.NET RepeatLayout=Flow 可能产生的 br 换行标签，防止破坏 flex 布局 */
.radio-group > br, .check-group > br { display: none; }
/* 自定义项（手写 label.radio-item 包裹 input+span） */
.radio-item, .check-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    color: #3a4555;
    margin: 0;
    user-select: none;
}
.radio-item input, .check-item input {
    margin: 0;
    cursor: pointer;
    accent-color: #165DFF;
}
.radio-item input:checked + span,
.check-item input:checked + span {
    color: #165DFF;
    font-weight: 600;
}
/* ASP.NET RadioButtonList/CheckBoxList RepeatLayout=Flow 渲染兼容：
   结构为 <span class="radio-group"><input><label>text</label><input><label>text</label></span> */
.radio-group > input[type=radio],
.check-group > input[type=checkbox] {
    margin: 0;
    cursor: pointer;
    accent-color: #165DFF;
}
.radio-group > label,
.check-group > label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
    color: #3a4555;
}
.radio-group > input[type=radio]:checked + label,
.check-group > input[type=checkbox]:checked + label { color: #165DFF; font-weight: 600; }

/* ============= 承诺/提示区块 ============= */
.commit-box {
    background: #fff8e6;
    border: 1px solid #f5d76e;
    border-left: 4px solid #f0ad4e;
    border-radius: 6px;
    padding: 16px 18px;
    font-size: 13px;
    color: #5a4a1f;
    line-height: 1.8;
}
.commit-sign {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed #f0d68f;
    font-size: 13px;
    color: #5a6473;
}
.commit-sign .sign-item { display: flex; align-items: center; gap: 6px; }
.commit-sign .sign-value {
    color: #1a2332;
    font-weight: 600;
    min-width: 80px;
    border-bottom: 1px solid #cbd5e0;
    padding: 0 6px;
}
/* 表格横向滚动容器（包裹 fin-gv，避免小屏溢出） */
.table-wrap { overflow-x: auto; }
/* 表格"删除"链接（红色，带下划线 hover） */
.gv-del { color: #f56c6c; text-decoration: none; }
.gv-del:hover { text-decoration: underline; }

/* ============= 文件上传行 ============= */
.upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.form-field .upload-row {
    flex-wrap: nowrap;
    width: 100%;
}
.upload-row .textbox {
    flex: 1 1 auto;
    min-width: 0;
}
.upload-row input[type=file] {
    flex: 1;
    min-width: 200px;
    font-size: 13px;
}
.form-field .upload-row input[type=file] {
    min-width: 0;
}

/* ============= 表格样式 ============= */
.fin-gv {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid #e6eaf0;
    border-radius: 6px;
    overflow: hidden;
}
.fin-gv th {
    background: #f5f7fa;
    color: #5a6473;
    font-weight: 700;
    padding: 10px 8px;
    text-align: center;
    border-bottom: 2px solid #d0d7de;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.fin-gv td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f2f5;
    color: #2d3748;
    vertical-align: middle;
}
.fin-gv tr:last-child td { border-bottom: none; }
.fin-gv tr:hover td { background: #f9fafc; }
.fin-gv .gv_head { background: #f5f7fa; color: #5a6473; font-weight: 700; }
.fin-gv .gv_row { background: #fff; }
.fin-gv .gv_alt { background: #fafbfc; }
.fin-gv .gv_foot { background: #f5f7fa; font-weight: 700; color: #C9151E; }
.fin-gv td.col-money { color: #C9151E; font-family: 'Times New Roman', serif; font-weight: 600; text-align: right; }

/* ============= 空数据提示 ============= */
.empty-book {
    text-align: center;
    color: #999;
    padding: 18px 0;
    font-size: 13px;
}

/* ============= 状态徽标（上传/审批状态） ============= */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    white-space: nowrap;
}
.badge-ing   { background: #e6f4ff; color: #165DFF; }   /* 进行中/已上传：商务蓝 */
.badge-wait  { background: #fff7e6; color: #e09a3a; }  /* 待上传：商务橙 */
.badge-end   { background: #f0f9eb; color: #67c23a; }  /* 完成：商务绿 */
.badge-fail  { background: #fef0f0; color: #f56c6c; }  /* 失败/驳回：商务红 */

/* ============= 顶部 Tab 切换栏 ============= */
.tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e6eaf0;
    padding-bottom: 0;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 8px 18px;
    font-size: 13px;
    color: #5a6473;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none; /* 兼容 HyperLink 渲染的 <a> 标签，去除下划线 */
    transition: background 0.2s, color 0.2s;
}
.tab-btn:hover {
    background: #f5f7fa;
    color: #1a2332;
}
.tab-btn:focus {
    outline: none;
    background: #f0f6ff;
    color: #165DFF;
}
.tab-btn.active {
    color: #C9151E;
    border-bottom-color: #C9151E;
    font-weight: 700;
    background: #fff;
}

/* ============= 文件列表（发票/凭据） ============= */
.file-list { margin-top: 0; }
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e6eaf0;
    border-top: none;
    background: #fff;
    font-size: 13px;
}
.file-item:first-child { border-top: 1px solid #e6eaf0; border-radius: 6px 6px 0 0; }
.file-item:last-child { border-radius: 0 0 6px 6px; }
.file-item .file-seq {
    flex: 0 0 24px;
    text-align: center;
    color: #8492a6;
    font-family: 'Times New Roman', serif;
}
.file-item .file-name {
    flex: 1;
    min-width: 0;
    color: #1a2332;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-item .file-ops { flex: 0 0 auto; display: flex; gap: 10px; }
.file-op-link { color: #165DFF; text-decoration: none; white-space: nowrap; }
.file-op-link:hover { text-decoration: underline; }
.file-op-del { color: #f56c6c; text-decoration: none; white-space: nowrap; }
.file-op-del:hover { text-decoration: underline; }

/* ============= 业务状态时间轴 ============= */
.zt-list { margin-top: 0; }
.zt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6eaf0;
    border-top: none;
    background: #fff;
    font-size: 13px;
}
.zt-item:first-child { border-top: 1px solid #e6eaf0; border-radius: 6px 6px 0 0; }
.zt-item:last-child { border-radius: 0 0 6px 6px; }
.zt-item .zt-seq {
    flex: 0 0 24px;
    text-align: center;
    color: #8492a6;
    font-family: 'Times New Roman', serif;
}
.zt-item .zt-level {
    flex: 0 0 110px;
    color: #165DFF;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zt-item .zt-name {
    flex: 0 0 80px;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zt-item .zt-action {
    flex: 1;
    color: #5a6473;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zt-item .zt-time {
    flex: 0 0 140px;
    color: #8492a6;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

/* ============= 移动端/平板 响应式卡片布局 ≤1024px ============= */
@media (max-width: 1024px) {
    .fin-card-header { padding: 10px 12px; }
    .fin-card-header .fin-title { font-size: 14px; }
    .fin-card-header .fin-actions .btn { padding: 5px 10px; font-size: 12px; }
    .fin-card-body { padding: 12px; overflow-x: visible; }

    /* 表单双列，label 宽度缩小，保持右对齐 */
    .fin-card .form-grid {
        grid-template-columns: 80px 1fr !important;
        gap: 8px 10px !important;
    }
    .fin-card .form-grid .form-field-full { grid-column: 2 / -1 !important; }
    .fin-card .form-grid .form-label {
        font-size: 12px !important;
        text-align: right !important;
    }
    .fin-card .form-grid .textbox {
        height: 30px;
        font-size: 13px;
    }

    /* Tab 切换栏紧凑显示 */
    .tab-bar { gap: 4px; }
    .tab-btn { padding: 6px 12px; font-size: 12px; }

    /* 进度条换行 */
    .progress-wrap { padding: 10px 8px; font-size: 12px; }

    /* 文件上传 */
    .upload-row input[type=file] { min-width: 100%; }

    /* 单选/复选组紧凑间距 */
    .radio-group, .check-group { gap: 14px; }

    /* 文件列表：序号+文件名一行，操作按钮换行 */
    .file-item { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
    .file-item .file-name { flex: 1 1 100%; order: 3; }
    .file-item .file-ops { order: 4; margin-left: auto; }

    /* 业务状态：流程+操作人一行，操作+时间第二行 */
    .zt-item { flex-wrap: wrap; gap: 6px; padding: 10px 10px; }
    .zt-item .zt-level { flex: 1; }
    .zt-item .zt-name { flex: 0 0 auto; }
    .zt-item .zt-action { flex: 1 1 100%; order: 3; }
    .zt-item .zt-time { flex: 0 0 auto; order: 4; text-align: left; }

    /* 卡片头部搜索栏 */
    .fin-card-header .data-search {
        flex-wrap: wrap;
    }
    .fin-card-header .data-search .textbox {
        width: auto;
        flex: 1 1 140px;
        min-width: 0;
    }

}

@media (max-width: 480px) {
    .fin-card-header { padding: 8px 10px; }
    .fin-card-header .fin-title { font-size: 13px; }
    .fin-card-header .fin-actions { width: 100%; }
    .fin-card-header .fin-actions .btn { flex: 1; }
    .fin-card-body { padding: 10px 8px; }

    /* 手机竖屏：窄label + field，label始终右对齐紧贴输入框 */
    .fin-card .form-grid {
        grid-template-columns: 70px 1fr !important;
        gap: 6px 8px !important;
    }
    .fin-card .form-grid .form-label {
        text-align: right !important;
        font-size: 12px !important;
        padding-top: 5px;
        white-space: normal;
        word-break: break-all;
    }
    .fin-card .form-grid .form-field-full {
        grid-column: 2 / -1 !important;
    }

    /* form-field 内单位依然保持在同一行，允许输入框自动收缩 */
    .form-field .form-unit {
        font-size: 11px;
    }

    /* 承诺签字区：竖排 */
    .commit-sign { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* 搜索栏：字段单列 */
    .search-grid { grid-template-columns: 1fr; gap: 10px; }
    .search-actions { justify-content: stretch; }
    .search-actions .btn { flex: 1; }

    /* 日期范围：紧凑 */
    .date-range { gap: 6px; }
    .date-range .textbox { min-width: 0; }

    /* 模态框：底部弹出 */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-dialog {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
        animation: modalSlideUp 0.25s ease;
    }
    .modal-dialog.modal-sm,
    .modal-dialog.modal-lg { max-width: 100%; }
    @keyframes modalSlideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .modal-header { padding: 12px 14px; }
    .modal-header .modal-title { font-size: 14px; }
    .modal-body { padding: 14px; }
    .modal-footer { padding: 10px 14px; }
    .modal-footer .btn { flex: 1; }

    /* 分页：紧凑 */
    .pagination { padding: 12px 0; gap: 2px; }
    .pagination .page-btn { min-width: 28px; height: 28px; padding: 0 6px; font-size: 12px; }
    .pagination .page-info { margin-right: 8px; font-size: 12px; }

    /* 消息提示 */
    .alert { padding: 10px 12px; font-size: 12px; }
}

/* ============================================================
   行级操作按钮通用样式（适用于表格内操作列）
   设计原则：实底色 + 同色系深一档 hover，确保任何背景下清晰可辨
   使用方式：<asp:LinkButton CssClass="op-btn op-primary" />
   ============================================================ */
.op-btn {
    display: inline-block;
    padding: 5px 14px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none !important;
    margin: 0 3px;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.op-btn:hover {
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}
.op-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(22,93,255,0.25), 0 2px 4px rgba(0,0,0,0.12);
}
.op-btn.op-primary:focus { box-shadow: 0 0 0 2px rgba(22,93,255,0.35), 0 2px 4px rgba(0,0,0,0.12); }
.op-btn.op-success:focus { box-shadow: 0 0 0 2px rgba(82,168,106,0.35), 0 2px 4px rgba(0,0,0,0.12); }
.op-btn.op-danger:focus { box-shadow: 0 0 0 2px rgba(224,82,96,0.35), 0 2px 4px rgba(0,0,0,0.12); }
.op-btn.op-warning:focus { box-shadow: 0 0 0 2px rgba(224,154,58,0.35), 0 2px 4px rgba(0,0,0,0.12); }
.op-btn.op-default:focus { box-shadow: 0 0 0 2px rgba(132,146,166,0.35), 0 2px 4px rgba(0,0,0,0.12); }
/* 主操作：查看/详细/编辑 — 商务蓝 */
.op-btn.op-primary {
    background: #165DFF;
    color: #fff;
}
.op-btn.op-primary:hover {
    background: #0e4ed8;
    color: #fff;
}
/* 成功操作：通过/确认 — 商务绿 */
.op-btn.op-success {
    background: #52a86a;
    color: #fff;
}
.op-btn.op-success:hover {
    background: #3f8f55;
    color: #fff;
}
/* 危险操作：删除/终止/驳回 — 商务红 */
.op-btn.op-danger {
    background: #e05260;
    color: #fff;
}
.op-btn.op-danger:hover {
    background: #c84450;
    color: #fff;
}
/* 警告操作：撤销/暂挂 — 商务橙 */
.op-btn.op-warning {
    background: #e09a3a;
    color: #fff;
}
.op-btn.op-warning:hover {
    background: #c8862e;
    color: #fff;
}
/* 次要操作：取消/关闭 — 中性灰蓝 */
.op-btn.op-default {
    background: #8492a6;
    color: #fff;
}
.op-btn.op-default:hover {
    background: #6c7a8e;
    color: #fff;
}
/* 禁用状态 */
.op-btn:disabled,
.op-btn.op-disabled {
    background: #c0ccda;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ============= 必填标记 ============= */
.required::before {
    content: '*';
    color: #f56c6c;
    margin-right: 3px;
    font-weight: bold;
}

/* ============= 日期范围选择 ============= */
.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.date-range .textbox {
    flex: 1;
    min-width: 130px;
}
.date-range .range-sep {
    color: #8492a6;
    font-size: 13px;
    flex: 0 0 auto;
}

/* ============= 消息提示条 ============= */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid transparent;
}
.alert .alert-icon {
    flex: 0 0 auto;
    font-size: 16px;
    margin-top: 1px;
}
.alert .alert-content {
    flex: 1;
    min-width: 0;
}
.alert .alert-close {
    flex: 0 0 auto;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    font-size: 16px;
    line-height: 1;
    margin-left: 8px;
    transition: opacity 0.2s;
}
.alert .alert-close:hover { opacity: 1; }
.alert-success {
    background: #f0f9eb;
    border-color: #e1f3d8;
    color: #529b2e;
}
.alert-info {
    background: #f0f6ff;
    border-color: #d4e4fa;
    color: #165DFF;
}
.alert-warning {
    background: #fff7e6;
    border-color: #faecd8;
    color: #b88230;
}
.alert-error {
    background: #fef0f0;
    border-color: #fde2e2;
    color: #c45656;
}

/* ============= 搜索/筛选栏 ============= */
.search-bar {
    background: #f5f7fa;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #e6eaf0;
}
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px 16px;
    align-items: end;
}
.search-grid .search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.search-grid .search-label {
    font-size: 12px;
    color: #5a6473;
    font-weight: 500;
}
.search-grid .textbox {
    width: 100%;
    height: 34px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #1a2332;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-grid .textbox:hover {
    border-color: #c5d2e3;
}
.search-grid select.textbox {
    height: 34px;
    padding: 4px 8px;
    cursor: pointer;
}
.search-grid select.textbox:focus {
    border-color: #165DFF;
    outline: none;
}
.search-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ============================================================
   通用数据列表组件（替代GridView，卡片头部搜索 + 列表 + 分页）
   使用方式：
   <div class="fin-data-list">
     <div class="data-head">...</div>
     <div class="data-body">
       <div class="data-item">...</div>
     </div>
     <div class="pagination">...</div>
   </div>
   ============================================================ */
.fin-card-header .data-search {
    display: flex;
    gap: 8px;
    align-items: center;
}
.fin-card-header .data-search .textbox {
    width: 220px;
    min-width: 0;
}

.data-list {
    margin-top: 0;
}

.data-head {
    display: grid;
    gap: 10px;
    padding: 10px 14px;
    background: #f5f7fa;
    border: 1px solid #e6eaf0;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #5a6473;
    letter-spacing: 0.3px;
}
.data-head > div {
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-body {
    border-left: none;
    border-right: none;
}
.data-head + .data-body {
    border-left: 1px solid #e6eaf0;
    border-right: 1px solid #e6eaf0;
    border-top: none;
}

.data-item {
    display: grid;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f5;
    background: #fff;
    font-size: 13px;
    transition: background 0.15s;
}
.data-item:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}
.data-head + .data-body .data-item:last-child {
    border-radius: 0;
}
.data-body + .pagination {
    border: none;
    background: transparent;
    padding: 12px 0;
}
.data-head + .data-body + .pagination {
    border: 1px solid #e6eaf0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: #f9fafc;
    padding: 12px;
}
.data-item:hover {
    background: #f9fafc;
}

.data-item > div {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.data-item .col-seq {
    text-align: center;
    color: #8492a6;
    font-family: 'Times New Roman', serif;
}
.data-item .col-center { text-align: center; color: #5a6473; }
.data-item .col-mono {
    text-align: center;
    font-family: Consolas, monospace;
    font-size: 12px;
    color: #5a6473;
}
.data-item .col-money {
    text-align: right;
    color: #C9151E;
    font-weight: 600;
    font-family: 'Times New Roman', serif;
    padding-right: 4px;
}
.data-item .col-main {
    color: #1a2332;
    font-weight: 500;
}
.data-item .col-status {
    text-align: center;
    font-weight: 600;
}
.data-item .col-status.s-pending { color: #165DFF; }
.data-item .col-status.s-processing { color: #e09a3a; }
.data-item .col-status.s-done { color: #52a86a; }
.data-item .col-status.s-terminated { color: #e05260; }
.data-item .col-status.s-reject,
.data-item .col-status.s-void { color: #8492a6; }
.data-item .col-op {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.data-item .col-op .op-btn {
    padding: 4px 10px;
    margin: 0;
    font-size: 11px;
}

.data-empty {
    padding: 40px 20px;
    text-align: center;
    color: #8492a6;
    font-size: 13px;
}
.data-empty i {
    font-size: 36px;
    color: #d0d7de;
    display: block;
    margin-bottom: 8px;
}

/* ============= 分页控件 ============= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
    flex-wrap: wrap;
}
.pagination .page-info {
    font-size: 13px;
    color: #5a6473;
    margin-right: 12px;
}
.pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    background: #fff;
    color: #3a4555;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}
.pagination .page-btn:hover {
    border-color: #165DFF;
    color: #165DFF;
    background: #f0f6ff;
}
.pagination .page-btn:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22,93,255,0.15);
}
.pagination .page-btn.active {
    background: #165DFF;
    border-color: #165DFF;
    color: #fff;
    font-weight: 600;
}
.pagination .page-btn.active:focus {
    box-shadow: 0 0 0 2px rgba(22,93,255,0.3);
}
.pagination .page-btn.disabled,
.pagination .page-btn:disabled {
    background: #f5f7fa;
    color: #c0ccda;
    border-color: #e6eaf0;
    cursor: not-allowed;
}
.pagination .page-btn.disabled:hover,
.pagination .page-btn:disabled:hover {
    background: #f5f7fa;
    color: #c0ccda;
    border-color: #e6eaf0;
}
.pagination .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: #8492a6;
    font-size: 13px;
}
.pagination .pager-jump {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    font-size: 13px;
    color: #5a6473;
}
.pagination .pager-jump .textbox {
    width: 44px;
    height: 32px;
    padding: 0 4px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
}

/* ============= 通用数据列表 响应式卡片布局 ≤1024px ============= */
@media (max-width: 1024px) {
    .data-head { display: none !important; }
    .data-body {
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        background: transparent;
        padding: 0;
    }
    .data-item {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        padding: 0;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .data-item:last-child {
        margin-bottom: 0;
        border-radius: 8px;
    }
    .data-item > div {
        display: block;
        position: relative;
        padding: 9px 12px 9px 100px !important;
        border-bottom: 1px solid #f0f2f5;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: left !important;
    }
    .data-item > div:last-child {
        border-bottom: none;
    }

    /* 通过data-label属性显示左侧标签 */
    .data-item > div[data-label]::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 80px;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 10px;
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
        font-family: "微软雅黑", sans-serif;
    }

    /* 隐藏序号列 */
    .data-item .col-seq { display: none !important; }

    /* 主内容/项目名称 - 卡片头部样式 */
    .data-item .col-main,
    .data-item .col-project {
        display: block !important;
        padding: 9px 12px 9px 100px !important;
        background: #fafbfc;
    }
    /* 卡片头部同样显示字段名称（与其他字段保持一致） */
    .data-item .col-main::before,
    .data-item .col-project::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 80px;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 10px;
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
        font-family: "微软雅黑", sans-serif;
    }
    /* 项目名称内的子元素取消省略，允许换行 */
    .data-item .col-project .proj-name {
        white-space: normal !important;
        overflow: visible !important;
        font-size: 14px !important;
        display: block !important;
    }
    .data-item .col-project .proj-supplier {
        white-space: normal !important;
        overflow: visible !important;
        display: block !important;
    }

    /* 经费/金额等内部多元素列 */
    .data-item .col-money-group {
        align-items: flex-start !important;
        gap: 2px !important;
        display: block !important;
    }
    .data-item .col-money-group .mg-jingfei,
    .data-item .col-money-group .mg-jine {
        text-align: left !important;
        white-space: normal !important;
    }

    /* 操作按钮区 */
    .data-item .col-op {
        padding: 10px 12px !important;
        background: #fafbfc;
        display: flex !important;
        gap: 8px;
        justify-content: flex-end;
    }
    .data-item .col-op::before { display: none !important; }
    .data-item .col-op .op-btn,
    .data-item .col-op .btn {
        flex: 0 0 auto;
        text-align: center;
        padding: 7px 16px;
        font-size: 13px;
        border-radius: 4px;
        margin: 0;
        min-width: 60px;
    }

    /* 金额字段 */
    .data-item .col-money {
        text-align: left !important;
    }

    /* 空状态 */
    .data-empty {
        border-radius: 8px;
        margin: 0;
        border: 1px solid #e5e7eb;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

    /* 分页 */
    .data-body + .pagination,
    .data-head + .data-body + .pagination,
    .pagination {
        border: none !important;
        background: transparent !important;
        padding: 12px 0 0 !important;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    .pagination .page-btn {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* ============= 弹窗/模态框 ============= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.show {
    display: flex;
}
.modal-dialog {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    animation: modalIn 0.2s ease;
    display: flex;
    flex-direction: column;
}
.modal-dialog.modal-sm { max-width: 380px; }
.modal-dialog.modal-lg { max-width: 720px; }
@keyframes modalIn {
    from { transform: scale(0.95) translateY(-10px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid #e6eaf0;
    background: #fafbfc;
}
.modal-header .modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2332;
}
.modal-header .modal-title .fa {
    margin-right: 6px;
    color: #165DFF;
}
.modal-header .modal-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #8492a6;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 4px;
}
.modal-header .modal-close:hover {
    color: #f56c6c;
}
.modal-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
    font-size: 13px;
    color: #3a4555;
    line-height: 1.6;
}
.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #e6eaf0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    background: #fafbfc;
}

/* ============= 加载状态 ============= */
.loading-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e6eaf0;
    border-top-color: #165DFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loading-text {
    margin-left: 10px;
    font-size: 13px;
    color: #5a6473;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e6eaf0 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 4px;
}
@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.skeleton-btn {
    display: inline-block;
    width: 80px;
    height: 32px;
    border-radius: 4px;
}

/* ============================================================
   OA系统常用补充组件
   ============================================================ */

/* ============= 统计数字卡片（首页仪表盘） ============= */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-card .stat-icon.blue { background: #e6f4ff; color: #165DFF; }
.stat-card .stat-icon.green { background: #f0f9eb; color: #00B42A; }
.stat-card .stat-icon.orange { background: #fff7e6; color: #e09a3a; }
.stat-card .stat-icon.red { background: #fef0f0; color: #f56c6c; }
.stat-card .stat-icon.purple { background: #f5f0ff; color: #722ed1; }
.stat-card .stat-info { flex: 1; min-width: 0; }
.stat-card .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a2332;
    font-family: 'Times New Roman', serif;
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 13px;
    color: #8492a6;
    margin-top: 4px;
}
.stat-card .stat-extra {
    font-size: 12px;
    color: #8492a6;
    margin-top: 2px;
}

/* ============= 描述列表（详情页键值对展示） ============= */
.desc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
    font-size: 13px;
}
.desc-item {
    display: flex;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
}
.desc-item:nth-child(odd) {
    background: #fafbfc;
}
.desc-label {
    flex: 0 0 100px;
    color: #5a6473;
    font-weight: 500;
    padding-right: 12px;
    text-align: right;
    white-space: nowrap;
}
.desc-value {
    flex: 1;
    color: #1a2332;
    min-width: 0;
    word-break: break-all;
}
.desc-value.money {
    color: #C9151E;
    font-weight: 600;
    font-family: 'Times New Roman', serif;
}

/* ============= 通用标签 Tag ============= */
.tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.6;
    margin-right: 4px;
    border: 1px solid transparent;
}
.tag-default { background: #f5f7fa; color: #5a6473; border-color: #e6eaf0; }
.tag-blue { background: #e6f4ff; color: #165DFF; border-color: #bdd5ff; }
.tag-green { background: #f0f9eb; color: #00B42A; border-color: #c5e8b7; }
.tag-orange { background: #fff7e6; color: #e09a3a; border-color: #f5d591; }
.tag-red { background: #fef0f0; color: #f56c6c; border-color: #fbc4c4; }
.tag-purple { background: #f5f0ff; color: #722ed1; border-color: #d3c1f5; }
.tag-cyan { background: #e8fffb; color: #00b8d9; border-color: #a5f0e5; }
.tag-gray { background: #f5f5f5; color: #8c8c8c; border-color: #d9d9d9; }

/* ============= 优先级标签 ============= */
.priority {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}
.priority::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.priority.urgent { color: #f56c6c; }
.priority.urgent::before { background: #f56c6c; }
.priority.high { color: #e09a3a; }
.priority.high::before { background: #e09a3a; }
.priority.normal { color: #165DFF; }
.priority.normal::before { background: #165DFF; }
.priority.low { color: #8492a6; }
.priority.low::before { background: #8492a6; }

/* ============= 分割线/分区标题 ============= */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a2332;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6eaf0;
}
.section-title:first-child { margin-top: 0; }
.section-title .fa { color: #165DFF; }
.section-title .section-more {
    margin-left: auto;
    font-size: 12px;
    font-weight: normal;
    color: #8492a6;
    text-decoration: none;
}
.section-title .section-more:hover { color: #165DFF; }
.divider {
    height: 1px;
    background: #e6eaf0;
    margin: 16px 0;
    border: none;
}
.divider-dashed {
    height: 0;
    border-top: 1px dashed #e6eaf0;
    margin: 16px 0;
    background: none;
}

/* ============= 工具栏按钮组 ============= */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.toolbar .toolbar-sep {
    width: 1px;
    height: 20px;
    background: #e6eaf0;
    margin: 0 4px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    background: #fff;
    color: #3a4555;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.5;
}
.btn:hover { border-color: #165DFF; color: #165DFF; background: #f0f6ff; text-decoration: none; }
.btn:focus { outline: none; box-shadow: 0 0 0 2px rgba(22,93,255,0.15); }
.btn .fa { font-size: 12px; }
.btn-primary {
    background: #165DFF;
    border-color: #165DFF;
    color: #fff;
}
.btn-primary:hover { background: #0e4ed8; border-color: #0e4ed8; color: #fff; }
.btn-success {
    background: #00B42A;
    border-color: #00B42A;
    color: #fff;
}
.btn-success:hover { background: #009a22; border-color: #009a22; color: #fff; }
.btn-danger {
    background: #f56c6c;
    border-color: #f56c6c;
    color: #fff;
}
.btn-danger:hover { background: #e25555; border-color: #e25555; color: #fff; }
.btn-warning {
    background: #e09a3a;
    border-color: #e09a3a;
    color: #fff;
}
.btn-warning:hover { background: #c8862e; border-color: #c8862e; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 8px 22px; font-size: 14px; }
.btn-text {
    border: none;
    background: transparent;
    color: #165DFF;
    padding: 4px 8px;
}
.btn-text:hover { background: #f0f6ff; color: #0e4ed8; }
.btn:disabled, .btn.disabled {
    background: #f5f7fa;
    border-color: #e6eaf0;
    color: #c0ccda;
    cursor: not-allowed;
}
.btn:disabled:hover, .btn.disabled:hover {
    background: #f5f7fa;
    border-color: #e6eaf0;
    color: #c0ccda;
}

/* ============= 头像/人员显示 ============= */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #165DFF;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.user-avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.user-avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.user-avatar.c-green { background: #00B42A; }
.user-avatar.c-orange { background: #e09a3a; }
.user-avatar.c-red { background: #f56c6c; }
.user-avatar.c-purple { background: #722ed1; }
.user-avatar.c-gray { background: #8492a6; }
.user-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1a2332;
}
.user-info .user-name { font-weight: 500; }
.user-info .user-dept { font-size: 12px; color: #8492a6; }

/* ============= 公告/通知列表 ============= */
.notice-list { margin-top: 0; }
.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: #f9fafc; }
.notice-item .notice-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.notice-item .notice-icon.info { background: #e6f4ff; color: #165DFF; }
.notice-item .notice-icon.success { background: #f0f9eb; color: #00B42A; }
.notice-item .notice-icon.warning { background: #fff7e6; color: #e09a3a; }
.notice-item .notice-content { flex: 1; min-width: 0; }
.notice-item .notice-title {
    font-size: 13px;
    color: #1a2332;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-item.unread .notice-title { font-weight: 600; color: #1a2332; }
.notice-item .notice-title .unread-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f56c6c;
    margin-left: 6px;
    vertical-align: middle;
}
.notice-item .notice-meta {
    font-size: 12px;
    color: #8492a6;
    display: flex;
    gap: 12px;
}
.notice-item .notice-time { color: #8492a6; font-size: 12px; white-space: nowrap; flex-shrink: 0; align-self: center; }

/* ============= 待办事项列表 ============= */
.todo-list { margin-top: 0; }
.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s;
}
.todo-item:last-child { border-bottom: none; }
.todo-item:hover { background: #f9fafc; }
.todo-item .todo-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #165DFF;
}
.todo-item .todo-content { flex: 1; min-width: 0; }
.todo-item .todo-title {
    font-size: 13px;
    color: #1a2332;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.todo-item.done .todo-title {
    color: #8492a6;
    text-decoration: line-through;
}
.todo-item .todo-desc {
    font-size: 12px;
    color: #8492a6;
    margin-top: 2px;
}
.todo-item .todo-tags {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}
.todo-item .todo-time {
    font-size: 12px;
    color: #8492a6;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============= 文件下载卡片（附件展示） ============= */
.file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6eaf0;
    border-radius: 6px;
    background: #fff;
    transition: all 0.15s;
    margin-bottom: 8px;
}
.file-card:last-child { margin-bottom: 0; }
.file-card:hover { background: #f5f9ff; border-color: #bcd2ff; }
.file-card .file-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.file-card .file-icon.pdf { background: #fef0f0; color: #f56c6c; }
.file-card .file-icon.word { background: #e6f4ff; color: #165DFF; }
.file-card .file-icon.excel { background: #f0f9eb; color: #00B42A; }
.file-card .file-icon.zip { background: #fff7e6; color: #e09a3a; }
.file-card .file-icon.image { background: #f5f0ff; color: #722ed1; }
.file-card .file-icon.default { background: #f5f7fa; color: #8492a6; }
.file-card .file-info { flex: 1; min-width: 0; }
.file-card .file-name {
    font-size: 13px;
    color: #1a2332;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-card .file-meta {
    font-size: 12px;
    color: #8492a6;
    margin-top: 2px;
    display: flex;
    gap: 12px;
}
.file-card .file-actions {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
}

/* ============= 空状态（通用） ============= */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #8492a6;
}
.empty-state .empty-icon {
    font-size: 56px;
    color: #d0d7de;
    margin-bottom: 12px;
}
.empty-state .empty-text {
    font-size: 14px;
    color: #5a6473;
    margin-bottom: 16px;
}
.empty-state .empty-desc {
    font-size: 12px;
    color: #8492a6;
    margin-bottom: 16px;
}

/* ============= 时间显示 ============= */
.time-friendly {
    font-size: 12px;
    color: #8492a6;
    white-space: nowrap;
}
.time-friendly.new { color: #f56c6c; font-weight: 500; }
.time-divider {
    text-align: center;
    font-size: 12px;
    color: #8492a6;
    padding: 8px 0;
    position: relative;
}
.time-divider::before,
.time-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e6eaf0;
}
.time-divider::before { left: 0; }
.time-divider::after { right: 0; }

/* ============= 数量角标 ============= */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #f56c6c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    margin-left: 4px;
}
.badge-count.blue { background: #165DFF; }
.badge-count.orange { background: #e09a3a; }

/* ============= 快速数字输入 ============= */
.number-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.number-input button {
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f7fa;
    color: #5a6473;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.number-input button:hover { background: #e6eaf0; }
.number-input input {
    width: 50px;
    height: 30px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    color: #1a2332;
    outline: none;
    background: #fff;
}

/* ============= 回到顶部按钮 ============= */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6473;
    font-size: 16px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: #165DFF; color: #fff; box-shadow: 0 4px 12px rgba(22,93,255,0.3); }

/* ============= 移动端底部操作栏 ============= */
.mobile-action-bar {
    display: none;
}

/* ============= 新增组件移动端适配 ============= */
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 18px; }
    .stat-card .stat-value { font-size: 22px; }

    .desc-list { grid-template-columns: 1fr; }
    .desc-item { padding: 8px 12px; }
    .desc-label { flex: 0 0 80px; font-size: 12px; }

    .file-card { padding: 10px; gap: 10px; }
    .file-card .file-icon { width: 36px; height: 36px; font-size: 18px; }
    .file-card .file-meta { gap: 8px; }

    .notice-item { padding: 10px 12px; gap: 10px; }
    .todo-item { padding: 10px 12px; gap: 8px; }

    .toolbar .btn { padding: 5px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 12px 10px; flex-direction: column; text-align: center; gap: 6px; }
    .stat-card .stat-icon { width: 36px; height: 36px; font-size: 16px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-label { font-size: 12px; }

    .file-card { flex-wrap: wrap; }
    .file-card .file-info { flex: 1 1 calc(100% - 50px); }
    .file-card .file-actions { width: 100%; justify-content: flex-end; padding-top: 8px; border-top: 1px dashed #eef1f5; }

    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e6eaf0;
        padding: 8px 12px;
        gap: 8px;
        z-index: 998;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    }
    .mobile-action-bar .btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 14px;
    }

    .back-top { right: 12px; bottom: 72px; width: 36px; height: 36px; }
}

/* ============= 顶部栏（页面标题 + 元信息/操作区，业务页通用） ============= */
.top-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(31,45,61,0.06);
    padding: 0 16px;
    height: 52px;
    margin-bottom: 14px;
    gap: 12px;
}
.top-bar .page-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a2332;
    white-space: nowrap;
}
.top-bar .page-title i { color: #C9151E; padding-right: 8px; font-style: normal; }
.top-bar .bar-spacer { flex: 1; }
.top-bar .bar-meta { font-size: 13px; color: #8492a6; white-space: nowrap; }

/* 顶部栏响应式：≤1024px 折行自适应（spacer 隐藏，元信息自然换行） */
@media screen and (max-width: 1024px) {
    .top-bar { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 8px 12px; }
    .top-bar .bar-spacer { display: none; }
    .top-bar .page-title { font-size: 15px; }
    .top-bar .bar-meta { font-size: 12px; }
}
