* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; font-size: 14px; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #fff; border-right: 1px solid #e8e8e8; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 24px 24px; font-weight: 700; font-size: 18px; color: #1f2937; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #3b82f6, #2563eb); }
.menu a { display: flex; align-items: center; gap: 10px; padding: 12px 24px; color: #4b5563; text-decoration: none; transition: .2s; }
.menu a:hover { background: #f3f4f6; }
.menu a.on { background: #eff6ff; color: #2563eb; font-weight: 600; border-right: 3px solid #2563eb; }
.main { flex: 1; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.topbar h1 { font-size: 18px; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 10px; }
.topbar .bar { width: 4px; height: 18px; background: #2563eb; border-radius: 2px; display: inline-block; }
.user { color: #6b7280; font-size: 14px; }
.content { padding: 24px 32px; flex: 1; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); margin-bottom: 20px; }
.filter-card { padding: 20px 24px; }
.filters { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.filters label { display: flex; flex-direction: column; gap: 6px; color: #6b7280; font-size: 13px; }
.filters select, .filters input[type=text] { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #fff; min-width: 130px; color: #374151; }
.filters .search { position: relative; flex: 1; min-width: 220px; }
.filters .search input { width: 100%; padding-right: 34px; }
.filters .icon { position: absolute; right: 8px; bottom: 8px; background: transparent; border: none; color: #9ca3af; cursor: pointer; }
.btn { padding: 8px 16px; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; color: #374151; font-size: 14px; cursor: pointer; transition: .2s; }
.btn:hover { border-color: #9ca3af; }
.btn.primary, .btn.export { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn.primary:hover, .btn.export:hover { background: #1d4ed8; }
.table-card { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
th { background: #fafafa; color: #6b7280; font-weight: 500; }
tbody tr:hover { background: #fafafa; }
.emp { display: flex; align-items: center; gap: 10px; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: #e0e7ff; color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.actions a { color: #2563eb; text-decoration: none; margin-right: 12px; font-size: 13px; }
.actions a:hover { text-decoration: underline; }
.actions a.warn { color: #f59e0b; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 0; color: #6b7280; font-size: 13px; }
.pagination a { padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; color: #374151; text-decoration: none; cursor: pointer; }
.pagination a.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.pagination input { width: 36px; padding: 4px; border: 1px solid #d1d5db; border-radius: 4px; text-align: center; }
.dots { color: #9ca3af; }
.detail-card { padding: 28px; }
.profile { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: #dbeafe; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.info h2 { font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.info p { color: #6b7280; font-size: 14px; margin-bottom: 4px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 4px; background: #dcfce7; color: #16a34a; font-weight: 500; }
.salary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.salary-grid div { background: #f9fafb; border-radius: 8px; padding: 18px; }
.salary-grid span { display: block; color: #6b7280; font-size: 13px; margin-bottom: 8px; }
.salary-grid b { font-size: 22px; color: #111827; font-weight: 600; }
.salary-grid .total { color: #2563eb; }
.timeline h3 { font-size: 16px; margin-bottom: 16px; }
.timeline .item { padding: 12px 0; border-bottom: 1px solid #f3f4f6; color: #4b5563; }
.timeline .item span { color: #9ca3af; font-size: 13px; margin-right: 12px; }
.form-card { padding: 28px; max-width: 760px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-row label { flex: 1; display: flex; flex-direction: column; gap: 6px; color: #374151; font-size: 13px; }
.form-row input, .form-row select, .form-row textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; color: #374151; }
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row input[readonly] { background: #f3f4f6; }
.form-row.three label { flex: 1; }
.form-row .check { flex-direction: row; align-items: center; gap: 8px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 10px; }
.form-actions .btn { padding: 10px 20px; }
