* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, sans-serif; }
body { background: #f5f7fa; padding: 20px; }
.container { max-width: 1600px; margin: 0 auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.08); padding: 24px; }
h1 { text-align: center; color: #2c3e50; margin-bottom: 24px; font-weight: 600; }
.tab-nav { display: flex; gap: 8px; border-bottom: 1px solid #e6e9ed; padding-bottom: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { padding: 8px 16px; border: none; border-radius: 6px; background: #eef1f5; color: #666; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.tab-btn.active { background: #409eff; color: #fff; }
.tab-content { display: none; }
.tab-content.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; color: #333; font-weight: 500; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 14px; color: #666; }
input:read-only { background: #f5f7fa; cursor: not-allowed; }
textarea { min-height: 80px; resize: vertical; }
.btn { padding: 6px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.btn-primary { background: #409eff; color: #fff; }
.btn-danger { background: #f56c6c; color: #fff; }
.btn-secondary { background: #909399; color: #fff; }
.btn-success { background: #67c23a; color: #fff; }
.btn-warning { background: #e6a23c; color: #fff; }
.btn-sm { padding: 4px 8px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { border: 1px solid #e6e9ed; padding: 8px; text-align: left; font-size: 13px; }
th { background: #f8f9fa; color: #333; white-space: nowrap; }
.task-current { background: #e6f4ff; border-left: 3px solid #409eff; }
.task-completed { background: #f0f9eb; color: #67c23a; }
.task-disabled { color: #999; background: #f5f7fa; }
.editable { cursor: pointer; }
.editable:hover { background: #f0f7ff; }
.date-cell { color: #409eff; text-decoration: underline dotted; }
.order-item { padding: 12px; border: 1px solid #e6e9ed; border-radius: 6px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; }
.order-item:hover { background: #f8f9fa; border-color: #409eff; }
.order-item.active { background: #e6f4ff; border-color: #409eff; }
.order-info { flex: 1; }
.order-progress-bar { width: 150px; height: 6px; background: #f5f7fa; border-radius: 3px; overflow: hidden; margin: 6px 0; }
.order-progress-fill { height: 100%; background: #409eff; }
.order-actions { display: flex; gap: 6px; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 999; }
.modal-content { background: #fff; padding: 20px; border-radius: 6px; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-close { cursor: pointer; font-size: 18px; color: #999; }
.file-link { color: #409eff; text-decoration: underline; cursor: pointer; }
.file-drop-area { border: 2px dashed #409eff; border-radius: 6px; padding: 30px; text-align: center; cursor: pointer; background: #f8f9fa; transition: all 0.2s; }
.file-drop-area:hover { background: #e6f4ff; }
.task-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dashboard-card { background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 16px; text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.dashboard-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card-label { font-size: 13px; color: #666; }
.card-value { font-size: 28px; font-weight: 700; color: #409eff; margin: 6px 0; }
.loading { color: #409eff; text-align: center; padding: 20px; }
.customer-card { background: #f8f9fa; border-radius: 6px; padding: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.customer-info { flex: 1; }
.customer-actions { display: flex; gap: 6px; }
.highlight { background: #fff2e6 !important; }
.attachment-section { margin: 10px 0; padding: 10px; border: 1px solid #e6e9ed; border-radius: 6px; background: #f8f9fa; }
.attachment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 500; color: #333; }
.attachment-list { list-style: none; margin-top: 8px; }
.attachment-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border: 1px solid #e6e9ed; border-radius: 4px; margin-bottom: 4px; background: #fff; }
.attachment-name { flex: 1; color: #409eff; text-decoration: underline; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { font-size: 11px; color: #999; margin: 0 8px; white-space: nowrap; }
.attachment-time { font-size: 11px; color: #999; margin-right: 8px; white-space: nowrap; }
.attachment-actions { display: flex; gap: 4px; }
.attachment-count-badge { background: #409eff; color: white; border-radius: 10px; padding: 2px 6px; font-size: 11px; margin-left: 4px; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.filter-select { width: auto; min-width: 150px; }
.batch-actions { display: flex; gap: 8px; margin-left: auto; }
.checkbox-col { width: 40px; text-align: center; }
.order-detail-header { background: #f8f9fa; padding: 16px; border-radius: 6px; margin-bottom: 20px; }
.order-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.order-detail-item { display: flex; flex-direction: column; }
.order-detail-label { font-size: 12px; color: #666; margin-bottom: 4px; }
.order-detail-value { font-size: 14px; font-weight: 500; color: #333; }
.product-table { margin-top: 10px; }
.readonly-field { background: #f5f7fa; border: 1px solid #dcdfe6; padding: 8px 10px; border-radius: 4px; font-size: 14px; color: #666; }
.import-area { border: 1px dashed #409eff; background: #f8f9fa; padding: 12px; border-radius: 6px; margin-bottom: 12px; }
.auto-calc { background: #f0f9eb; font-weight: bold; }
.btn-edit-contract { background: #ff9800; color: white; margin-left: 8px; }
.user-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; color: #666; }