/* =============================================================
   组件库：按钮 / 表单 / 表格 / 卡片 / 弹窗 / 抽屉 / 图表 / 时间轴
   ============================================================= */

/* ---------------- 按钮 ---------------- */
.btn {
    height: 37px;
    padding: 0 15px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-ink-2);
    background: #fff;
    border: 1px solid var(--c-line);
    transition: .16s ease;
    white-space: nowrap;
    user-select: none;
}
.btn:hover { border-color: #cdd8e5; background: #fbfcfe; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; box-shadow: none; }
.btn-primary {
    background: linear-gradient(140deg, #15c3a2, #0b9b82);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(15, 168, 137, .24);
}
.btn-primary:hover { background: linear-gradient(140deg, #1ad0ad, #0ca88d); border-color: transparent; box-shadow: 0 10px 22px rgba(15, 168, 137, .3); }
.btn-ghost { background: #fff; }
.btn-soft { background: var(--c-brand-soft); color: #0b7a63; border-color: transparent; }
.btn-soft:hover { background: #ddf3ec; border-color: transparent; }
.btn-blue { background: var(--c-blue-soft); color: #2357d8; border-color: transparent; }
.btn-blue:hover { background: #e2eaff; border-color: transparent; }
.btn-danger { background: #fff; color: var(--c-red); border-color: #f3d2d3; }
.btn-danger:hover { background: var(--c-red-soft); border-color: #eeb9bb; }
.btn-dark { background: #0d1e31; color: #e7f3fb; border-color: transparent; }
.btn-dark:hover { background: #14293f; }
.btn-sm { height: 31px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 11px; border-radius: 7px; gap: 4px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 13.5px; border-radius: 11px; }
.btn-icon { width: 34px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-link { height: auto; padding: 0; background: none; border: 0; color: var(--c-blue); font-size: 12px; }
.btn-link:hover { background: none; box-shadow: none; text-decoration: underline; }

/* ---------------- 页面工具条 ---------------- */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }
.search-box {
    height: 34px;
    min-width: 210px;
    border: 1px solid var(--c-line);
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: var(--c-faint);
    background: #fbfcfe;
}
.search-box:focus-within { border-color: #9fd9c9; box-shadow: 0 0 0 3px rgba(15, 168, 137, .08); background: #fff; }
.search-box input { border: 0; outline: 0; width: 100%; background: transparent; font-size: 12.5px; color: var(--c-ink); }
.search-box input::placeholder { color: var(--c-faint); }
.filter-select {
    height: 34px;
    border: 1px solid var(--c-line);
    border-radius: 9px;
    background: #fff;
    padding: 0 28px 0 10px;
    font-size: 12px;
    color: var(--c-ink-2);
    outline: 0;
    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='%23899aab' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    cursor: pointer;
}
.filter-select:focus { border-color: #9fd9c9; box-shadow: 0 0 0 3px rgba(15, 168, 137, .08); }
.segmented {
    display: inline-flex;
    background: #f2f5f9;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
}
.segmented button {
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 11.5px;
    color: var(--c-muted);
    display: flex; align-items: center; gap: 5px;
    transition: .15s;
}
.segmented button.active { background: #fff; color: var(--c-ink); box-shadow: 0 1px 4px rgba(14, 26, 43, .12); font-weight: 600; }
.segmented svg { width: 14px; height: 14px; }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 11.5px; font-weight: 600; color: #475b70; display: flex; align-items: center; gap: 4px; }
.field-label .req { color: var(--c-red); }
.field-hint { font-size: 10.5px; color: var(--c-faint); }
.input, .select, .textarea {
    width: 100%;
    height: 38px;
    border: 1px solid var(--c-line);
    border-radius: 9px;
    background: #fff;
    padding: 0 11px;
    font-size: 12.8px;
    color: var(--c-ink);
    outline: 0;
    transition: .15s;
}
.textarea { height: auto; min-height: 78px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #a7b4c3; }
.input:focus, .select:focus, .textarea:focus {
    border-color: #8ad3c1;
    box-shadow: 0 0 0 3px rgba(15, 168, 137, .09);
}
.input:disabled, .select:disabled { background: #f6f8fb; color: var(--c-muted); }
.select {
    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='%23899aab' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.form-section { margin-bottom: 18px; }
.form-section-title {
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--c-faint);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--c-line-soft); }
.checkbox { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--c-ink-2); cursor: pointer; }
.checkbox input { margin: 1px 0 0; accent-color: var(--c-brand); }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
    position: absolute; inset: 0; background: #d5dde8; border-radius: 20px; transition: .2s; cursor: pointer;
}
.switch span::after {
    content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px;
    background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch input:checked + span { background: var(--c-brand); }
.switch input:checked + span::after { transform: translateX(16px); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.radio-card {
    border: 1px solid var(--c-line); border-radius: 9px; padding: 9px 10px;
    font-size: 12px; color: var(--c-ink-2); cursor: pointer; text-align: center; transition: .15s;
}
.radio-card.active { border-color: #7fd1bd; background: var(--c-brand-soft); color: #0b7a63; font-weight: 600; }
.upload-box {
    border: 1px dashed #cdd9e5; border-radius: 10px; padding: 16px;
    text-align: center; color: var(--c-faint); font-size: 11.5px; background: #fbfcfe;
}

/* ---------------- 徽章 / 标签 ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    height: 22px; padding: 0 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    background: #f1f5f9;
    color: #52667a;
}
.badge .bdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green { background: #e8f8f2; color: #0a7d65; }
.badge-red { background: #fdeeee; color: #c3363c; }
.badge-amber { background: #fdf4e3; color: #a76a00; }
.badge-blue { background: #edf2ff; color: #2b5fdb; }
.badge-purple { background: #f0edff; color: #5b43c4; }
.badge-gray { background: #f1f5f9; color: #5d7288; }
.badge-cyan { background: #e7f6fa; color: #0b7b91; }
.badge-dark { background: #0f2237; color: #dbeeff; }
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f4f7fa;
    color: #5c7187;
    font-size: 10.5px;
    border: 1px solid var(--c-line-soft);
}
.chip svg { width: 12px; height: 12px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.green { background: #12b886; box-shadow: 0 0 0 3px rgba(18, 184, 134, .12); }
.dot.red { background: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.dot.amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); }
.dot.blue { background: #2f6bff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.dot.gray { background: #94a3b8; }

/* ---------------- 面板 ---------------- */
.panel {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    position: relative;
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 18px 12px;
    border-bottom: 1px solid var(--c-line-soft);
}
.panel-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel-title svg { width: 16px; height: 16px; color: var(--c-brand); }
.panel-desc { font-size: 11px; color: var(--c-faint); margin-top: 4px; }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }
.panel-tools { display: flex; align-items: center; gap: 8px; }
.panel-foot { padding: 11px 18px; border-top: 1px solid var(--c-line-soft); font-size: 11.5px; color: var(--c-muted); }

/* ---------------- 表格 ---------------- */
.data-table-wrap { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { min-width: 100%; }
.data-table thead th {
    padding: 11px 14px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 600;
    color: #8496a8;
    letter-spacing: .04em;
    background: #f8fafd;
    border-bottom: 1px solid var(--c-line);
    white-space: nowrap;
    position: sticky; top: 0; z-index: 1;
}
.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--c-line-soft);
    font-size: 12.5px;
    color: var(--c-ink-2);
    vertical-align: middle;
}
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #fafdfc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .cell-main { font-size: 12.8px; font-weight: 600; color: var(--c-ink); line-height: 1.35; }
.data-table .cell-main.link { color: #0b6f5c; cursor: pointer; }
.data-table .cell-main.link:hover { text-decoration: underline; }
.data-table .cell-sub { font-size: 10.5px; color: var(--c-faint); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.data-table .cell-code { font-family: var(--font-num); font-size: 11px; color: var(--c-muted); letter-spacing: .2px; }
.data-table .num-cell { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.row-actions { display: flex; align-items: center; gap: 3px; justify-content: flex-end; }
.icon-btn {
    width: 27px; height: 27px;
    border-radius: 7px;
    display: grid; place-items: center;
    color: #7d8fa2;
    transition: .13s;
}
.icon-btn svg { width: 14.5px; height: 14.5px; }
.icon-btn:hover { background: #eef4f9; color: var(--c-ink); }
.icon-btn.danger:hover { background: var(--c-red-soft); color: var(--c-red); }
.icon-btn.success:hover { background: var(--c-brand-soft); color: var(--c-brand); }

/* ---------------- 业务卡片列表 ---------------- */
.biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 12px;
}
.biz-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 15px 16px 13px;
    position: relative;
    overflow: hidden;
    transition: .18s ease;
    cursor: default;
}
.biz-card:hover { border-color: #c6e5dc; box-shadow: var(--shadow); transform: translateY(-2px); }
.biz-card::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent, var(--c-brand));
    opacity: .85;
}
.biz-card-top { display: flex; align-items: flex-start; gap: 10px; }
.biz-card-icon {
    width: 35px; height: 35px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--accent-soft, var(--c-brand-soft));
    color: var(--accent, var(--c-brand));
    flex: none;
}
.biz-card-icon svg { width: 17px; height: 17px; }
.biz-card-title { font-size: 13.2px; font-weight: 700; line-height: 1.4; letter-spacing: -.1px; }
.biz-card-title.link { cursor: pointer; }
.biz-card-title.link:hover { color: #0b7a63; }
.biz-card-code { font-family: var(--font-num); font-size: 10px; color: var(--c-faint); margin-top: 3px; letter-spacing: .3px; }
.biz-card-head-right { margin-left: auto; flex: none; }
.biz-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    margin-top: 12px;
    font-size: 11px; color: var(--c-muted);
}
.biz-card-meta span { display: flex; align-items: center; gap: 4px; }
.biz-card-meta svg { width: 12; height: 12; opacity: .6; }
.biz-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--c-line);
    font-size: 11px;
    color: var(--c-faint);
}
.biz-card-actions { display: flex; gap: 2px; }
.biz-card-progress { height: 4px; border-radius: 4px; background: #eff3f8; margin-top: 11px; overflow: hidden; }
.biz-card-progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #17c3a1, #0b9b82); }
.biz-card-tag {
    position: absolute; right: 12px; top: 12px;
    font-family: var(--font-num);
    font-size: 9.5px;
    color: var(--c-faint);
}

/* ---------------- 空状态 / 骨架 ---------------- */
.empty-state {
    padding: 54px 20px;
    text-align: center;
    color: var(--c-faint);
}
.empty-state .empty-icon {
    width: 54px; height: 54px; margin: 0 auto 12px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: #f3f7fa;
    color: #a9b9c8;
}
.empty-state .empty-icon svg { width: 25px; height: 25px; }
.empty-state .es-title { font-size: 13px; color: var(--c-ink-2); font-weight: 600; }
.empty-state .es-desc { font-size: 11.5px; margin-top: 5px; }
.skeleton {
    background: linear-gradient(90deg, #f1f4f8 25%, #f8fafc 50%, #f1f4f8 75%);
    background-size: 640px 100%;
    animation: shimmer 1.3s infinite linear;
    border-radius: 6px;
}
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(15, 168, 137, .2);
    border-top-color: var(--c-brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

/* ---------------- 分页 ---------------- */
.pager {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px;
    border-top: 1px solid var(--c-line-soft);
    flex-wrap: wrap;
}
.pager-info { font-size: 11.5px; color: var(--c-muted); }
.pager-info b { font-family: var(--font-num); color: var(--c-ink-2); }
.pager-btns { display: flex; align-items: center; gap: 4px; }
.page-btn {
    min-width: 29px; height: 29px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 11.5px;
    color: var(--c-muted);
    display: grid; place-items: center;
    border: 1px solid transparent;
    font-family: var(--font-num);
}
.page-btn:hover { background: #f2f6fa; color: var(--c-ink); }
.page-btn.active { background: var(--c-brand-soft); color: #0b7a63; border-color: rgba(15, 168, 137, .2); font-weight: 700; }
.page-btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
    position: fixed; inset: 0;
    background: rgba(5, 14, 27, .52);
    backdrop-filter: blur(7px);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 6vh 20px 30px;
    overflow-y: auto;
    animation: fadeIn .16s ease;
}
.modal {
    background: #fff;
    border-radius: 17px;
    width: 620px;
    max-width: 100%;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .25) inset;
    animation: popIn .2s cubic-bezier(.2, .8, .3, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}
.modal::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, #17c3a1, #2f6bff 60%, #7358e8);
}
.modal-sm { width: 440px; }
.modal-md { width: 620px; }
.modal-lg { width: 800px; }
.modal-xl { width: 1000px; }
.modal-head {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 20px 22px 14px;
}
.modal-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--c-brand-soft);
    color: var(--c-brand);
    flex: none;
}
.modal-icon svg { width: 19px; height: 19px; }
.modal-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; line-height: 1.4; }
.modal-sub { font-size: 11.5px; color: var(--c-muted); margin-top: 3px; }
.modal-close {
    margin-left: auto;
    width: 30px; height: 30px;
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--c-faint);
    flex: none;
}
.modal-close:hover { background: #f3f6fa; color: var(--c-ink); }
.modal-body { padding: 4px 22px 20px; }
.modal-foot {
    padding: 13px 22px;
    background: #f8fafc;
    border-top: 1px solid var(--c-line-soft);
    display: flex; justify-content: flex-end; gap: 8px;
    align-items: center;
}
.modal-foot .foot-left { margin-right: auto; font-size: 11px; color: var(--c-faint); }

/* ---------------- 抽屉 ---------------- */
.drawer-mask {
    position: fixed; inset: 0;
    background: rgba(5, 14, 27, .45);
    backdrop-filter: blur(5px);
    animation: fadeIn .18s ease;
}
.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 660px;
    max-width: 94vw;
    background: var(--c-bg-soft);
    box-shadow: -30px 0 80px rgba(5, 14, 27, .22);
    display: flex; flex-direction: column;
    animation: slideIn .24s cubic-bezier(.2, .8, .3, 1);
    z-index: 2;
}
.drawer-wide { width: 860px; }
.drawer-hero {
    padding: 22px 24px 18px;
    background:
        radial-gradient(90% 130% at 100% 0%, rgba(22, 201, 160, .2), transparent 60%),
        linear-gradient(145deg, #081827, #0d2236);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.drawer-hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(90deg, #000, transparent 85%);
    pointer-events: none;
}
.drawer-hero .dh-top { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.drawer-hero .dh-type {
    font-size: 10px; letter-spacing: .1em; color: #6fe0c2;
    background: rgba(22, 201, 160, .12);
    border: 1px solid rgba(22, 201, 160, .24);
    padding: 3px 8px; border-radius: 5px;
}
.drawer-hero .dh-code { font-family: var(--font-num); font-size: 11px; color: #7f9db2; }
.drawer-hero .dh-close {
    margin-left: auto; width: 30px; height: 30px; border-radius: 8px;
    display: grid; place-items: center; color: #94b0c4;
    background: rgba(255, 255, 255, .05);
}
.drawer-hero .dh-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.drawer-hero .dh-title { position: relative; z-index: 1; font-size: 19px; font-weight: 700; letter-spacing: -.3px; margin: 12px 0 8px; line-height: 1.35; }
.drawer-hero .dh-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 11.5px; color: #90aec4; }
.drawer-hero .dh-meta span { display: flex; align-items: center; gap: 5px; }
.drawer-hero .dh-meta svg { width: 12.5px; height: 12.5px; opacity: .7; }
.drawer-hero .dh-actions { position: relative; z-index: 1; display: flex; gap: 7px; margin-top: 15px; flex-wrap: wrap; }
.drawer-hero .dh-actions .btn {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .14);
    color: #dcebf6;
    box-shadow: none;
}
.drawer-hero .dh-actions .btn:hover { background: rgba(255, 255, 255, .14); }
.drawer-hero .dh-actions .btn-primary {
    background: linear-gradient(140deg, #18c7a5, #0b9b82);
    border-color: transparent; color: #fff;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px 28px; }
.drawer-foot {
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid var(--c-line);
    display: flex; justify-content: flex-end; gap: 8px;
}
.drawer-section { margin-bottom: 16px; }
.drawer-section-title {
    font-size: 11px; letter-spacing: .07em; color: var(--c-faint);
    display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
}
.drawer-section-title::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.detail-panel { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 15px 16px; }

/* ---------------- Tabs ---------------- */
.tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--c-line);
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 9px 13px 10px;
    font-size: 12.5px;
    color: var(--c-muted);
    position: relative;
    white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--c-ink); }
.tab.active { color: #0b7a63; font-weight: 700; }
.tab.active::after {
    content: "";
    position: absolute; left: 10px; right: 10px; bottom: -1px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #16c9a0, #0b9b82);
}
.tab .tab-count {
    font-family: var(--font-num);
    font-size: 9.5px;
    background: #f0f4f8;
    border-radius: 10px;
    padding: 1px 6px;
    color: var(--c-muted);
}
.tab.active .tab-count { background: var(--c-brand-soft); color: #0b7a63; }

/* ---------------- 描述列表 ---------------- */
.desc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 22px; }
.desc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desc-item { min-width: 0; }
.desc-label { font-size: 10.5px; color: var(--c-faint); margin-bottom: 4px; }
.desc-value { font-size: 12.8px; color: var(--c-ink); line-height: 1.55; word-break: break-all; }
.desc-value.strong { font-weight: 600; }
.desc-value.num { font-family: var(--font-num); }

/* ---------------- 时间轴 ---------------- */
.timeline { position: relative; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tl-item::before {
    content: ""; position: absolute; left: 8px; top: 18px; bottom: 0;
    width: 1px; background: #e3eaf2;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-dot {
    width: 17px; height: 17px; border-radius: 50%;
    background: #fff; border: 2px solid #cbd7e4;
    display: grid; place-items: center; flex: none;
    margin-top: 2px; z-index: 1;
}
.tl-dot svg { width: 9px; height: 9px; color: #fff; }
.tl-dot.done { background: #12b886; border-color: #12b886; }
.tl-dot.current { background: #fff; border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .14); }
.tl-dot.reject { background: #e5484d; border-color: #e5484d; }
.tl-dot.wait { border-style: dashed; }
.tl-body { flex: 1; min-width: 0; }
.tl-title { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tl-meta { font-size: 10.5px; color: var(--c-faint); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.tl-comment {
    margin-top: 7px; font-size: 11.5px; color: var(--c-ink-2);
    background: #f6f9fc; border: 1px solid var(--c-line-soft);
    padding: 7px 10px; border-radius: 8px; line-height: 1.55;
}

/* ---------------- KPI ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 15px 16px 13px;
    position: relative;
    overflow: hidden;
    min-height: 112px;
    display: flex;
    flex-direction: column;
}
.kpi::after {
    content: "";
    position: absolute; right: -18px; top: -22px;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--kpi-glow, rgba(15, 168, 137, .07));
}
.kpi-top { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.kpi-icon {
    width: 29px; height: 29px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: var(--kpi-soft, var(--c-brand-soft));
    color: var(--kpi, var(--c-brand));
}
.kpi-icon svg { width: 15px; height: 15px; }
.kpi-label { font-size: 11.5px; color: var(--c-muted); }
.kpi-value {
    font-family: var(--font-num);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -.8px;
    line-height: 1.1;
    margin: 10px 0 0;
    position: relative; z-index: 1;
}
.kpi-value small { font-size: 12px; color: var(--c-muted); font-weight: 400; margin-left: 3px; letter-spacing: 0; }
.kpi-foot {
    margin-top: auto;
    display: flex; align-items: center; gap: 6px;
    font-size: 10.5px; color: var(--c-faint);
    position: relative; z-index: 1;
}
.trend { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-num); font-weight: 600; font-size: 10.5px; }
.trend.up { color: #0a9b79; }
.trend.down { color: #d9484d; }
.trend svg { width: 11px; height: 11px; }

/* ---------------- 图表 ---------------- */
.chart-svg { width: 100%; display: block; overflow: visible; }
.chart-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: var(--c-muted); }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }
.chart-grid-line { stroke: #eef2f7; stroke-width: 1; }
.chart-axis-text { font-size: 9px; fill: #9aabbc; font-family: var(--font-num); }
.chart-line { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { opacity: .14; }
.chart-dot { stroke: #fff; stroke-width: 1.5; }
.chart-bar { transition: .2s; }
.chart-bar:hover { opacity: .82; }
.chart-tip {
    position: absolute;
    background: #0c1c2d;
    color: #e8f4ff;
    font-size: 10.5px;
    padding: 6px 9px;
    border-radius: 7px;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(5, 14, 27, .3);
    z-index: 5;
    white-space: nowrap;
    transform: translate(-50%, -120%);
}

/* ---------------- 进度 / 统计 ---------------- */
.progress { height: 6px; border-radius: 6px; background: #eef2f7; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #18c9a3, #0b9b82); transition: width .5s; }
.progress.blue i { background: linear-gradient(90deg, #5b8bff, #2f6bff); }
.progress.amber i { background: linear-gradient(90deg, #f7b84b, #e79a10); }
.progress.red i { background: linear-gradient(90deg, #f27c80, #e04a4f); }
.stat-row { display: flex; gap: 20px; flex-wrap: wrap; }
.stat { min-width: 84px; }
.stat-label { font-size: 10.5px; color: var(--c-faint); }
.stat-value { font-family: var(--font-num); font-size: 19px; font-weight: 600; margin-top: 3px; }
.stat-value small { font-size: 10px; color: var(--c-muted); margin-left: 2px; }

/* ---------------- Toast / 下拉 ---------------- */
.toast-stack {
    position: fixed; right: 22px; top: 20px;
    z-index: 4000;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    min-width: 260px; max-width: 380px;
    background: #0c1c2d;
    color: #e8f4ff;
    border-radius: 11px;
    padding: 11px 14px;
    display: flex; align-items: flex-start; gap: 9px;
    box-shadow: 0 16px 36px rgba(5, 14, 27, .3);
    font-size: 12px;
    animation: popIn .2s ease;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, .08);
}
.toast svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.toast.ok svg { color: #2de0b4; }
.toast.err svg { color: #ff8b8f; }
.toast.info svg { color: #7ea8ff; }
.toast .toast-msg { line-height: 1.5; }
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    right: 0; top: calc(100% + 7px);
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 11px;
    box-shadow: 0 18px 40px rgba(14, 26, 43, .15);
    padding: 5px;
    z-index: 1200;
    animation: popIn .16s ease;
}
.dropdown-label { padding: 8px 10px 6px; font-size: 10px; color: var(--c-faint); letter-spacing: .06em; }
.dropdown-item {
    width: 100%;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 12px;
    color: var(--c-ink-2);
    text-align: left;
}
.dropdown-item:hover { background: #f3f7fa; }
.dropdown-item svg { width: 14px; height: 14px; color: var(--c-muted); }
.dropdown-sep { height: 1px; background: var(--c-line-soft); margin: 5px 7px; }

/* ---------------- 流程步骤条 ---------------- */
.flow-steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.flow-step {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 11px;
    border-radius: 8px;
    background: #f6f9fc;
    border: 1px solid var(--c-line-soft);
    font-size: 11.5px;
    color: var(--c-muted);
}
.flow-step b { font-family: var(--font-num); font-size: 10px; color: var(--c-faint); }
.flow-step.active { background: var(--c-amber-soft); border-color: #f5dfb8; color: #9a6400; }
.flow-step.done { background: var(--c-brand-soft); border-color: #c9ede3; color: #0b7a63; }
.flow-arrow { color: #c9d5e2; margin: 0 6px; }
.flow-arrow svg { width: 13px; height: 13px; }

/* ---------------- 树 ---------------- */
.tree { font-size: 12.5px; }
.tree-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 9px;
    border-radius: 8px;
    color: var(--c-ink-2);
    cursor: pointer;
}
.tree-item:hover { background: #f3f7fa; }
.tree-item.active { background: var(--c-brand-soft); color: #0b7a63; font-weight: 600; }
.tree-item .tree-count { margin-left: auto; font-family: var(--font-num); font-size: 10px; color: var(--c-faint); }
.tree-children { padding-left: 18px; border-left: 1px dashed #e2eaf2; margin-left: 9px; }

/* ---------------- 其他 ---------------- */
.divider { height: 1px; background: var(--c-line-soft); margin: 14px 0; }
.alert {
    display: flex; gap: 9px; align-items: flex-start;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 11.5px;
    line-height: 1.55;
    background: #f4f7fb;
    color: #52667a;
    border: 1px solid var(--c-line-soft);
}
.alert svg { width: 15px; height: 15px; margin-top: 1px; flex: none; }
.alert.warn { background: var(--c-amber-soft); color: #906000; border-color: #f5e3c2; }
.alert.danger { background: var(--c-red-soft); color: #b03438; border-color: #f5d5d6; }
.alert.info { background: var(--c-blue-soft); color: #2856c9; border-color: #dbe5ff; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; }
.file-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 8px; font-size: 11.5px; }
