.upload-payroll-modal { max-width: 880px; }
.upload-form-head { display: grid; grid-template-columns: 150px minmax(180px, 1fr) minmax(180px, 1fr); gap: 12px; align-items: end; }
.upload-payroll .dropzone { margin-top: 14px; padding: 25px 20px; }
.upload-payroll .dropzone-icon { width: 46px; height: 46px; margin-bottom: 8px; }
.upload-payroll .dropzone strong { font-size: 11px; }
.upload-payroll .dropzone span { font-size: 9px; }
.upload-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px; color: var(--muted); font-size: 10px; }
.upload-config { margin-top: 14px; }
.upload-file-summary { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #d9ebff; border-radius: 10px; background: #f6fbff; }
.upload-file-icon { width: 30px; height: 30px; border-radius: 8px; background: #e8f3ff; color: #1677ff; display: flex; align-items: center; justify-content: center; }
.upload-file-summary > div { flex: 1; min-width: 0; }
.upload-file-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: var(--ink-2); }
.upload-file-summary span { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); }
.upload-section { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.upload-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 700; color: var(--ink-2); }
.upload-section-title span { font-size: 8.5px; font-weight: 400; color: var(--muted-2); }
.upload-identity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.upload-item-list { margin-top: 9px; border-top: 1px solid #f1f4f9; }
.upload-item-row { display: grid; grid-template-columns: 28px minmax(150px, 1fr) 130px 68px 24px; align-items: center; gap: 7px; padding: 7px 2px; border-bottom: 1px solid #f5f7fb; }
.upload-item-row:last-child { border-bottom: 0; }
.upload-item-check { display: flex; align-items: center; justify-content: center; }
.upload-item-check input { width: 14px; height: 14px; accent-color: #1677ff; }
.upload-payroll .input, .upload-payroll .select { height: 31px; font-size: 10px; }
.upload-item-name { min-width: 0; }
.upload-item-hint { font-size: 8px; color: var(--muted-2); white-space: nowrap; }
.upload-item-off { color: #b6c1d0; }
.upload-item-off:hover { color: #d35454; background: #fff3f3; }
.upload-custom-list { margin-top: 8px; }
.upload-custom-row { display: grid; grid-template-columns: 72px minmax(130px, 1fr) 120px 150px 24px; align-items: center; gap: 7px; padding: 7px 8px; margin-top: 6px; border: 1px dashed #cfe1f7; border-radius: 8px; background: #fbfdff; }
.upload-custom-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; color: #1677ff; white-space: nowrap; }
.upload-constant { display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--muted); }
.upload-constant .input { width: 70px; height: 29px; text-align: right; }
.upload-preview { background: #fbfcfe; }
.upload-preview .preview-table-wrap { margin-top: 8px; max-height: 220px; }
.upload-preview .preview-table th, .upload-preview .preview-table td { font-size: 9px; padding: 6px 8px; white-space: nowrap; }
.upload-payroll .form-error { margin-top: 10px; }
.upload-payroll .modal-footer { flex-wrap: wrap; }
.upload-source-chip { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 6px; background: #eef5ff; color: #316ca8; font-size: 8.5px; font-weight: 600; }
.run-item-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.run-item-chip { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border: 1px solid #e3ecf7; border-radius: 5px; background: #f8fbff; color: #60748c; font-size: 8px; }
.run-item-chip.company { border-color: #e7e2f8; background: #faf8ff; color: #7259a8; }
.sync-option { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 11px 12px; border: 1px solid #e5edf8; border-radius: 9px; background: #fbfdff; cursor: pointer; }
.sync-option input { width: 15px; height: 15px; margin-top: 1px; accent-color: #1677ff; flex: 0 0 auto; }
.sync-option strong { display: block; font-size: 10.5px; color: var(--ink-2); font-weight: 650; }
.sync-option small { display: block; margin-top: 3px; font-size: 9px; line-height: 1.6; color: var(--muted); }
.sync-permission-note { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 8.5px; color: var(--muted-2); }

@media (max-width: 720px) {
  .upload-form-head, .upload-identity-grid { grid-template-columns: 1fr; }
  .upload-item-row { grid-template-columns: 24px minmax(110px, 1fr) 104px 24px; }
  .upload-item-hint { display: none; }
  .upload-custom-row { grid-template-columns: 1fr 1fr; }
  .upload-custom-badge { grid-column: 1 / -1; }
  .upload-custom-row .icon-btn { justify-self: end; }
}
