    .resizable-table th { position: relative; }
    .resizable-table th .col-resizer {
      position: absolute; right: 0; top: 0; bottom: 0; width: 5px;
      cursor: col-resize; user-select: none;
    }
    .resizable-table th .col-resizer:hover,
    .resizable-table th .col-resizer.resizing { background: #3b82f6; }
    /* 列设置 */
    .col-settings-btn {
      background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 0.25rem;
      padding: 0.3rem 0.5rem; cursor: pointer; font-size: 0.875rem; color: #6b7280; line-height: 1;
    }
    .col-settings-btn:hover { background: #e5e7eb; }
    .col-settings-dropdown {
      position: absolute; top: 100%; right: 0; z-index: 50; margin-top: 4px;
      background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 0.5rem; min-width: 140px;
      max-height: 320px; overflow-y: auto;
    }
    .col-settings-dropdown label {
      display: block; padding: 0.2rem 0.25rem; font-size: 0.8125rem; cursor: pointer;
      white-space: nowrap; border-radius: 0.25rem;
    }
    .col-settings-dropdown label:hover { background: #f3f4f6; }
    .col-settings-dropdown label.mandatory { color: #9ca3af; cursor: default; }
    .col-settings-dropdown input { margin-right: 0.4rem; vertical-align: middle; }
    /* 列设置操作按钮 */
    .col-settings-actions {
      display: flex; gap: 0.35rem; margin-top: 0.5rem; padding-top: 0.4rem;
      border-top: 1px solid #e5e7eb;
    }
    /* 顶部模式：去掉上边距、改为下边框、且 sticky 跟随滚动 */
    .col-settings-actions.col-settings-actions-top {
      margin-top: 0; padding-top: 0; padding-bottom: 0.4rem; margin-bottom: 0.4rem;
      border-top: none; border-bottom: 1px solid #e5e7eb;
      position: sticky; top: 0; background: #fff; z-index: 1;
    }
    .col-settings-save-btn {
      flex: 1; padding: 0.2rem 0.4rem; font-size: 0.75rem; border: none;
      border-radius: 0.25rem; cursor: pointer; background: #3b82f6; color: #fff;
    }
    .col-settings-save-btn:hover { background: #2563eb; }
    .col-settings-cancel-btn {
      flex: 1; padding: 0.2rem 0.4rem; font-size: 0.75rem; border: 1px solid #e5e7eb;
      border-radius: 0.25rem; cursor: pointer; background: #f3f4f6; color: #6b7280;
    }
    .col-settings-cancel-btn:hover { background: #d1d5db; }
    .col-settings-btn.col-settings-dirty { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
    /* 流水排序序号输入框 */
    .tx-input-sort-order {
      width: 2.5rem; padding: 0.15rem 0.25rem; font-size: 0.75rem;
      text-align: center; border: 1px solid #e5e7eb; border-radius: 0.2rem;
      background: transparent;
    }
    .tx-input-sort-order:focus { border-color: #3b82f6; background: #fff; outline: none; }
    .tx-input-sort-order::-webkit-inner-spin-button,
    .tx-input-sort-order::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
    .tx-input-sort-order { -moz-appearance: textfield; }
    /* ===================== 工资成本页样式 ===================== */
    #page-salary input[type=number]::-webkit-inner-spin-button,
    #page-salary input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
    #page-salary input[type=number] { -moz-appearance: textfield; }
    #page-salary .salary-card { background: white; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 0.5rem; }
    #page-salary .salary-card-header { padding: 0.4rem 0.5rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; overflow-x: auto; }
    #page-salary .toolbar { display: flex; flex-wrap: nowrap; gap: 0.35rem; align-items: center; overflow-x: auto; }
    #page-salary select, #page-salary input[type="number"], #page-salary input[type="file"] { border: 1px solid #e5e7eb; border-radius: 0.25rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; outline: none; }
    #page-salary select:focus, #page-salary input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.2); }
    #page-salary .toolbar .btn,
    #page-salary .toolbar a.btn,
    #page-salary .toolbar select,
    #page-salary .toolbar label.btn { flex-shrink: 0; white-space: nowrap; width: auto; }
    #page-salary .btn { cursor: pointer; border: none; font-size: 0.875rem; border-radius: 0.25rem; padding: 0.5rem 1rem; color: white; }
    #page-salary .btn-primary { background: #3b82f6; } #page-salary .btn-primary:hover { background: #2563eb; }
    #page-salary .btn-success { background: #22c55e; } #page-salary .btn-success:hover { background: #16a34a; }
    #page-salary .btn-purple { background: #9333ea; } #page-salary .btn-purple:hover { background: #7e22ce; }
    #page-salary .btn-orange { background: #f97316; } #page-salary .btn-orange:hover { background: #ea580c; }
    #page-salary .btn-link { background: none; color: #3b82f6; padding: 0.25rem 0.5rem; }
    #page-salary .btn-link:hover { text-decoration: underline; }
    #page-salary .btn-link-success { color: #22c55e; } #page-salary .btn-link-orange { color: #f97316; } #page-salary .btn-link-gray { color: #6b7280; }
    #page-salary .table-container { max-height: 720px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    #page-salary .expand-row td { padding: 0 !important; border: none !important; background: transparent !important; }
    #page-salary .expand-card { display: flex; flex-direction: column; padding: 0; background: #f9fafb; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; font-size: 0.8125rem; line-height: 1.6; }
    #page-salary .expand-card .ec-row-data { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; padding: 0.35rem 0.75rem; align-items: center; }
    #page-salary .ec-actions-inline { display: inline-flex; align-items: center; gap: 0.25rem 0.5rem; margin-left: auto; flex-wrap: wrap; }
    #page-salary .ec-edit-field { display: inline-flex; align-items: center; gap: 0.2rem; }
    #page-salary .ec-edit-field label { font-size: 0.75rem; color: #6b7280; white-space: nowrap; }
    #page-salary .ec-edit-field .input-sm { width: 4.5rem; border: 1px solid #d1d5db; border-radius: 0.25rem; }
    #page-salary .ec-edit-field .input-sm:focus { border-color: #3b82f6; outline: none; }
    #page-salary .expand-card .ec-item { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
    #page-salary .expand-card .ec-label { color: #6b7280; font-size: 0.75rem; }
    #page-salary .expand-card .ec-val { font-weight: 500; }
    #page-salary .ec-row-remark { display: flex; align-items: flex-start; gap: 0.4rem; padding: 0.25rem 0.75rem 0.35rem; border-top: 1px dashed #e5e7eb; }
    #page-salary .ec-row-remark .ec-label { font-size: 0.75rem; color: #6b7280; white-space: nowrap; line-height: 1.8; }
    #page-salary .ec-remark-input { flex: 1; border: 1px solid #e5e7eb; border-radius: 0.25rem; padding: 0.2rem 0.5rem; font-size: 0.8125rem; resize: vertical; min-height: 1.6em; line-height: 1.5; background: #fff; outline: none; font-family: inherit; transition: border-color 0.2s; }
    #page-salary .ec-remark-input:focus { border-color: #3b82f6; }
    #page-salary .ec-remark-status { font-size: 0.7rem; color: #9ca3af; white-space: nowrap; line-height: 1.8; }
    #page-salary .btn-expand { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 0.625rem; padding: 0.15rem 0.35rem; transition: transform 0.2s, color 0.2s; }
    #page-salary .btn-expand.open { transform: rotate(90deg); color: #3b82f6; }
    #page-salary .btn-expand.has-remark { color: #f59e0b; } #page-salary .btn-expand.has-remark.open { color: #3b82f6; }
    #page-salary .btn-expand:hover { color: #2563eb; }
    #page-salary table { border-collapse: collapse; font-size: 1rem; }
    #page-salary th, #page-salary td { padding: 0.35rem 0.35rem; text-align: left; }
    #page-salary thead { background: #f9fafb; }
    #page-salary tbody tr:hover { background: #f9fafb; }
    #page-salary tbody tr.editing { background: #fef9c3; }
    #page-salary .divide-y > tr + tr { border-top: 1px solid #e5e7eb; }
    #page-salary .salary-table { table-layout: auto; width: 100%; max-width: 1200px; font-size: 1rem; }
    #page-salary .salary-table th, #page-salary .salary-table td { padding: 0.3rem 0.4rem; }
    #page-salary .salary-table thead th { position: sticky; top: 0; background-color: #f9fafb; z-index: 20; box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1); }
    #page-salary .salary-table th:first-child, #page-salary .salary-table td:first-child { position: sticky; left: 0; background-color: white; z-index: 10; box-shadow: 2px 0 2px -1px rgba(0,0,0,0.1); width: 4rem; min-width: 4rem; max-width: 5rem; white-space: nowrap; text-align: center; }
    #page-salary .salary-table thead th:first-child { z-index: 30; background-color: #f9fafb; }
    #page-salary .summary-row td { background: #f3f4f6 !important; font-weight: bold; }
    #page-salary .company-summary-table { max-width: none; table-layout: auto; }
    #page-salary .company-summary-table th, #page-salary .company-summary-table td { padding: 0.2rem 0.35rem; }
    #page-salary tbody tr:hover td:first-child { background: #f9fafb; }
    #page-salary tbody tr.editing td:first-child { background: #fef9c3; }
    #page-salary .text-red { color: #dc2626; } #page-salary .text-green { color: #16a34a; }
    #page-salary .text-blue { color: #2563eb; } #page-salary .text-purple { color: #9333ea; }
    #page-salary .text-orange { color: #ea580c; } #page-salary .text-pink { color: #db2777; }
    #page-salary .text-gray { color: #6b7280; } #page-salary .text-right { text-align: right; }
    #page-salary .text-center { text-align: center; } #page-salary .font-medium { font-weight: 500; }
    #page-salary .font-bold { font-weight: 700; } #page-salary .whitespace-nowrap { white-space: nowrap; }
    /* 工资成本弹窗（z-index 高于主站） */
    #salary-matchedModal, #salary-matchModal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; justify-content: center; align-items: center; padding: 1rem; }
    #salary-matchedModal.show, #salary-matchModal.show { display: flex; }
    #salary-matchedModal .salary-modal, #salary-matchModal .salary-modal { background: white; border-radius: 0.5rem; width: 100%; max-width: 72rem; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
    #salary-matchedModal .salary-modal-header, #salary-matchModal .salary-modal-header { padding: 0.5rem 0.75rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
    #salary-matchedModal .salary-modal-body, #salary-matchModal .salary-modal-body { padding: 0.75rem; overflow-y: auto; flex: 1; }
    #salary-matchedModal .salary-modal-footer, #salary-matchModal .salary-modal-footer { padding: 0.5rem 0.75rem; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 0.5rem; }
    .salary-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6b7280; }
    #page-salary .input-sm { width: 4rem; padding: 0.25rem 0.5rem; font-size: 0.8125rem; text-align: right; }
    #page-salary .input-sort-order { width: 2.2rem; padding: 0.15rem 0.25rem; font-size: 0.75rem; text-align: center; border: 1px solid #e5e7eb; border-radius: 0.2rem; background: transparent; }
    #page-salary .input-sort-order:focus { border-color: #3b82f6; background: #fff; outline: none; }
    #page-salary .input-match { width: 6rem; padding: 0.25rem 0.5rem; font-size: 0.8125rem; text-align: right; }
    #page-salary .match-table { font-size: 0.875rem; width: 100%; }
    #page-salary .match-table thead { position: sticky; top: 0; background: #f9fafb; z-index: 10; }
    #page-salary .match-table th, #page-salary .match-table td { padding: 0.35rem; }
    #page-salary .match-row-matched { background: #f0fdf4; border-left: 4px solid #22c55e; }
    #page-salary .match-row-selected { background: #fef9c3; }
    #page-salary .match-row-name-hit { background: #ecfdf5; }
    #page-salary .match-row-name-hit.match-row-selected { background: #fef3c7; }
    .text-black { color: #111827 !important; }
    #salary-matchedModal .matched-tx-row:hover { background: #eff6ff; }
    #page-salary .info-box { background: #f9fafb; padding: 0.5rem; border-radius: 0.25rem; margin-bottom: 0.5rem; }
    #page-salary .info-box strong { color: #1f2937; }
    #page-salary .flex { display: flex; } #page-salary .gap-4 { gap: 1rem; }
    #page-salary .mt-2 { margin-top: 0.5rem; } #page-salary .ml-2 { margin-left: 0.5rem; }
    #page-salary .file-input { display: none; } #page-salary .file-label { cursor: pointer; }
    #page-salary .company-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; overflow-x: auto; padding-bottom: 0.5rem; align-items: center; flex-wrap: wrap; }
    #page-salary .company-tab-separator { color: #d1d5db; font-size: 0.875rem; margin: 0 0.25rem; flex-shrink: 0; }
    #page-salary .company-tab-group-label { font-size: 0.75rem; color: #6b7280; font-weight: 500; flex-shrink: 0; margin-right: 0.125rem; }
    #page-salary .company-tab { flex-shrink: 0; background: white; border-radius: 0.375rem; padding: 0.35rem 0.6rem; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all 0.15s; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
    #page-salary .company-tab:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.1); transform: translateY(-1px); }
    #page-salary .company-tab.active { background: #2563eb; color: white; }
    #page-salary .company-tab-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
    #page-salary .company-tab.active .company-tab-name { color: white; }
    /* 分组折叠按钮 */
    #page-salary .company-group-btn { display: inline-flex; align-items: center; gap: 0.15rem; flex-shrink: 0; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 0.375rem; padding: 0.35rem 0.65rem; cursor: pointer; font-size: 0.85rem; color: #374151; font-weight: 500; user-select: none; transition: all 0.15s; white-space: nowrap; }
    #page-salary .company-group-btn:hover { background: #e5e7eb; border-color: #d1d5db; }
    #page-salary .company-group-btn.expanded { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
    #page-salary .company-group-btn.has-active { box-shadow: 0 0 0 2px #93c5fd; }
    #page-salary .company-group-btn .group-arrow { color: #9ca3af; font-size: 0.75rem; }
    #page-salary .company-group-btn.expanded .group-arrow { color: #2563eb; }
    #page-salary .company-detail { display: none; background: white; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; }
    #page-salary .company-detail.active { display: block; }
    #page-salary .company-detail-header { padding: 0.6rem 0.75rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
    #page-salary .company-detail-body { padding: 0; }
    #page-salary .month-tabs { display: flex; gap: 0; background: #f9fafb; border-bottom: 1px solid #e5e7eb; padding: 0 1rem; overflow-x: auto; }
    #page-salary .month-tab { padding: 0.5rem 1rem; border: none; background: none; cursor: pointer; font-size: 0.9375rem; color: #6b7280; border-bottom: 2px solid transparent; transition: all 0.15s; white-space: nowrap; }
    #page-salary .month-tab:hover { color: #2563eb; }
    #page-salary .month-tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 500; }
    #page-salary .month-summary-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 0.75rem; background: #f9fafb; border-radius: 0.375rem; font-size: 0.9375rem; margin-bottom: 0.5rem; }
    #page-salary .accordion-loading { padding: 2rem; text-align: center; color: #9ca3af; }
    #page-salary .employee-link { color: #2563eb; text-decoration: none; cursor: pointer; }
    #page-salary .employee-link:hover { text-decoration: underline; }
    #page-salary .cost-link { color: #9333ea; text-decoration: none; cursor: pointer; }
    #page-salary .cost-link:hover { text-decoration: underline; }
    #page-salary .col-settings-btn { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 0.25rem; padding: 0.3rem 0.5rem; cursor: pointer; font-size: 0.875rem; color: #6b7280; line-height: 1; }
    #page-salary .col-settings-btn:hover { background: #e5e7eb; }
    #page-salary .col-settings-btn.col-settings-dirty { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
    /* ===================== 公司工作台样式 ===================== */
    #page-company-workspace { padding: 0; max-width: 100% !important; }
    #page-company-workspace .cw-layout { display: flex; flex-direction: column; height: calc(100vh - 48px); background: #fff; }
    #page-company-workspace .cw-topbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; border-bottom: 1px solid #e5e7eb; background: #fff; flex-shrink: 0; }
    #page-company-workspace .cw-back-btn { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.75rem; border-radius: 0.375rem; color: #6b7280; font-size: 0.875rem; cursor: pointer; border: 1px solid #e5e7eb; background: #fff; transition: all 0.15s; }
    #page-company-workspace .cw-back-btn:hover { background: #f3f4f6; color: #374151; }
    #page-company-workspace .cw-company-selector { position: relative; flex: 1; max-width: 360px; }
    #page-company-workspace .cw-company-selector input { width: 100%; padding: 0.4rem 0.75rem 0.4rem 2rem; border: 1px solid #d1d5db; border-radius: 0.375rem; font-size: 0.9375rem; outline: none; transition: border-color 0.15s; }
    #page-company-workspace .cw-company-selector input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
    #page-company-workspace .cw-company-selector .cw-search-icon { position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 0.875rem; pointer-events: none; }
    #page-company-workspace .cw-company-dropdown { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.375rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-height: 320px; overflow-y: auto; z-index: 30; }
    #page-company-workspace .cw-company-dropdown .cw-dd-group { font-size: 0.75rem; color: #9ca3af; padding: 0.35rem 0.75rem 0.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
    #page-company-workspace .cw-company-dropdown .cw-dd-item { padding: 0.35rem 0.75rem; font-size: 0.875rem; cursor: pointer; color: #374151; transition: background 0.1s; }
    #page-company-workspace .cw-company-dropdown .cw-dd-item:hover { background: #eff6ff; }
    #page-company-workspace .cw-company-dropdown .cw-dd-item.active { background: #dbeafe; color: #1e40af; font-weight: 500; }
    #page-company-workspace .cw-company-dropdown .cw-dd-empty { padding: 1.5rem; text-align: center; color: #9ca3af; font-size: 0.875rem; }
    #page-company-workspace .cw-refresh-btn { padding: 0.35rem 0.75rem; border-radius: 0.375rem; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; font-size: 0.875rem; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.25rem; }
    #page-company-workspace .cw-refresh-btn:hover { background: #f3f4f6; color: #374151; }
    #page-company-workspace .cw-body { flex: 1; display: flex; overflow: hidden; }
    #page-company-workspace .cw-sidebar { width: 220px; flex-shrink: 0; background: #f0f4f8; border-right: 1px solid #e5e7eb; overflow-y: auto; padding: 0.5rem 0; }
    #page-company-workspace .cw-nav-group { margin-bottom: 0.25rem; }
    #page-company-workspace .cw-nav-group-title { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1rem 0.3rem; font-size: 0.75rem; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
    #page-company-workspace .cw-nav-group-title i { font-size: 1rem; color: #9ca3af; }
    #page-company-workspace .cw-nav-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem 0.45rem 2.25rem; font-size: 0.875rem; color: #4b5563; cursor: pointer; transition: all 0.12s; border-left: 3px solid transparent; }
    #page-company-workspace .cw-nav-item:hover { background: #e0e7ef; color: #1f2937; }
    #page-company-workspace .cw-nav-item.active { background: #fff; color: #2563eb; border-left-color: #2563eb; font-weight: 500; }
    #page-company-workspace .cw-nav-item i { font-size: 0.875rem; opacity: 0.6; }
    #page-company-workspace .cw-nav-item.active i { opacity: 1; }
    #page-company-workspace .cw-content { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; background: #f9fafb; }
    #page-company-workspace .cw-content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
    #page-company-workspace .cw-content-header h2 { font-size: 1.125rem; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 0.5rem; }
    #page-company-workspace .cw-card { background: #fff; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f3f4f6; }
    #page-company-workspace .cw-card-body { padding: 1rem; }
    #page-company-workspace .cw-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
    #page-company-workspace .cw-info-item { display: flex; flex-direction: column; gap: 0.15rem; }
    #page-company-workspace .cw-info-label { font-size: 0.75rem; color: #9ca3af; }
    #page-company-workspace .cw-info-value { font-size: 0.9375rem; color: #1f2937; font-weight: 500; }
    #page-company-workspace .cw-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
    #page-company-workspace .cw-table th { padding: 0.5rem 0.75rem; text-align: left; font-weight: 600; color: #6b7280; border-bottom: 2px solid #e5e7eb; background: #f9fafb; white-space: nowrap; }
    #page-company-workspace .cw-table td { padding: 0.45rem 0.75rem; border-bottom: 1px solid #f3f4f6; color: #374151; }
    #page-company-workspace .cw-table tbody tr:hover { background: #f9fafb; }
    #page-company-workspace .cw-table .text-right { text-align: right; }
    #page-company-workspace .cw-table .text-green { color: #16a34a; }
    #page-company-workspace .cw-table .text-red { color: #dc2626; }
    #page-company-workspace .cw-table .text-blue { color: #2563eb; }
    #page-company-workspace .cw-table .text-gray { color: #9ca3af; }
    #page-company-workspace .cw-empty { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
    #page-company-workspace .cw-empty i { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
    #page-company-workspace .cw-loading { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
    #page-company-workspace .cw-loading .spinner { width: 28px; height: 28px; border: 3px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: cw-spin 0.7s linear infinite; margin: 0 auto 0.5rem; }
    @keyframes cw-spin { to { transform: rotate(360deg); } }
    #page-company-workspace .cw-tag { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
    #page-company-workspace .cw-tag-green { background: #dcfce7; color: #16a34a; }
    #page-company-workspace .cw-tag-gray { background: #f3f4f6; color: #6b7280; }
    #page-company-workspace .cw-tag-blue { background: #dbeafe; color: #2563eb; }
    #page-company-workspace .cw-tag-red { background: #fee2e2; color: #dc2626; }
    /* 表格行内操作按钮 */
    #page-company-workspace .cw-row-btn { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.2rem 0.55rem; border-radius: 0.25rem; font-size: 0.7rem; cursor: pointer; white-space: nowrap; transition: background 0.12s, border-color 0.12s; line-height: 1.4; }
    #page-company-workspace .cw-row-btn i { font-size: 0.8125rem; }
    #page-company-workspace .cw-row-btn + .cw-row-btn { margin-left: 0.3rem; }
    #page-company-workspace .cw-row-btn-blue { background: #fff; border: 1px solid #bfdbfe; color: #2563eb; }
    #page-company-workspace .cw-row-btn-blue:hover { background: #eff6ff; border-color: #93c5fd; }
    #page-company-workspace .cw-row-btn-green { background: #fff; border: 1px solid #a7f3d0; color: #059669; }
    #page-company-workspace .cw-row-btn-green:hover { background: #ecfdf5; border-color: #6ee7b7; }
    #page-company-workspace .cw-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; }
    #page-company-workspace .cw-file-card { position: relative; border-radius: 0.375rem; overflow: hidden; cursor: pointer; transition: box-shadow 0.15s; }
    #page-company-workspace .cw-file-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    #page-company-workspace .cw-file-card .cw-file-thumb { position: relative; height: 48px; background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    #page-company-workspace .cw-file-card .cw-file-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
    #page-company-workspace .cw-file-card .cw-file-thumb > i { font-size: 1.75rem; }
    #page-company-workspace .cw-file-card .cw-file-name { padding: 0.2rem 0.35rem; font-size: 0.6875rem; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
    #page-company-workspace .cw-file-card .cw-file-card-meta { padding: 0 0.35rem 0.2rem; font-size: 0.625rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-company-workspace .cw-file-card .cw-file-card-overlay { position: absolute; top: 0; left: 0; right: 0; height: 48px; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; gap: 0.4rem; }
    #page-company-workspace .cw-file-card:hover .cw-file-card-overlay { display: flex; }
    #page-company-workspace .cw-file-card .cw-file-card-overlay i { font-size: 0.95rem; color: #fff; cursor: pointer; padding: 0.2rem; border-radius: 0.25rem; transition: background 0.12s; }
    #page-company-workspace .cw-file-card .cw-file-card-overlay i:hover { background: rgba(255,255,255,0.2); }
    /* 大缩略图模式 */
    #page-company-workspace .cw-thumb-large .cw-file-card .cw-file-thumb { height: 96px; }
    #page-company-workspace .cw-thumb-large .cw-file-card .cw-file-card-overlay { height: 96px; }
    #page-company-workspace .cw-thumb-large { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    #page-company-workspace .cw-doc-toolbar-btn.active { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
    #page-company-workspace .cw-file-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; border-bottom: 1px solid #f3f4f6; }
    #page-company-workspace .cw-file-row:last-child { border-bottom: none; }
    #page-company-workspace .cw-file-row:hover { background: #f9fafb; }
    #page-company-workspace .cw-file-row .cw-file-info { flex: 1; min-width: 0; }
    #page-company-workspace .cw-file-row .cw-file-info .cw-file-title { font-size: 0.875rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color 0.12s; }
    #page-company-workspace .cw-file-row .cw-file-info .cw-file-title:hover { color: #2563eb; text-decoration: underline; }
    #page-company-workspace .cw-file-row .cw-file-info .cw-file-meta { font-size: 0.75rem; color: #9ca3af; margin-top: 0.1rem; }
    #page-company-workspace .cw-file-row .cw-file-actions { flex-shrink: 0; margin-left: 0.75rem; }
    #page-company-workspace .cw-file-row .cw-file-actions a { font-size: 0.75rem; color: #2563eb; margin-left: 0.5rem; }
    #page-company-workspace .cw-file-row .cw-file-actions a:hover { text-decoration: underline; }
    #page-company-workspace .cw-nav-item { position: relative; }
    #page-company-workspace .cw-nav-item .cw-folder-actions { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); display: flex !important; opacity: 0; pointer-events: none; transition: opacity 0.1s; gap: 0.25rem; align-items: center; background: inherit; }
    #page-company-workspace .cw-nav-item:hover .cw-folder-actions { opacity: 1; pointer-events: auto; }
    #page-company-workspace .cw-month-select { padding: 0.3rem 0.5rem; border: 1px solid #d1d5db; border-radius: 0.25rem; font-size: 0.875rem; }
    #page-company-workspace .cw-summary-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding: 0.6rem 0.75rem; background: #eff6ff; border-radius: 0.375rem; margin-bottom: 0.75rem; font-size: 0.875rem; }
    #page-company-workspace .cw-summary-bar .cw-summary-item { display: flex; align-items: center; gap: 0.25rem; }
    #page-company-workspace .cw-summary-bar .cw-summary-label { color: #6b7280; }
    #page-company-workspace .cw-summary-bar .cw-summary-val { font-weight: 600; color: #1e40af; }
    #page-company-workspace .cw-company-list { padding: 1.25rem; overflow-y: auto; height: 100%; }
    #page-company-workspace .cw-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: nowrap; }
    #page-company-workspace .cw-list-header h1 { font-size: 1.5rem; font-weight: 700; color: #1e293b; }
    #page-company-workspace .cw-list-search { position: relative; width: 320px; }
    #page-company-workspace .cw-list-search input { width: 100%; padding: 0.5rem 0.75rem 0.5rem 2.25rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.9375rem; outline: none; }
    #page-company-workspace .cw-list-search input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
    #page-company-workspace .cw-list-search i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 1rem; }
    #page-company-workspace .cw-list-groups { display: flex; flex-direction: column; gap: 1.5rem; }
    #page-company-workspace .cw-list-group-title { font-size: 0.875rem; font-weight: 600; color: #6b7280; margin-bottom: 0.6rem; padding-left: 0.25rem; display: flex; align-items: center; gap: 0.4rem; }
    #page-company-workspace .cw-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
    #page-company-workspace .cw-company-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 1rem 1.25rem; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 0.75rem; }
    #page-company-workspace .cw-company-card:hover { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(59,130,246,0.1); transform: translateY(-1px); }
    #page-company-workspace .cw-company-card .cw-card-icon { width: 40px; height: 40px; border-radius: 0.375rem; background: #eff6ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    #page-company-workspace .cw-company-card .cw-card-icon i { font-size: 1.25rem; color: #2563eb; }
    #page-company-workspace .cw-company-card .cw-card-info { flex: 1; min-width: 0; }
    #page-company-workspace .cw-company-card .cw-card-name { font-size: 0.9375rem; font-weight: 600; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-company-workspace .cw-company-card .cw-card-meta { font-size: 0.75rem; color: #9ca3af; margin-top: 0.15rem; }
    #page-company-workspace .cw-company-card .cw-card-arrow { color: #d1d5db; font-size: 1.25rem; flex-shrink: 0; transition: color 0.15s; }
    #page-company-workspace .cw-company-card:hover .cw-card-arrow { color: #2563eb; }
    /* ===================== 文件管理左右分栏 ===================== */
    #page-company-workspace .cw-doc-layout { display: flex; gap: 0.75rem; align-items: flex-start; }
    #page-company-workspace .cw-doc-sidebar { width: 200px; flex-shrink: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow-y: auto; max-height: calc(100vh - 160px); position: sticky; top: 0; }
    #page-company-workspace .cw-doc-folder-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #4b5563; cursor: pointer; transition: all 0.12s; border-left: 3px solid transparent; }
    #page-company-workspace .cw-doc-folder-item:hover { background: #f3f4f6; color: #1f2937; }
    #page-company-workspace .cw-doc-folder-item.active { background: #eff6ff; color: #2563eb; border-left-color: #2563eb; font-weight: 500; }
    #page-company-workspace .cw-doc-folder-item i { font-size: 0.875rem; color: #d97706; flex-shrink: 0; }
    #page-company-workspace .cw-doc-folder-item.active i { color: #2563eb; }
    #page-company-workspace .cw-doc-folder-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-company-workspace .cw-doc-count { flex-shrink: 0; font-size: 0.75rem; color: #9ca3af; background: #f3f4f6; padding: 0.05rem 0.4rem; border-radius: 9999px; }
    #page-company-workspace .cw-doc-folder-item.active .cw-doc-count { background: #dbeafe; color: #2563eb; }
    #page-company-workspace .cw-doc-main { flex: 1; min-width: 0; }
    #page-company-workspace .cw-doc-folder-title { font-size: 0.9375rem; font-weight: 600; color: #374151; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
    #page-company-workspace .cw-doc-folder-title i { color: #d97706; }
    #page-company-workspace .cw-doc-actions { margin-top: 0.5rem; border-top: 1px dashed #e5e7eb; }
    #page-company-workspace .cw-doc-add-folder { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.75rem; font-size: 0.8125rem; color: #6b7280; cursor: pointer; transition: all 0.12s; }
    #page-company-workspace .cw-doc-add-folder:hover { color: #2563eb; background: #eff6ff; }
    #page-company-workspace .cw-doc-add-folder i { font-size: 0.875rem; }
    #page-company-workspace .cw-doc-toolbar { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
    #page-company-workspace .cw-doc-toolbar-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; background: #fff; color: #4b5563; font-size: 0.875rem; cursor: pointer; transition: all 0.12s; }
    #page-company-workspace .cw-doc-toolbar-btn:hover { background: #f3f4f6; color: #1f2937; }
    #page-company-workspace .cw-doc-toolbar-btn i { font-size: 0.875rem; }
    /* ===================== 工作台 Tab 栏样式 ===================== */
    .cw-tabbar { display: flex; align-items: center; justify-content: space-between; height: 48px; background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 40; padding: 0 1rem; }
    .cw-tabbar-left { display: flex; align-items: center; gap: 0.25rem; }
    .cw-tabbar .cw-tab { display: flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; font-size: 0.9375rem; font-weight: 500; color: #6b7280; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; border-radius: 0.375rem 0.375rem 0 0; }
    .cw-tabbar .cw-tab:hover { color: #2563eb; background: #eff6ff; }
    .cw-tabbar .cw-tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
    .cw-tabbar .cw-tab i { font-size: 1.125rem; }
    .cw-tabbar-right { display: flex; align-items: center; gap: 0.75rem; }
    .cw-tabbar-user { font-size: 0.875rem; color: #6b7280; cursor: pointer; border: none; background: none; display: flex; align-items: center; gap: 0.25rem; }
    .cw-tabbar-user:hover { color: #2563eb; }
    .cw-tabbar-icon-btn { font-size: 1.125rem; color: #9ca3af; cursor: pointer; border: none; background: none; padding: 0.25rem; }
    .cw-tabbar-icon-btn:hover { color: #ef4444; }
    .cw-tabbar-oldsite { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: #6b7280; cursor: pointer; text-decoration: none; padding: 0.25rem 0.5rem; border-radius: 0.25rem; transition: all 0.15s; }
    .cw-tabbar-oldsite:hover { color: #2563eb; background: #eff6ff; }

    /* ===================== 全局文件页面 ===================== */
    #page-files { padding: 0; max-width: 100% !important; }
    #page-files .gf-layout { display: flex; height: calc(100vh - 48px); background: #f9fafb; }
    #page-files .gf-sidebar { width: 260px; flex-shrink: 0; background: #fff; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; overflow: hidden; }
    #page-files .gf-tree-header { padding: 0.875rem 1rem; border-bottom: 1px solid #e5e7eb; }
    #page-files .gf-tree-title { font-size: 1rem; font-weight: 600; color: #1f2937; margin: 0; display: flex; align-items: center; gap: 0.4rem; }
    #page-files .gf-group-tabs { display: flex; border-bottom: 1px solid #e5e7eb; }
    #page-files .gf-group-tab { flex: 1; padding: 0.6rem 0.5rem; font-size: 0.8125rem; font-weight: 500; color: #6b7280; border: none; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.3rem; }
    #page-files .gf-group-tab:hover { color: #2563eb; background: #f9fafb; }
    #page-files .gf-group-tab.active { color: #2563eb; border-bottom: 2px solid #2563eb; background: #eff6ff; }
    #page-files .gf-tree-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
    #page-files .gf-tree { list-style: none; margin: 0; padding: 0; }
    #page-files .gf-tree-empty { padding: 1.5rem 1rem; text-align: center; color: #9ca3af; font-size: 0.875rem; }
    #page-files .gf-tree-loading { padding: 1.5rem 1rem; text-align: center; color: #9ca3af; }
    #page-files .gf-tree-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; font-size: 0.875rem; color: #4b5563; cursor: pointer; transition: all 0.12s; border-left: 3px solid transparent; }
    #page-files .gf-tree-item:hover { background: #f3f4f6; color: #1f2937; }
    #page-files .gf-tree-item.active { background: #eff6ff; color: #2563eb; border-left-color: #2563eb; font-weight: 500; }
    #page-files .gf-tree-icon { width: 1.25rem; text-align: center; flex-shrink: 0; }
    #page-files .gf-tree-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-files .gf-tree-company { margin-bottom: 0.25rem; }
    #page-files .gf-tree-company-header { display: flex; align-items: center; gap: 0.35rem; padding: 0.55rem 1rem; font-size: 0.875rem; color: #374151; cursor: pointer; font-weight: 500; }
    #page-files .gf-tree-company-header:hover { background: #f3f4f6; }
    #page-files .gf-tree-toggle { width: 1rem; text-align: center; flex-shrink: 0; color: #9ca3af; }
    #page-files .gf-tree-children { list-style: none; margin: 0; padding: 0; }
    #page-files .gf-tree-company.collapsed .gf-tree-children { display: none; }
    #page-files .gf-content { flex: 1; min-width: 0; overflow-y: auto; padding: 1rem 1.25rem; }
    #page-files .gf-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; gap: 0.75rem; flex-wrap: wrap; }
    #page-files .gf-toolbar-left { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    #page-files .gf-toolbar-right { display: flex; gap: 0.25rem; }
    #page-files .gf-toolbar-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; background: #fff; color: #4b5563; font-size: 0.875rem; cursor: pointer; transition: all 0.12s; }
    #page-files .gf-toolbar-btn:hover { background: #f3f4f6; color: #1f2937; }
    #page-files .gf-toolbar-btn.active { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
    #page-files .gf-view-btn { padding: 0.45rem 0.65rem; }
    #page-files .gf-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; font-size: 0.8125rem; color: #6b7280; }
    #page-files .gf-bc-item { cursor: pointer; color: #2563eb; }
    #page-files .gf-bc-item:hover { text-decoration: underline; }
    #page-files .gf-bc-sep { color: #d1d5db; }
    #page-files .gf-bc-current { color: #374151; font-weight: 500; }
    #page-files .gf-section-title { font-size: 0.8125rem; font-weight: 600; color: #6b7280; margin: 0.75rem 0 0.5rem; display: flex; align-items: center; gap: 0.35rem; }
    #page-files .gf-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
    #page-files .gf-folder-card { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.75rem 0.5rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; cursor: pointer; transition: all 0.12s; }
    #page-files .gf-folder-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(59,130,246,0.1); }
    #page-files .gf-folder-icon { color: #d97706; font-size: 2rem; }
    #page-files .gf-folder-name { font-size: 0.8125rem; color: #374151; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    #page-files .gf-file-list { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; }
    #page-files .gf-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.75rem; }
    #page-files .gf-file-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background 0.12s; }
    #page-files .gf-file-row:last-child { border-bottom: none; }
    #page-files .gf-file-row:hover { background: #f9fafb; }
    #page-files .gf-file-icon { flex-shrink: 0; }
    #page-files .gf-file-info { flex: 1; min-width: 0; }
    #page-files .gf-file-title { font-size: 0.875rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-files .gf-file-meta { font-size: 0.75rem; color: #9ca3af; margin-top: 0.15rem; }
    #page-files .gf-file-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
    #page-files .gf-file-actions a { color: #2563eb; font-size: 0.875rem; text-decoration: none; }
    #page-files .gf-file-actions a:hover { color: #1d4ed8; }
    #page-files .gf-file-actions a.gf-action-danger { color: #ef4444; }
    #page-files .gf-file-actions a.gf-action-danger:hover { color: #dc2626; }
    #page-files .gf-file-card { background: #fff; border-radius: 0.5rem; overflow: hidden; cursor: pointer; transition: all 0.12s; }
    #page-files .gf-file-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(59,130,246,0.1); }
    #page-files .gf-file-card-thumb { position: relative; height: 48px; background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    #page-files .gf-file-card-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
    #page-files .gf-file-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; gap: 0.5rem; }
    #page-files .gf-file-card:hover .gf-file-card-overlay { display: flex; }
    #page-files .gf-file-card-overlay i { font-size: 1rem; color: #fff; cursor: pointer; padding: 0.25rem; border-radius: 0.25rem; transition: background 0.12s; }
    #page-files .gf-file-card-overlay i:hover { background: rgba(255,255,255,0.2); }
    #page-files .gf-file-card-overlay i.gf-action-danger:hover { background: rgba(239,68,68,0.25); }
    #page-files .gf-file-card-name { padding: 0.35rem 0.5rem; font-size: 0.75rem; color: #374151; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
    #page-files .gf-file-card-meta { padding: 0 0.5rem 0.35rem; font-size: 0.6875rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-files .gf-empty { text-align: center; padding: 4rem 1rem; color: #9ca3af; }
    #page-files .gf-empty i { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
    #page-files .gf-loading { text-align: center; padding: 4rem 1rem; color: #9ca3af; }
    #page-files .gf-loading .spinner { width: 28px; height: 28px; border: 3px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: gf-spin 0.7s linear infinite; margin: 0 auto 0.5rem; }
    @keyframes gf-spin { to { transform: rotate(360deg); } }

    /* ===================== 人员管理页 - 员工档案（嵌入文件管理器） ===================== */
    #employee-panel-archives { padding: 0; overflow: visible; }
    #employee-panel-archives .efm-layout { display: flex; height: calc(100vh - 200px); min-height: 420px; background: #f9fafb; border-radius: 0.5rem; overflow: hidden; }
    #employee-panel-archives .efm-sidebar { width: 220px; flex-shrink: 0; background: #fff; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; overflow: hidden; }
    #employee-panel-archives .efm-tree-header { padding: 0.75rem 0.875rem; border-bottom: 1px solid #e5e7eb; }
    #employee-panel-archives .efm-tree-title { font-size: 0.9375rem; font-weight: 600; color: #1f2937; margin: 0; display: flex; align-items: center; gap: 0.35rem; }
    #employee-panel-archives .efm-tree-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
    #employee-panel-archives .efm-tree { list-style: none; margin: 0; padding: 0; }
    #employee-panel-archives .efm-tree-empty { padding: 1.25rem 0.75rem; text-align: center; color: #9ca3af; font-size: 0.8125rem; }
    #employee-panel-archives .efm-tree-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.875rem; font-size: 0.8125rem; color: #4b5563; cursor: pointer; transition: all 0.12s; border-left: 3px solid transparent; }
    #employee-panel-archives .efm-tree-item:hover { background: #f3f4f6; color: #1f2937; }
    #employee-panel-archives .efm-tree-item.active { background: #eff6ff; color: #2563eb; border-left-color: #2563eb; font-weight: 500; }
    #employee-panel-archives .efm-tree-icon { width: 1.1rem; text-align: center; flex-shrink: 0; }
    #employee-panel-archives .efm-tree-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #employee-panel-archives .efm-tree-company { margin-bottom: 0.2rem; }
    #employee-panel-archives .efm-tree-company-header { display: flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.875rem; font-size: 0.8125rem; color: #374151; cursor: pointer; font-weight: 500; }
    #employee-panel-archives .efm-tree-company-header:hover { background: #f3f4f6; }
    #employee-panel-archives .efm-tree-toggle { width: 0.9rem; text-align: center; flex-shrink: 0; color: #9ca3af; }
    #employee-panel-archives .efm-tree-children { list-style: none; margin: 0; padding: 0; }
    #employee-panel-archives .efm-tree-company.collapsed .efm-tree-children { display: none; }
    #employee-panel-archives .efm-content { flex: 1; min-width: 0; overflow-y: auto; padding: 0.875rem 1rem; }
    #employee-panel-archives .efm-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; gap: 0.5rem; flex-wrap: wrap; }
    #employee-panel-archives .efm-toolbar-left { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    #employee-panel-archives .efm-toolbar-right { display: flex; gap: 0.2rem; }
    #employee-panel-archives .efm-toolbar-btn { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.4rem 0.7rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; background: #fff; color: #4b5563; font-size: 0.8125rem; cursor: pointer; transition: all 0.12s; }
    #employee-panel-archives .efm-toolbar-btn:hover { background: #f3f4f6; color: #1f2937; }
    #employee-panel-archives .efm-toolbar-btn.active { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
    #employee-panel-archives .efm-view-btn { padding: 0.4rem 0.55rem; }
    #employee-panel-archives .efm-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; font-size: 0.75rem; color: #6b7280; }
    #employee-panel-archives .efm-bc-item { cursor: pointer; color: #2563eb; }
    #employee-panel-archives .efm-bc-item:hover { text-decoration: underline; }
    #employee-panel-archives .efm-bc-sep { color: #d1d5db; }
    #employee-panel-archives .efm-bc-current { color: #374151; font-weight: 500; }
    #employee-panel-archives .efm-section-title { font-size: 0.75rem; font-weight: 600; color: #6b7280; margin: 0.6rem 0 0.4rem; display: flex; align-items: center; gap: 0.3rem; }
    #employee-panel-archives .efm-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.6rem; margin-bottom: 0.6rem; }
    #employee-panel-archives .efm-folder-card { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.6rem 0.4rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; cursor: pointer; transition: all 0.12s; }
    #employee-panel-archives .efm-folder-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(59,130,246,0.1); }
    #employee-panel-archives .efm-folder-icon { color: #d97706; font-size: 1.75rem; }
    #employee-panel-archives .efm-folder-name { font-size: 0.75rem; color: #374151; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    #employee-panel-archives .efm-file-list { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; }
    #employee-panel-archives .efm-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.6rem; }
    #employee-panel-archives .efm-file-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background 0.12s; }
    #employee-panel-archives .efm-file-row:last-child { border-bottom: none; }
    #employee-panel-archives .efm-file-row:hover { background: #f9fafb; }
    #employee-panel-archives .efm-file-icon { flex-shrink: 0; }
    #employee-panel-archives .efm-file-info { flex: 1; min-width: 0; }
    #employee-panel-archives .efm-file-title { font-size: 0.8125rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #employee-panel-archives .efm-file-meta { font-size: 0.6875rem; color: #9ca3af; margin-top: 0.1rem; }
    #employee-panel-archives .efm-file-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
    #employee-panel-archives .efm-file-actions a { color: #2563eb; font-size: 0.8125rem; text-decoration: none; }
    #employee-panel-archives .efm-file-actions a:hover { color: #1d4ed8; }
    #employee-panel-archives .efm-file-actions a.efm-action-danger { color: #ef4444; }
    #employee-panel-archives .efm-file-actions a.efm-action-danger:hover { color: #dc2626; }
    #employee-panel-archives .efm-file-card { background: #fff; border-radius: 0.5rem; overflow: hidden; cursor: pointer; transition: all 0.12s; }
    #employee-panel-archives .efm-file-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(59,130,246,0.1); }
    #employee-panel-archives .efm-file-card-thumb { position: relative; height: 48px; background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    #employee-panel-archives .efm-file-card-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
    #employee-panel-archives .efm-file-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; gap: 0.4rem; }
    #employee-panel-archives .efm-file-card:hover .efm-file-card-overlay { display: flex; }
    #employee-panel-archives .efm-file-card-overlay i { font-size: 0.9rem; color: #fff; cursor: pointer; padding: 0.2rem; border-radius: 0.25rem; transition: background 0.12s; }
    #employee-panel-archives .efm-file-card-overlay i:hover { background: rgba(255,255,255,0.2); }
    #employee-panel-archives .efm-file-card-overlay i.efm-action-danger:hover { background: rgba(239,68,68,0.25); }
    #employee-panel-archives .efm-file-card-name { padding: 0.3rem 0.45rem; font-size: 0.6875rem; color: #374151; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
    #employee-panel-archives .efm-file-card-meta { padding: 0 0.45rem 0.3rem; font-size: 0.625rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #employee-panel-archives .efm-empty { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
    #employee-panel-archives .efm-empty i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
    #employee-panel-archives .efm-loading { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
    #employee-panel-archives .efm-loading .spinner { width: 24px; height: 24px; border: 3px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: efm-spin 0.7s linear infinite; margin: 0 auto 0.5rem; }
    @keyframes efm-spin { to { transform: rotate(360deg); } }

    /* ===================== 全局文件页面 ===================== */
    #page-files { padding: 0; max-width: 100% !important; }
    #page-files .gf-layout { display: flex; height: calc(100vh - 48px); background: #f9fafb; }
    #page-files .gf-sidebar { width: 260px; flex-shrink: 0; background: #fff; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; overflow: hidden; }
    #page-files .gf-tree-header { padding: 0.875rem 1rem; border-bottom: 1px solid #e5e7eb; }
    #page-files .gf-tree-title { font-size: 1rem; font-weight: 600; color: #1f2937; margin: 0; display: flex; align-items: center; gap: 0.4rem; }
    #page-files .gf-group-tabs { display: flex; border-bottom: 1px solid #e5e7eb; }
    #page-files .gf-group-tab { flex: 1; padding: 0.6rem 0.5rem; font-size: 0.8125rem; font-weight: 500; color: #6b7280; border: none; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.3rem; }
    #page-files .gf-group-tab:hover { color: #2563eb; background: #f9fafb; }
    #page-files .gf-group-tab.active { color: #2563eb; border-bottom: 2px solid #2563eb; background: #eff6ff; }
    #page-files .gf-tree-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
    #page-files .gf-tree { list-style: none; margin: 0; padding: 0; }
    #page-files .gf-tree-empty { padding: 1.5rem 1rem; text-align: center; color: #9ca3af; font-size: 0.875rem; }
    #page-files .gf-tree-loading { padding: 1.5rem 1rem; text-align: center; color: #9ca3af; }
    #page-files .gf-tree-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; font-size: 0.875rem; color: #4b5563; cursor: pointer; transition: all 0.12s; border-left: 3px solid transparent; }
    #page-files .gf-tree-item:hover { background: #f3f4f6; color: #1f2937; }
    #page-files .gf-tree-item.active { background: #eff6ff; color: #2563eb; border-left-color: #2563eb; font-weight: 500; }
    #page-files .gf-tree-icon { width: 1.25rem; text-align: center; flex-shrink: 0; }
    #page-files .gf-tree-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-files .gf-tree-company { margin-bottom: 0.25rem; }
    #page-files .gf-tree-company-header { display: flex; align-items: center; gap: 0.35rem; padding: 0.55rem 1rem; font-size: 0.875rem; color: #374151; cursor: pointer; font-weight: 500; }
    #page-files .gf-tree-company-header:hover { background: #f3f4f6; }
    #page-files .gf-tree-toggle { width: 1rem; text-align: center; flex-shrink: 0; color: #9ca3af; }
    #page-files .gf-tree-children { list-style: none; margin: 0; padding: 0; }
    #page-files .gf-tree-company.collapsed .gf-tree-children { display: none; }
    #page-files .gf-content { flex: 1; min-width: 0; overflow-y: auto; padding: 1rem 1.25rem; }
    #page-files .gf-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; gap: 0.75rem; flex-wrap: wrap; }
    #page-files .gf-toolbar-left { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    #page-files .gf-toolbar-right { display: flex; gap: 0.25rem; }
    #page-files .gf-toolbar-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; background: #fff; color: #4b5563; font-size: 0.875rem; cursor: pointer; transition: all 0.12s; }
    #page-files .gf-toolbar-btn:hover { background: #f3f4f6; color: #1f2937; }
    #page-files .gf-toolbar-btn.active { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
    #page-files .gf-view-btn { padding: 0.45rem 0.65rem; }
    #page-files .gf-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; font-size: 0.8125rem; color: #6b7280; }
    #page-files .gf-bc-item { cursor: pointer; color: #2563eb; }
    #page-files .gf-bc-item:hover { text-decoration: underline; }
    #page-files .gf-bc-sep { color: #d1d5db; }
    #page-files .gf-bc-current { color: #374151; font-weight: 500; }
    #page-files .gf-section-title { font-size: 0.8125rem; font-weight: 600; color: #6b7280; margin: 0.75rem 0 0.5rem; display: flex; align-items: center; gap: 0.35rem; }
    #page-files .gf-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
    #page-files .gf-folder-card { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.75rem 0.5rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; cursor: pointer; transition: all 0.12s; }
    #page-files .gf-folder-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(59,130,246,0.1); }
    #page-files .gf-folder-icon { color: #d97706; font-size: 2rem; }
    #page-files .gf-folder-name { font-size: 0.8125rem; color: #374151; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    #page-files .gf-file-list { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; }
    #page-files .gf-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.75rem; }
    #page-files .gf-file-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background 0.12s; }
    #page-files .gf-file-row:last-child { border-bottom: none; }
    #page-files .gf-file-row:hover { background: #f9fafb; }
    #page-files .gf-file-icon { flex-shrink: 0; }
    #page-files .gf-file-info { flex: 1; min-width: 0; }
    #page-files .gf-file-title { font-size: 0.875rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-files .gf-file-meta { font-size: 0.75rem; color: #9ca3af; margin-top: 0.15rem; }
    #page-files .gf-file-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
    #page-files .gf-file-actions a { color: #2563eb; font-size: 0.875rem; text-decoration: none; }
    #page-files .gf-file-actions a:hover { color: #1d4ed8; }
    #page-files .gf-file-actions a.gf-action-danger { color: #ef4444; }
    #page-files .gf-file-actions a.gf-action-danger:hover { color: #dc2626; }
    #page-files .gf-file-card { background: #fff; border-radius: 0.5rem; overflow: hidden; cursor: pointer; transition: all 0.12s; }
    #page-files .gf-file-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(59,130,246,0.1); }
    #page-files .gf-file-card-thumb { position: relative; height: 48px; background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    #page-files .gf-file-card-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
    #page-files .gf-file-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; gap: 0.5rem; }
    #page-files .gf-file-card:hover .gf-file-card-overlay { display: flex; }
    #page-files .gf-file-card-overlay i { font-size: 1rem; color: #fff; cursor: pointer; padding: 0.25rem; border-radius: 0.25rem; transition: background 0.12s; }
    #page-files .gf-file-card-overlay i:hover { background: rgba(255,255,255,0.2); }
    #page-files .gf-file-card-overlay i.gf-action-danger:hover { background: rgba(239,68,68,0.25); }
    #page-files .gf-file-card-name { padding: 0.35rem 0.5rem; font-size: 0.75rem; color: #374151; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
    #page-files .gf-file-card-meta { padding: 0 0.5rem 0.35rem; font-size: 0.6875rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-files .gf-empty { text-align: center; padding: 4rem 1rem; color: #9ca3af; }
    #page-files .gf-empty i { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
    #page-files .gf-loading { text-align: center; padding: 4rem 1rem; color: #9ca3af; }
    #page-files .gf-loading .spinner { width: 28px; height: 28px; border: 3px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: gf-spin 0.7s linear infinite; margin: 0 auto 0.5rem; }
    @keyframes gf-spin { to { transform: rotate(360deg); } }

    /* ===== FileBrowser 公共组件在 #page-files 下的样式（与 #page-company-workspace 对齐） ===== */
    #page-files .cw-card { background: #fff; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f3f4f6; }
    #page-files .cw-empty { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
    #page-files .cw-empty i { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
    #page-files .cw-loading { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
    #page-files .cw-loading .spinner { width: 28px; height: 28px; border: 3px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: cw-spin 0.7s linear infinite; margin: 0 auto 0.5rem; }
    #page-files .cw-doc-toolbar { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
    #page-files .cw-doc-toolbar-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; background: #fff; color: #4b5563; font-size: 0.875rem; cursor: pointer; transition: all 0.12s; }
    #page-files .cw-doc-toolbar-btn:hover { background: #f3f4f6; color: #1f2937; }
    #page-files .cw-doc-toolbar-btn i { font-size: 0.875rem; }
    #page-files .cw-doc-toolbar-btn.active { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
    #page-files .cw-file-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; border-bottom: 1px solid #f3f4f6; }
    #page-files .cw-file-row:last-child { border-bottom: none; }
    #page-files .cw-file-row:hover { background: #f9fafb; }
    #page-files .cw-file-row .cw-file-info { flex: 1; min-width: 0; }
    #page-files .cw-file-row .cw-file-info .cw-file-title { font-size: 0.875rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color 0.12s; }
    #page-files .cw-file-row .cw-file-info .cw-file-title:hover { color: #2563eb; text-decoration: underline; }
    #page-files .cw-file-row .cw-file-info .cw-file-meta { font-size: 0.75rem; color: #9ca3af; margin-top: 0.1rem; }
    #page-files .cw-file-row .cw-file-actions { flex-shrink: 0; margin-left: 0.75rem; }
    #page-files .cw-file-row .cw-file-actions a { font-size: 0.75rem; color: #2563eb; margin-left: 0.5rem; }
    #page-files .cw-file-row .cw-file-actions a:hover { text-decoration: underline; }
    #page-files .cw-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; }
    #page-files .cw-file-card { position: relative; border-radius: 0.375rem; overflow: hidden; cursor: pointer; transition: box-shadow 0.15s; }
    #page-files .cw-file-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    #page-files .cw-file-card .cw-file-thumb { position: relative; height: 48px; background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    #page-files .cw-file-card .cw-file-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
    #page-files .cw-file-card .cw-file-thumb > i { font-size: 1.75rem; }
    #page-files .cw-file-card .cw-file-name { padding: 0.2rem 0.35rem; font-size: 0.6875rem; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
    #page-files .cw-file-card .cw-file-card-meta { padding: 0 0.35rem 0.2rem; font-size: 0.625rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-files .cw-file-card .cw-file-card-overlay { position: absolute; top: 0; left: 0; right: 0; height: 48px; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; gap: 0.4rem; }
    #page-files .cw-file-card:hover .cw-file-card-overlay { display: flex; }
    #page-files .cw-file-card .cw-file-card-overlay i { font-size: 0.95rem; color: #fff; cursor: pointer; padding: 0.2rem; border-radius: 0.25rem; transition: background 0.12s; }
    #page-files .cw-file-card .cw-file-card-overlay i:hover { background: rgba(255,255,255,0.2); }
    /* 大缩略图模式 */
    #page-files .cw-thumb-large .cw-file-card .cw-file-thumb { height: 96px; }
    #page-files .cw-thumb-large .cw-file-card .cw-file-card-overlay { height: 96px; }
    #page-files .cw-thumb-large { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    #page-files .gf-section-title { font-size: 0.8125rem; font-weight: 600; color: #6b7280; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.35rem; }
    #page-files .gf-folder-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; cursor: pointer; transition: box-shadow 0.15s; }
    #page-files .gf-folder-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    #page-files .gf-employee-group { margin-bottom: 0.75rem; }
    #page-files .gf-employee-group-header { display: flex; align-items: center; padding: 0.35rem 0; font-weight: 600; font-size: 0.875rem; color: #374151; }

    /* ===== 应收款项目资料弹窗 FileBrowser 样式 ===== */
    #receivable-docs-modal .cw-card { background: #fff; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f3f4f6; }
    #receivable-docs-modal .cw-empty { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
    #receivable-docs-modal .cw-empty i { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
    #receivable-docs-modal .cw-file-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; border-bottom: 1px solid #f3f4f6; }
    #receivable-docs-modal .cw-file-row:last-child { border-bottom: none; }
    #receivable-docs-modal .cw-file-row:hover { background: #f9fafb; }
    #receivable-docs-modal .cw-file-row .cw-file-info { flex: 1; min-width: 0; }
    #receivable-docs-modal .cw-file-row .cw-file-info .cw-file-title { font-size: 0.875rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #receivable-docs-modal .cw-file-row .cw-file-info .cw-file-meta { font-size: 0.75rem; color: #9ca3af; margin-top: 0.1rem; }
    #receivable-docs-modal .cw-file-row .cw-file-actions { flex-shrink: 0; margin-left: 0.75rem; }
    #receivable-docs-modal .cw-file-row .cw-file-actions a { font-size: 0.75rem; color: #2563eb; margin-left: 0.5rem; }
    #receivable-docs-modal .cw-file-row .cw-file-actions a:hover { text-decoration: underline; }

    /* ===== 补全资料弹窗 FileBrowser 文件行样式 ===== */
    #dcm-overlay .cw-card { background: #fff; border-radius: 0.375rem; }
    #dcm-overlay .cw-empty { text-align: center; color: #9ca3af; }
    #dcm-overlay .cw-file-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f3f4f6; }
    #dcm-overlay .cw-file-row:last-child { border-bottom: none; }
    #dcm-overlay .cw-file-row:hover { background: #f9fafb; }
    #dcm-overlay .cw-file-row .cw-file-info { flex: 1; min-width: 0; }
    #dcm-overlay .cw-file-row .cw-file-info .cw-file-title { font-size: 0.8125rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #dcm-overlay .cw-file-row .cw-file-info .cw-file-title:hover { color: #2563eb; text-decoration: underline; }
    #dcm-overlay .cw-file-row .cw-file-info .cw-file-meta { font-size: 0.7rem; color: #9ca3af; margin-top: 0.1rem; }
    #dcm-overlay .cw-file-row .cw-file-actions { flex-shrink: 0; margin-left: 0.75rem; }
    #dcm-overlay .cw-file-row .cw-file-actions a { font-size: 0.7rem; color: #2563eb; margin-left: 0.4rem; }
    #dcm-overlay .cw-file-row .cw-file-actions a:hover { text-decoration: underline; }

    /* ===== EmployeeEditModal 档案区 FileBrowser 组件样式 ===== */
    #eem-fb-container .cw-card { background: #fff; border-radius: 0.375rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f3f4f6; }
    #eem-fb-container .cw-empty { text-align: center; padding: 2rem 1rem; color: #9ca3af; font-size: 0.8125rem; }
    #eem-fb-container .cw-empty i { font-size: 2rem; margin-bottom: 0.35rem; display: block; }
    #eem-fb-container .cw-loading { text-align: center; padding: 2rem 1rem; color: #9ca3af; }
    #eem-fb-container .cw-loading .spinner { width: 24px; height: 24px; border: 3px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: cw-spin 0.7s linear infinite; margin: 0 auto 0.5rem; }
    #eem-fb-container .cw-doc-toolbar { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
    #eem-fb-container .cw-doc-toolbar-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.65rem; border: 1px solid #e5e7eb; border-radius: 0.3rem; background: #fff; color: #6b7280; font-size: 0.8125rem; cursor: pointer; transition: all 0.12s; }
    #eem-fb-container .cw-doc-toolbar-btn:hover { background: #f3f4f6; color: #374151; }
    #eem-fb-container .cw-doc-toolbar-btn i { font-size: 0.8125rem; }
    #eem-fb-container .cw-doc-toolbar-btn.active { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
    #eem-fb-container .cw-breadcrumb { display: flex; align-items: center; gap: 0.2rem; padding: 0.3rem 0.25rem 0.5rem; font-size: 0.8125rem; flex-wrap: wrap; }
    #eem-fb-container .cw-breadcrumb a { color: #6b7280; text-decoration: none; cursor: pointer; padding: 0.1rem 0.25rem; border-radius: 0.25rem; transition: background 0.12s; }
    #eem-fb-container .cw-breadcrumb a:hover { background: #f3f4f6; color: #2563eb; }
    #eem-fb-container .cw-breadcrumb a:last-child { color: #374151; font-weight: 500; }
    #eem-fb-container .cw-file-row { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 0.65rem; border-bottom: 1px solid #f3f4f6; }
    #eem-fb-container .cw-file-row:last-child { border-bottom: none; }
    #eem-fb-container .cw-file-row:hover { background: #f9fafb; }
    #eem-fb-container .cw-file-row .cw-file-info { flex: 1; min-width: 0; }
    #eem-fb-container .cw-file-row .cw-file-info .cw-file-title { font-size: 0.8125rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color 0.12s; }
    #eem-fb-container .cw-file-row .cw-file-info .cw-file-title:hover { color: #2563eb; text-decoration: underline; }
    #eem-fb-container .cw-file-row .cw-file-info .cw-file-meta { font-size: 0.6875rem; color: #9ca3af; margin-top: 0.1rem; }
    #eem-fb-container .cw-file-row .cw-file-actions { flex-shrink: 0; margin-left: 0.5rem; display: flex; gap: 0.25rem; align-items: center; }
    #eem-fb-container .cw-file-row .cw-file-actions a { font-size: 0.6875rem; color: #2563eb; text-decoration: none; cursor: pointer; }
    #eem-fb-container .cw-file-row .cw-file-actions a:hover { text-decoration: underline; }
    #eem-fb-container .cw-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.4rem; }
    #eem-fb-container .cw-file-card { position: relative; border-radius: 0.3rem; overflow: hidden; cursor: pointer; transition: box-shadow 0.15s; }
    #eem-fb-container .cw-file-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    #eem-fb-container .cw-file-card .cw-file-thumb { position: relative; height: 48px; background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    #eem-fb-container .cw-file-card .cw-file-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
    #eem-fb-container .cw-file-card .cw-file-thumb > i { font-size: 1.5rem; }
    #eem-fb-container .cw-file-card .cw-file-name { padding: 0.15rem 0.3rem; font-size: 0.625rem; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
    #eem-fb-container .cw-file-card .cw-file-card-meta { padding: 0 0.3rem 0.15rem; font-size: 0.5625rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #eem-fb-container .cw-file-card .cw-file-card-overlay { position: absolute; top: 0; left: 0; right: 0; height: 48px; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; gap: 0.3rem; }
    #eem-fb-container .cw-file-card:hover .cw-file-card-overlay { display: flex; }
    #eem-fb-container .cw-file-card .cw-file-card-overlay i { font-size: 0.85rem; color: #fff; cursor: pointer; padding: 0.15rem; border-radius: 0.2rem; transition: background 0.12s; }
    #eem-fb-container .cw-file-card .cw-file-card-overlay i:hover { background: rgba(255,255,255,0.2); }
    /* 大缩略图模式 */
    #eem-fb-container .cw-thumb-large .cw-file-card .cw-file-thumb { height: 96px; }
    #eem-fb-container .cw-thumb-large .cw-file-card .cw-file-card-overlay { height: 96px; }
    #eem-fb-container .cw-thumb-large { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
