/* 全局通用样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; min-height: 100vh; }
.header { background: #3b82f6; color: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 20px; font-weight: 600; }
.header-right { display: flex; gap: 12px; align-items: center; }
.btn { padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.btn-primary { background: white; color: #3b82f6; }
.btn-primary:hover { background: #f0f0f0; }
.btn-secondary { background: rgba(255,255,255,0.2); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.3); }
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.stat-label { color: #6b7280; font-size: 14px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: #1f2937; }
.stat-value.warning { color: #f59e0b; }
.stat-value.danger { color: #ef4444; }
.stat-value.success { color: #10b981; }
.table-card { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; }
.table-header { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.table-title { font-size: 16px; font-weight: 600; color: #1f2937; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f3f4f6; }
th { background: #f9fafb; font-weight: 600; color: #374151; font-size: 13px; }
td { color: #4b5563; font-size: 14px; }
tr:hover { background: #f9fafb; }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.status-uninvoiced { background: #fef3c7; color: #d97706; }
.status-invoiced { background: #d1fae5; color: #059669; }
.status-unpaid { background: #fee2e2; color: #dc2626; }
.status-paid { background: #d1fae5; color: #059669; }
.action-btns { display: flex; gap: 8px; }
.btn-action { padding: 6px 12px; border-radius: 6px; border: 1px solid #e5e7eb; background: white; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.btn-action:hover { background: #f3f4f6; border-color: #d1d5db; }
.btn-action.view { color: #3b82f6; }
.btn-action.delete { color: #ef4444; }
.pagination { padding: 16px 20px; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.pagination-info { color: #6b7280; font-size: 14px; }
.pagination-btns { display: flex; gap: 4px; }
.btn-page { padding: 6px 12px; border: 1px solid #e5e7eb; background: white; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-page:hover { background: #f3f4f6; }
.btn-page.active { background: #3b82f6; color: white; border-color: #3b82f6; }
.btn-page:disabled { opacity: 0.5; cursor: not-allowed; }
