/* 进货统计样式 */
.pt-container {
  padding: 20px;
  background: #f9f7f4;
  min-height: 400px;
}

.pt-loading, .pt-error {
  text-align: center;
  padding: 40px;
  color: #666;
}

.pt-error {
  color: #e74c3c;
}

.pt-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pt-card {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 4px solid #8b5a2b;
}

.pt-card-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.pt-card-value {
  font-size: 28px;
  font-weight: bold;
  color: #4a2c10;
}

.pt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pt-title {
  font-size: 16px;
  font-weight: bold;
  color: #4a2c10;
}

.pt-btn-add {
  background: #8b5a2b;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.pt-btn-add:hover {
  background: #6d4520;
}

.pt-table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-collapse: collapse;
}

.pt-table th, .pt-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.pt-table th {
  background: #f5f0eb;
  font-weight: 600;
  color: #4a2c10;
}

.pt-empty {
  text-align: center;
  color: #999;
  padding: 40px !important;
}

.pt-btn-edit, .pt-btn-del {
  padding: 4px 10px;
  margin-right: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.pt-btn-edit {
  background: #e3f2fd;
  color: #1976d2;
}

.pt-btn-del {
  background: #ffebee;
  color: #c62828;
}

/* 弹窗 */
.pt-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pt-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 400px;
  max-width: 90%;
}

.pt-modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #4a2c10;
  margin-bottom: 20px;
}

.pt-form-item {
  margin-bottom: 16px;
}

.pt-form-item label {
  display: block;
  margin-bottom: 6px;
  color: #666;
  font-size: 14px;
}

.pt-form-item input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.pt-modal-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.pt-btn-cancel {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.pt-btn-save {
  padding: 8px 16px;
  background: #8b5a2b;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

